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
74a5f7e6
Commit
74a5f7e6
authored
Aug 01, 2023
by
Michael Yang
Browse files
no gpu for 70B model
parent
7a1c3e62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
llama/llama.go
llama/llama.go
+5
-0
No files found.
llama/llama.go
View file @
74a5f7e6
...
...
@@ -128,6 +128,11 @@ func New(model string, opts api.Options) (*LLM, error) {
C
.
llama_backend_init
(
C
.
bool
(
llm
.
UseNUMA
))
// TODO: GQA == 8 suggests 70B model which doesn't support metal
if
llm
.
NumGQA
==
8
{
llm
.
NumGPU
=
0
}
params
:=
C
.
llama_context_default_params
()
params
.
seed
=
C
.
uint
(
llm
.
Seed
)
params
.
n_ctx
=
C
.
int
(
llm
.
NumCtx
)
...
...
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