InferenceAdapter wraps inference.TextModel (iter.Seq[Token]) to satisfy ml.Backend (string returns) and ml.StreamingBackend (TokenCallback). - adapter.go: InferenceAdapter with Generate/Chat/Stream/Close - adapter_test.go: 13 test cases with mock TextModel (all pass) - backend_mlx.go: rewritten from 253 LOC to ~35 LOC using go-inference - go.mod: add forge.lthn.ai/core/go-inference dependency - TODO.md: mark Phase 1 steps 1.1-1.3 complete Co-Authored-By: Virgil <virgil@lethean.io>
45 lines
1.7 KiB
Modula-2
45 lines
1.7 KiB
Modula-2
module forge.lthn.ai/core/go-ml
|
|
|
|
go 1.25.5
|
|
|
|
require (
|
|
forge.lthn.ai/core/go v0.0.0
|
|
forge.lthn.ai/core/go-inference v0.0.0
|
|
forge.lthn.ai/core/go-mlx v0.0.0
|
|
github.com/marcboeker/go-duckdb v1.8.5
|
|
github.com/parquet-go/parquet-go v0.27.0
|
|
github.com/stretchr/testify v1.11.1
|
|
)
|
|
|
|
require (
|
|
github.com/andybalholm/brotli v1.2.0 // indirect
|
|
github.com/apache/arrow-go/v18 v18.5.1 // indirect
|
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
|
github.com/go-viper/mapstructure/v2 v2.5.0 // indirect
|
|
github.com/goccy/go-json v0.10.5 // indirect
|
|
github.com/google/flatbuffers v25.12.19+incompatible // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/klauspost/compress v1.18.4 // indirect
|
|
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
|
|
github.com/parquet-go/bitpack v1.0.0 // indirect
|
|
github.com/parquet-go/jsonlite v1.4.0 // indirect
|
|
github.com/pierrec/lz4/v4 v4.1.25 // indirect
|
|
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
|
github.com/twpayne/go-geom v1.6.1 // indirect
|
|
github.com/zeebo/xxh3 v1.1.0 // indirect
|
|
golang.org/x/exp v0.0.0-20260212183809-81e46e3db34a // indirect
|
|
golang.org/x/mod v0.33.0 // indirect
|
|
golang.org/x/sync v0.19.0 // indirect
|
|
golang.org/x/sys v0.41.0 // indirect
|
|
golang.org/x/telemetry v0.0.0-20260209163413-e7419c687ee4 // indirect
|
|
golang.org/x/tools v0.42.0 // indirect
|
|
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
|
|
google.golang.org/protobuf v1.36.11 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
)
|
|
|
|
replace forge.lthn.ai/core/go => ../host-uk/core
|
|
|
|
replace forge.lthn.ai/core/go-mlx => ../go-mlx
|
|
|
|
replace forge.lthn.ai/core/go-inference => ../go-inference
|