Shared inference interfaces (TextModel, Backend, Token). Zero deps, compiles everywhere.
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> |
||
|---|---|---|
| CLAUDE.md | ||
| discover.go | ||
| discover_test.go | ||
| FINDINGS.md | ||
| go.mod | ||
| go.sum | ||
| inference.go | ||
| inference_test.go | ||
| options.go | ||
| options_test.go | ||
| README.md | ||
| TODO.md | ||
go-inference
Shared inference interfaces (TextModel, Backend, Token). Zero deps, compiles everywhere.