Commit Graph

3 Commits

Author SHA1 Message Date
Michael Yang 69f3dfdedf update tests 2025-08-14 15:04:26 -07:00
Michael Yang 276c4df770 drop bfloat16 dependency
goos: darwin
goarch: arm64
pkg: github.com/ollama/ollama/convert/bfloat16
cpu: Apple M3 Max
BenchmarkBfloat16/d4l3k/go-bfloat16-16               516           2269453 ns/op
BenchmarkBfloat16/simple-16                          1759            626316 ns/op
PASS
ok      github.com/ollama/ollama/convert/bfloat16        2.502s
2025-08-14 15:04:26 -07:00
Michael Yang ef7d26ba2c
convert: skip reading into memory when possible (#11507)
if there's no transformation to the tensor and the input and output
types match, copy directly into the writer. also read from a bufio with
a 32K buffer
2025-08-14 15:03:57 -07:00