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
b2816bca
Commit
b2816bca
authored
Nov 22, 2023
by
Michael Yang
Browse files
unnecessary ReadSeeker for DecodeGGML
parent
bf704423
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
llm/ggml.go
llm/ggml.go
+1
-1
No files found.
llm/ggml.go
View file @
b2816bca
...
@@ -179,7 +179,7 @@ const (
...
@@ -179,7 +179,7 @@ const (
FILE_MAGIC_GGUF_BE
=
0x47475546
FILE_MAGIC_GGUF_BE
=
0x47475546
)
)
func
DecodeGGML
(
r
io
.
Read
Seek
er
)
(
*
GGML
,
error
)
{
func
DecodeGGML
(
r
io
.
Reader
)
(
*
GGML
,
error
)
{
var
ggml
GGML
var
ggml
GGML
binary
.
Read
(
r
,
binary
.
LittleEndian
,
&
ggml
.
magic
)
binary
.
Read
(
r
,
binary
.
LittleEndian
,
&
ggml
.
magic
)
...
...
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