diff --git a/llm/gguf.go b/llm/gguf.go index 796642e3..b907d7f1 100644 --- a/llm/gguf.go +++ b/llm/gguf.go @@ -243,7 +243,7 @@ func (llm *gguf) Decode(rs io.ReadSeeker) error { } padding := llm.padding(offset, int64(alignment)) - if _, err := rs.Seek(padding, io.SeekCurrent); err != nil { + if _, err := rs.Seek(padding-offset, io.SeekCurrent); err != nil { return err }