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
944519ed
"vscode:/vscode.git/clone" did not exist on "3dc97bd1482fb099aa41a15aae55ff45c8f2b042"
Commit
944519ed
authored
Dec 09, 2023
by
Jeffrey Morgan
Browse files
seek to eof for older model binaries
parent
2dd040d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
llm/ggml.go
llm/ggml.go
+4
-0
No files found.
llm/ggml.go
View file @
944519ed
...
@@ -141,6 +141,10 @@ func (c *containerGGJT) Decode(ro *readSeekOffset) (model, error) {
...
@@ -141,6 +141,10 @@ func (c *containerGGJT) Decode(ro *readSeekOffset) (model, error) {
// different model types may have different layouts for hyperparameters
// different model types may have different layouts for hyperparameters
var
llama
llamaModel
var
llama
llamaModel
binary
.
Read
(
ro
,
binary
.
LittleEndian
,
&
llama
.
hyperparameters
)
binary
.
Read
(
ro
,
binary
.
LittleEndian
,
&
llama
.
hyperparameters
)
// remaining file contents aren't decoded
ro
.
Seek
(
0
,
io
.
SeekEnd
)
return
&
llama
,
nil
return
&
llama
,
nil
}
}
...
...
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