mirror of
https://github.com/zebrajr/ollama.git
synced 2025-12-06 00:19:51 +01:00
avoid kv truncation during create (#10761)
This commit is contained in:
parent
94ab428e3f
commit
1a0cfd080a
|
|
@ -508,7 +508,7 @@ func ggufLayers(digest string, fn func(resp api.ProgressResponse)) ([]*layerGGML
|
|||
|
||||
var offset int64
|
||||
for offset < stat.Size() {
|
||||
f, err := ggml.Decode(blob, 1024)
|
||||
f, err := ggml.Decode(blob, -1)
|
||||
if errors.Is(err, io.EOF) {
|
||||
break
|
||||
} else if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user