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
b53229a2
"...git@developer.sourcefind.cn:OpenDAS/llama-factory.git" did not exist on "4a40151b009602caccb62b0015de7545efe4200a"
Commit
b53229a2
authored
Mar 11, 2024
by
Daniel Hiltgen
Browse files
Add docs explaining GPU selection env vars
parent
b5fcd9d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
docs/faq.md
docs/faq.md
+10
-0
No files found.
docs/faq.md
View file @
b53229a2
...
...
@@ -193,3 +193,13 @@ To unload the model and free up memory use:
```
shell
curl http://localhost:11434/api/generate
-d
'{"model": "llama2", "keep_alive": 0}'
```
## Controlling which GPUs to use
By default, on Linux and Windows, Ollama will attempt to use Nvidia GPUs, or
Radeon GPUs, and will use all the GPUs it can find. You can limit which GPUs
will be utilized by setting the environment variable
`CUDA_VISIBLE_DEVICES`
for
NVIDIA cards, or
`HIP_VISIBLE_DEVICES`
for Radeon GPUs to a comma delimited list
of GPU IDs. You can see the list of devices with GPU tools such as
`nvidia-smi`
or
`rocminfo`
. You can set to an invalid GPU ID (e.g., "-1") to bypass the GPU and
fallback to CPU.
\ No newline at end of file
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