Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
seek to end of file when decoding older model formats
Jeffrey Morgand9a250e9b515
diff --git a/llm/ggml.go b/llm/ggml.goindex e81c7a8b5..8d421e03b 100644--- a/llm/ggml.go+++ b/llm/ggml.go@@ -93,6 +93,8 @@ func (c *containerGGML) Name() string {}func (c *containerGGML) Decode(ro *readSeekOffset) (model, error) {+ // file contents aren't decoded+ ro.Seek(0, io.SeekEnd)return nil, nil}@@ -115,6 +117,10 @@ func (c *containerGGMF) Decode(ro *readSeekOffset) (model, error) {}c.version = version++ // remaining file contents aren't decoded+ ro.Seek(0, io.SeekEnd)+return nil, nil}@@ -167,6 +173,10 @@ func (c *containerLORA) Decode(ro *readSeekOffset) (model, error) {}c.version = version++ // remaining file contents aren't decoded+ ro.Seek(0, io.SeekEnd)+return nil, nil}