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
bf54c845
Commit
bf54c845
authored
May 30, 2024
by
Michael Yang
Browse files
vocab only
parent
e91d0ef7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
llm/llm.go
llm/llm.go
+4
-4
No files found.
llm/llm.go
View file @
bf54c845
...
...
@@ -47,11 +47,11 @@ func newLlamaModel(p string) *llamaModel {
cs
:=
C
.
CString
(
p
)
defer
C
.
free
(
unsafe
.
Pointer
(
cs
))
params
:=
C
.
llama_model_default_params
()
params
.
vocab_only
=
true
return
&
llamaModel
{
C
.
llama_load_model_from_file
(
cs
,
C
.
llama_model_default_params
(),
),
C
.
llama_load_model_from_file
(
cs
,
params
),
}
}
...
...
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