avoid kv truncation during create (#10761)

This commit is contained in:
Daniel Hiltgen 2025-05-19 13:54:54 -07:00 committed by Ryan Schumacher
parent 7b9ab4cb32
commit f7a5f0da58
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

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 {