Snider
|
82fd78ef90
|
refactor: apply go fix modernizers for Go 1.26
Automated fixes: interface{} → any, range-over-int, t.Context(),
wg.Go(), strings.SplitSeq, strings.Builder, slices.Contains,
maps helpers, min/max builtins.
Co-Authored-By: Virgil <virgil@lethean.io>
|
2026-02-22 21:00:16 +00:00 |
|
Claude
|
e0ec07e667
|
test(inference): complete Phase 1 foundation tests
Add comprehensive tests for all three Phase 1 items:
- Option application: DefaultGenerateConfig idempotency, field isolation
(WithMaxTokens leaves others at defaults), bad-input acceptance
(negative temperature, negative TopK), empty variadic StopTokens,
WithLogits default-is-false, partial-options preserve defaults,
last-wins overrides for all GenerateOption and LoadOption types.
- Backend registry: concurrent read/write safety (70 goroutines with
-race), overwrite-keeps-count, capturingBackend verifies LoadModel
forwards all options to both explicit and default backends, Get
after overwrite returns latest, List returns independent slices.
- Default() platform preference: registration order is irrelevant
(metal wins regardless), all-preferred-unavailable falls back to
custom, multiple custom backends finds the available one, empty
path forwarding.
85 tests, 100% statement coverage, -race clean.
Co-Authored-By: Charon <developers@lethean.io>
|
2026-02-20 11:45:59 +00:00 |
|
Claude
|
d76448d4a9
|
test(inference): add comprehensive tests for all exported API
Cover options (GenerateConfig defaults, all With* options, ApplyGenerateOpts/
ApplyLoadOpts), backend registry (Register, Get, List, Default priority order
metal > rocm > llama_cpp), LoadModel routing (explicit/auto backend, error
paths), and Discover (model directory scanning, quantisation, edge cases).
69 tests, 100% statement coverage, race-clean.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-02-20 02:06:49 +00:00 |
|