mirror of
https://github.com/zebrajr/ollama.git
synced 2025-12-06 00:19:51 +01:00
fix padding in decode
TODO: update padding() to _only_ returning the padding
This commit is contained in:
parent
0efb7931c7
commit
969238b19e
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user