avoid kv truncation during create (#10761)

This commit is contained in:
Daniel Hiltgen 2025-05-19 13:54:54 -07:00 committed by GitHub
parent 94ab428e3f
commit 1a0cfd080a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -508,7 +508,7 @@ func ggufLayers(digest string, fn func(resp api.ProgressResponse)) ([]*layerGGML
var offset int64 var offset int64
for offset < stat.Size() { for offset < stat.Size() {
f, err := ggml.Decode(blob, 1024) f, err := ggml.Decode(blob, -1)
if errors.Is(err, io.EOF) { if errors.Is(err, io.EOF) {
break break
} else if err != nil { } else if err != nil {