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
be61a817
"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "28f404349d69da1af7b52f18b022bc7971951a41"
Unverified
Commit
be61a817
authored
Nov 21, 2023
by
Purinda Gunasekara
Committed by
GitHub
Nov 20, 2023
Browse files
main-gpu argument is not getting passed to llamacpp, fixed. (#1192)
parent
2fdf1b5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
llm/llama.go
llm/llama.go
+2
-0
No files found.
llm/llama.go
View file @
be61a817
...
@@ -339,6 +339,7 @@ func newLlama(model string, adapters []string, runners []ModelRunner, numLayers
...
@@ -339,6 +339,7 @@ func newLlama(model string, adapters []string, runners []ModelRunner, numLayers
"--model"
,
model
,
"--model"
,
model
,
"--ctx-size"
,
fmt
.
Sprintf
(
"%d"
,
opts
.
NumCtx
),
"--ctx-size"
,
fmt
.
Sprintf
(
"%d"
,
opts
.
NumCtx
),
"--batch-size"
,
fmt
.
Sprintf
(
"%d"
,
opts
.
NumBatch
),
"--batch-size"
,
fmt
.
Sprintf
(
"%d"
,
opts
.
NumBatch
),
"--main-gpu"
,
fmt
.
Sprintf
(
"%d"
,
opts
.
MainGPU
),
"--n-gpu-layers"
,
fmt
.
Sprintf
(
"%d"
,
numGPU
),
"--n-gpu-layers"
,
fmt
.
Sprintf
(
"%d"
,
numGPU
),
"--embedding"
,
"--embedding"
,
}
}
...
@@ -544,6 +545,7 @@ func (llm *llama) Predict(ctx context.Context, prevContext []int, prompt string,
...
@@ -544,6 +545,7 @@ func (llm *llama) Predict(ctx context.Context, prevContext []int, prompt string,
"stream"
:
true
,
"stream"
:
true
,
"n_predict"
:
llm
.
NumPredict
,
"n_predict"
:
llm
.
NumPredict
,
"n_keep"
:
llm
.
NumKeep
,
"n_keep"
:
llm
.
NumKeep
,
"main_gpu"
:
llm
.
MainGPU
,
"temperature"
:
llm
.
Temperature
,
"temperature"
:
llm
.
Temperature
,
"top_k"
:
llm
.
TopK
,
"top_k"
:
llm
.
TopK
,
"top_p"
:
llm
.
TopP
,
"top_p"
:
llm
.
TopP
,
...
...
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