Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
969238b1
Commit
969238b1
authored
Apr 15, 2024
by
Michael Yang
Browse files
fix padding in decode
TODO: update padding() to _only_ returning the padding
parent
0efb7931
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
llm/gguf.go
llm/gguf.go
+1
-1
No files found.
llm/gguf.go
View file @
969238b1
...
@@ -243,7 +243,7 @@ func (llm *gguf) Decode(rs io.ReadSeeker) error {
...
@@ -243,7 +243,7 @@ func (llm *gguf) Decode(rs io.ReadSeeker) error {
}
}
padding
:=
llm
.
padding
(
offset
,
int64
(
alignment
))
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
return
err
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment