mirror of
https://github.com/ollama/ollama.git
synced 2026-05-06 08:02:14 -05:00
Closed
opened 2026-04-22 03:24:00 -05:00 by GiteaMirror
·
42 comments
No Branch/Tag Specified
main
parth-mlx-decode-checkpoints
dhiltgen/ci
hoyyeva/editor-config-repair
parth-launch-codex-app
hoyyeva/fix-codex-model-metadata-warning
hoyyeva/qwen
hoyyeva/launch-backup-ux
parth/hide-claude-desktop-till-release
hoyyeva/opencode-image-modality
parth-add-claude-code-autoinstall
release_v0.22.0
pdevine/manifest-list
codex/fix-codex-model-metadata-warning
pdevine/addressable-manifest
brucemacd/launch-fetch-reccomended
jmorganca/llama-compat
launch-copilot-cli
hoyyeva/opencode-thinking
release_v0.20.7
parth-auto-save-backup
parth-test
jmorganca/gemma4-audio-replacements
fix-manifest-digest-on-pull
hoyyeva/vscode-improve
brucemacd/install-server-wait
brucemacd/download-before-remove
parth/update-claude-docs
parth-anthropic-reference-images-path
brucemac/start-ap-install
pdevine/mlx-update
pdevine/qwen35_vision
drifkin/api-show-fallback
mintlify/image-generation-1773352582
hoyyeva/server-context-length-local-config
jmorganca/faster-reptition-penalties
jmorganca/convert-nemotron
parth-pi-thinking
pdevine/sampling-penalties
jmorganca/fix-create-quantization-memory
dongchen/resumable_transfer_fix
pdevine/sampling-cache-error
jessegross/mlx-usage
hoyyeva/openclaw-config
hoyyeva/app-html
pdevine/qwen3next
brucemacd/sign-sh-install
brucemacd/tui-update
brucemacd/usage-api
jmorganca/launch-empty
fix-app-dist-embed
mxyng/mlx-compile
mxyng/mlx-quant
mxyng/mlx-glm4.7
mxyng/mlx
brucemacd/simplify-model-picker
jmorganca/qwen3-concurrent
fix-glm-4.7-flash-mla-config
drifkin/qwen3-coder-opening-tag
brucemacd/usage-cli
fix-cuda12-fattn-shmem
ollama-imagegen-docs
parth/fix-multiline-inputs
brucemacd/config-docs
mxyng/model-files
mxyng/simple-execute
fix-imagegen-ollama-models
mxyng/async-upload
jmorganca/lazy-no-dtype-changes
imagegen-auto-detect-create
parth/decrease-concurrent-download-hf
fix-mlx-quantize-init
jmorganca/x-cleanup
usage
imagegen-readme
jmorganca/glm-image
mlx-gpu-cd
jmorganca/imagegen-modelfile
parth/agent-skills
parth/agent-allowlist
parth/signed-in-offline
parth/agents
parth/fix-context-chopping
improve-cloud-flow
parth/add-models-websearch
parth/prompt-renderer-mcp
jmorganca/native-settings
jmorganca/download-stream-hash
jmorganca/client2-rebased
brucemacd/oai-chat-req-multipart
jessegross/multi_chunk_reserve
grace/additional-omit-empty
grace/mistral-3-large
mxyng/tokenizer2
mxyng/tokenizer
jessegross/flash
hoyyeva/windows-nacked-app
mxyng/cleanup-attention
grace/deepseek-parser
hoyyeva/remember-unsent-prompt
parth/add-lfs-pointer-error-conversion
parth/olmo2-test2
hoyyeva/ollama-launchagent-plist
nicole/olmo-model
parth/olmo-test
mxyng/remove-embedded
parth/render-template
jmorganca/intellect-3
parth/remove-prealloc-linter
jmorganca/cmd-eval
nicole/nomic-embed-text-fix
mxyng/lint-2
hoyyeva/add-gemini-3-pro-preview
hoyyeva/load-model-list
mxyng/expand-path
mxyng/environ-2
hoyyeva/deeplink-json-encoding
parth/improve-tool-calling-tests
hoyyeva/conversation
hoyyeva/assistant-edit-response
hoyyeva/thinking
origin/brucemacd/invalid-char-i-err
parth/improve-tool-calling
jmorganca/required-omitempty
grace/qwen3-vl-tests
mxyng/iter-client
parth/docs-readme
nicole/embed-test
pdevine/integration-benchstat
parth/remove-generate-cmd
parth/add-toolcall-id
mxyng/server-tests
jmorganca/glm-4.6
jmorganca/gin-h-compat
drifkin/stable-tool-args
pdevine/qwen3-more-thinking
parth/add-websearch-client
nicole/websearch_local
jmorganca/qwen3-coder-updates
grace/deepseek-v3-migration-tests
mxyng/fix-create
jmorganca/cloud-errors
pdevine/parser-tidy
revert-12233-parth/simplify-entrypoints-runner
parth/enable-so-gpt-oss
brucemacd/qwen3vl
jmorganca/readme-simplify
parth/gpt-oss-structured-outputs
revert-12039-jmorganca/tools-braces
mxyng/embeddings
mxyng/gguf
mxyng/benchmark
mxyng/types-null
parth/move-parsing
mxyng/gemma2
jmorganca/docs
mxyng/16-bit
mxyng/create-stdin
pdevine/authorizedkeys
mxyng/quant
parth/opt-in-error-context-window
brucemacd/cache-models
brucemacd/runner-completion
jmorganca/llama-update-6
brucemacd/benchmark-list
brucemacd/partial-read-caps
parth/deepseek-r1-tools
mxyng/omit-array
parth/tool-prefix-temp
brucemacd/runner-test
jmorganca/qwen25vl
brucemacd/model-forward-test-ext
parth/python-function-parsing
jmorganca/cuda-compression-none
drifkin/num-parallel
drifkin/chat-truncation-fix
jmorganca/sync
parth/python-tools-calling
drifkin/array-head-count
brucemacd/create-no-loop
parth/server-enable-content-stream-with-tools
qwen25omni
mxyng/v3
brucemacd/ropeconfig
jmorganca/silence-tokenizer
parth/sample-so-test
parth/sampling-structured-outputs
brucemacd/doc-go-engine
parth/constrained-sampling-json
jmorganca/mistral-wip
brucemacd/mistral-small-convert
parth/sample-unmarshal-json-for-params
brucemacd/jomorganca/mistral
pdevine/bfloat16
jmorganca/mistral
brucemacd/mistral
pdevine/logging
parth/sample-correctness-fix
parth/sample-fix-sorting
jmorgan/sample-fix-sorting-extras
jmorganca/temp-0-images
brucemacd/parallel-embed-models
brucemacd/shim-grammar
jmorganca/fix-gguf-error
bmizerany/nameswork
jmorganca/faster-releases
bmizerany/validatenames
brucemacd/err-no-vocab
brucemacd/rope-config
brucemacd/err-hint
brucemacd/qwen2_5
brucemacd/logprobs
brucemacd/new_runner_graph_bench
progress-flicker
brucemacd/forward-test
brucemacd/go_qwen2
pdevine/gemma2
jmorganca/add-missing-symlink-eval
mxyng/next-debug
parth/set-context-size-openai
brucemacd/next-bpe-bench
brucemacd/next-bpe-test
brucemacd/new_runner_e2e
brucemacd/new_runner_qwen2
pdevine/convert-cohere2
brucemacd/convert-cli
parth/log-probs
mxyng/next-mlx
mxyng/cmd-history
parth/templating
parth/tokenize-detokenize
brucemacd/check-key-register
bmizerany/grammar
jmorganca/vendor-081b29bd
mxyng/func-checks
jmorganca/fix-null-format
parth/fix-default-to-warn-json
jmorganca/qwen2vl
jmorganca/no-concat
parth/cmd-cleanup-SO
brucemacd/check-key-register-structured-err
parth/openai-stream-usage
parth/fix-referencing-so
stream-tools-stop
jmorganca/degin-1
brucemacd/install-path-clean
brucemacd/push-name-validation
brucemacd/browser-key-register
jmorganca/openai-fix-first-message
jmorganca/fix-proxy
jessegross/sample
parth/disallow-streaming-tools
dhiltgen/remove_submodule
jmorganca/ga
jmorganca/mllama
pdevine/newlines
pdevine/geems-2b
jmorganca/llama-bump
mxyng/modelname-7
mxyng/gin-slog
mxyng/modelname-6
jyan/convert-prog
jyan/quant5
paligemma-support
pdevine/import-docs
jmorganca/openai-context
jyan/paligemma
jyan/p2
jyan/palitest
bmizerany/embedspeedup
jmorganca/llama-vit
brucemacd/allow-ollama
royh/ep-methods
royh/whisper
mxyng/api-models
mxyng/fix-memory
jyan/q4_4/8
jyan/ollama-v
royh/stream-tools
roy-embed-parallel
bmizerany/hrm
revert-5963-revert-5924-mxyng/llama3.1-rope
royh/embed-viz
jyan/local2
jyan/auth
jyan/local
jyan/parse-temp
jmorganca/template-mistral
jyan/reord-g
royh-openai-suffixdocs
royh-imgembed
royh-embed-parallel
jyan/quant4
royh-precision
jyan/progress
pdevine/fix-template
jyan/quant3
pdevine/ggla
mxyng/update-registry-domain
jmorganca/ggml-static
mxyng/create-context
jyan/v0.146
mxyng/layers-from-files
build_dist
bmizerany/noseek
royh-ls
royh-name
timeout
mxyng/server-timestamp
bmizerany/nosillyggufslurps
royh-params
jmorganca/llama-cpp-7c26775
royh-openai-delete
royh-show-rigid
jmorganca/enable-fa
jmorganca/no-error-template
jyan/format
royh-testdelete
bmizerany/fastverify
language_support
pdevine/ps-glitches
brucemacd/tokenize
bruce/iq-quants
bmizerany/filepathwithcoloninhost
mxyng/split-bin
bmizerany/client-registry
jmorganca/if-none-match
native
jmorganca/native
jmorganca/batch-embeddings
jmorganca/initcmake
jmorganca/mm
pdevine/showggmlinfo
modenameenforcealphanum
bmizerany/modenameenforcealphanum
jmorganca/done-reason
jmorganca/llama-cpp-8960fe8
ollama.com
bmizerany/filepathnobuild
bmizerany/types/model/defaultfix
rmdisplaylong
nogogen
bmizerany/x
modelfile-readme
bmizerany/replacecolon
jmorganca/limit
jmorganca/execstack
jmorganca/replace-assets
mxyng/tune-concurrency
jmorganca/testing
whitespace-detection
jmorganca/options
upgrade-all
scratch
cuda-search
mattw/airenamer
mattw/allmodelsonhuggingface
mattw/quantcontext
mattw/whatneedstorun
brucemacd/llama-mem-calc
mattw/faq-context
mattw/communitylinks
mattw/noprune
mattw/python-functioncalling
rename
mxyng/install
pulse
remove-first
editor
mattw/selfqueryingretrieval
cgo
mattw/howtoquant
api
matt/streamingapi
format-config
mxyng/extra-args
shell
update-nous-hermes
cp-model
upload-progress
fix-unknown-model
fix-model-names
delete-fix
insecure-registry
ls
deletemodels
progressbar
readme-updates
license-layers
skip-list
list-models
modelpath
matt/examplemodelfiles
distribution
go-opts
v0.23.1
v0.23.1-rc0
v0.23.0
v0.23.0-rc0
v0.22.1
v0.22.1-rc1
v0.22.1-rc0
v0.22.0
v0.22.0-rc1
v0.21.3-rc0
v0.21.2-rc1
v0.21.2
v0.21.2-rc0
v0.21.1
v0.21.1-rc1
v0.21.1-rc0
v0.21.0
v0.21.0-rc1
v0.21.0-rc0
v0.20.8-rc0
v0.20.7
v0.20.7-rc1
v0.20.7-rc0
v0.20.6
v0.20.6-rc1
v0.20.6-rc0
v0.20.5
v0.20.5-rc2
v0.20.5-rc1
v0.20.5-rc0
v0.20.4
v0.20.4-rc2
v0.20.4-rc1
v0.20.4-rc0
v0.20.3
v0.20.3-rc0
v0.20.2
v0.20.1
v0.20.1-rc2
v0.20.1-rc1
v0.20.1-rc0
v0.20.0
v0.20.0-rc1
v0.20.0-rc0
v0.19.0
v0.19.0-rc2
v0.19.0-rc1
v0.19.0-rc0
v0.18.4-rc1
v0.18.4-rc0
v0.18.3
v0.18.3-rc2
v0.18.3-rc1
v0.18.3-rc0
v0.18.2
v0.18.2-rc1
v0.18.2-rc0
v0.18.1
v0.18.1-rc1
v0.18.1-rc0
v0.18.0
v0.18.0-rc2
v0.18.0-rc1
v0.18.0-rc0
v0.17.8-rc4
v0.17.8-rc3
v0.17.8-rc2
v0.17.8-rc1
v0.17.8-rc0
v0.17.7
v0.17.7-rc2
v0.17.7-rc1
v0.17.7-rc0
v0.17.6
v0.17.5
v0.17.4
v0.17.3
v0.17.2
v0.17.1
v0.17.1-rc2
v0.17.1-rc1
v0.17.1-rc0
v0.17.0
v0.17.0-rc2
v0.17.0-rc1
v0.17.0-rc0
v0.16.3
v0.16.3-rc2
v0.16.3-rc1
v0.16.3-rc0
v0.16.2
v0.16.2-rc0
v0.16.1
v0.16.0
v0.16.0-rc2
v0.16.0-rc0
v0.16.0-rc1
v0.15.6
v0.15.5
v0.15.5-rc5
v0.15.5-rc4
v0.15.5-rc3
v0.15.5-rc2
v0.15.5-rc1
v0.15.5-rc0
v0.15.4
v0.15.3
v0.15.2
v0.15.1
v0.15.1-rc1
v0.15.1-rc0
v0.15.0-rc6
v0.15.0
v0.15.0-rc5
v0.15.0-rc4
v0.15.0-rc3
v0.15.0-rc2
v0.15.0-rc1
v0.15.0-rc0
v0.14.3
v0.14.3-rc3
v0.14.3-rc2
v0.14.3-rc1
v0.14.3-rc0
v0.14.2
v0.14.2-rc1
v0.14.2-rc0
v0.14.1
v0.14.0-rc11
v0.14.0
v0.14.0-rc10
v0.14.0-rc9
v0.14.0-rc8
v0.14.0-rc7
v0.14.0-rc6
v0.14.0-rc5
v0.14.0-rc4
v0.14.0-rc3
v0.14.0-rc2
v0.14.0-rc1
v0.14.0-rc0
v0.13.5
v0.13.5-rc1
v0.13.5-rc0
v0.13.4-rc2
v0.13.4
v0.13.4-rc1
v0.13.4-rc0
v0.13.3
v0.13.3-rc1
v0.13.3-rc0
v0.13.2
v0.13.2-rc2
v0.13.2-rc1
v0.13.2-rc0
v0.13.1
v0.13.1-rc2
v0.13.1-rc1
v0.13.1-rc0
v0.13.0
v0.13.0-rc0
v0.12.11
v0.12.11-rc1
v0.12.11-rc0
v0.12.10
v0.12.10-rc1
v0.12.10-rc0
v0.12.9-rc0
v0.12.9
v0.12.8
v0.12.8-rc0
v0.12.7
v0.12.7-rc1
v0.12.7-rc0
v0.12.7-citest0
v0.12.6
v0.12.6-rc1
v0.12.6-rc0
v0.12.5
v0.12.5-rc0
v0.12.4
v0.12.4-rc7
v0.12.4-rc6
v0.12.4-rc5
v0.12.4-rc4
v0.12.4-rc3
v0.12.4-rc2
v0.12.4-rc1
v0.12.4-rc0
v0.12.3
v0.12.2
v0.12.2-rc0
v0.12.1
v0.12.1-rc1
v0.12.1-rc2
v0.12.1-rc0
v0.12.0
v0.12.0-rc1
v0.12.0-rc0
v0.11.11
v0.11.11-rc3
v0.11.11-rc2
v0.11.11-rc1
v0.11.11-rc0
v0.11.10
v0.11.9
v0.11.9-rc0
v0.11.8
v0.11.8-rc0
v0.11.7-rc1
v0.11.7-rc0
v0.11.7
v0.11.6
v0.11.6-rc0
v0.11.5-rc4
v0.11.5-rc3
v0.11.5
v0.11.5-rc5
v0.11.5-rc2
v0.11.5-rc1
v0.11.5-rc0
v0.11.4
v0.11.4-rc0
v0.11.3
v0.11.3-rc0
v0.11.2
v0.11.1
v0.11.0-rc0
v0.11.0-rc1
v0.11.0-rc2
v0.11.0
v0.10.2-int1
v0.10.1
v0.10.0
v0.10.0-rc4
v0.10.0-rc3
v0.10.0-rc2
v0.10.0-rc1
v0.10.0-rc0
v0.9.7-rc1
v0.9.7-rc0
v0.9.6
v0.9.6-rc0
v0.9.6-ci0
v0.9.5
v0.9.4-rc5
v0.9.4-rc6
v0.9.4
v0.9.4-rc3
v0.9.4-rc4
v0.9.4-rc1
v0.9.4-rc2
v0.9.4-rc0
v0.9.3
v0.9.3-rc5
v0.9.4-citest0
v0.9.3-rc4
v0.9.3-rc3
v0.9.3-rc2
v0.9.3-rc1
v0.9.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.19
v0.1.18
v0.1.17
v0.1.16
v0.1.15
v0.1.14
v0.1.13
v0.1.12
v0.1.11
v0.1.10
v0.1.9
v0.1.8
v0.1.7
v0.1.6
v0.1.5
v0.1.4
v0.1.3
v0.1.2
v0.1.1
v0.1.0
v0.0.21
v0.0.20
v0.0.19
v0.0.18
v0.0.17
v0.0.16
v0.0.15
v0.0.14
v0.0.13
v0.0.12
v0.0.11
v0.0.10
v0.0.9
v0.0.8
v0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
Labels
Clear labels
amd
api
app
bug
build
cli
cloud
compatibility
context-length
create
docker
documentation
embeddings
feature request
feedback wanted
good first issue
gpt-oss
gpu
harmony
help wanted
image
install
intel
js
launch
linux
macos
memory
mlx
model
needs more info
networking
nvidia
ollama.com
performance
pull-request
python
question
registry
rendering
thinking
tools
top
vulkan
windows
wsl
Mirrored from GitHub Pull Request
No Label
gpu
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ollama#26795
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sthufnagl on GitHub (Jan 5, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/1813
Originally assigned to: @dhiltgen on GitHub.
Hi,
I have 3x3090 and I want to run Ollama Instance only on a dedicated GPU. The reason for this: To have 3xOllama Instances (with different ports) for using with Autogen.
I also tried the "Docker Ollama" without luck.
Or is there an other solution?
Let me know...
Thanks in advance
Steve
@Tomatcree01 commented on GitHub (Jan 5, 2024):
You could give me the other two
@sthufnagl commented on GitHub (Jan 6, 2024):
:-)
@sthufnagl commented on GitHub (Jan 6, 2024):
Could it be that the numbers of GPUs used with Ollama is related to the model?
At the page https://github.com/jmorganca/ollama/blob/main/docs/modelfile.md they mentioned a "num_gpu" parameter.
==> I have to create a new Model File from an existant Model? And include this parameter?
Still searching....
@tarbard commented on GitHub (Jan 6, 2024):
That's just the number of layers. I don't think there's a way to control GPU affinity but I would also like to do this. Another issue for me is it is automatically splitting a model between 2 GPUs even though it would fit on a single GPU (which would be faster) so I would like to just make it use the one with bigger VRAM.
@tarbard commented on GitHub (Jan 6, 2024):
I tried a bit of research - it seems the relevant llama options are
Checking the https://github.com/jmorganca/ollama/blob/main/docs/api.md docs we should be able to pass in main_gpu to the API, so I tried with setting main_gpu to 1
This didn't seem to work as the same memory split took place rather than it using only the second GPU. Maybe the option is not yet passed onto llama from ollama. I had a look at the ollama code but i'm not familiar with Go so i'm not sure.
@sthufnagl commented on GitHub (Jan 7, 2024):
Thx tarbard...I will check it.
@houstonhaynes commented on GitHub (Jan 7, 2024):
If you're running in three separate containers via docker you can start up each container to only be "aware" of one GPU.
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/docker-specialized.html
@sthufnagl commented on GitHub (Jan 8, 2024):
@houstonhaynes...I had the same Idea, but it doesn't work for me. Ollama, running inside Docker, takes all GPUs no matter how I use the the Docker Parameter "--gpu" (also tried the ID of a GPU).
:-(
Does it work for you?
My solution now is to splt/distribute the 3090 to different PCs. To my surprise, even with very old PC Hardware, Ollama runs fast!
Also the uploading of a Model to VRAM is nearly the same.
@houstonhaynes commented on GitHub (Jan 8, 2024):
That is wild - I guess I "trust the manual" too much! I have two machines with an RTX3050 on each and haven't moved one over to have two on one machine. I was just doing some spelunking for GPU driven inference with postgresml and spotted that "deep" info from NVidia along the way. I thought it would be useful when I upgrade. I'm sorry it's not more helpful but maybe the controls "under the hood" suggested above will give you the right lever(s). I'd love to know how that turns out in case it comes calling after I put a bunch of cards in a GPU chassis! 😸
@null-dev commented on GitHub (Jan 11, 2024):
BTW you can use
CUDA_VISIBLE_DEVICESfor this, see: https://stackoverflow.com/questions/39649102/how-do-i-select-which-gpu-to-run-a-job-onUnfortunately, the name of the environment variable is kinda a lie. It appears the other GPUs are still visible, just not accessible, so when
ollamacalculates the compute capability level of the GPUs, it will take into account the other GPUs.This is bad, because if you have GPU 0 with compute capability X, and GPU 1 with compute capability Y and you setEDIT: Nevermind, this isn't a problem because it looks like Ollama doesn't actually do anything with the detected compute capability information, it's just used to validate whether or not to use GPUs at all.CUDA_VISIBLE_DEVICES=0, ollama will detect the compute capability asmin(X, Y)when instead compute capabilityXis the best value.@cgint commented on GitHub (Jan 21, 2024):
Same challenge here.
CUDA_VISIBLE_DEVICESsomehow does not work for me as a switch between models that fit onto one GPU and others that need 2. I could though spin up two instances ofollamaon two ports where one hasCUDA_VISIBLE_DEVICESset to only 'see' one device and the second instance has access to both. Then I would have to decide myself depending on the model which instance to connect to.Would really be awesome if either ...
main_gpumentioned by @tarbard sounds like that.Will check out if
main_gpuworks on my system.Damn!
Not working with Ollama in Python - although the option is handed over to the HTTP-Request to Ollama-Endpoint. 🤷
What i do get since activating {'main_gpu': 1} though ... is a log output when a model is loaded saying
ollama[1733]: ggml_cuda_set_main_device: using device 1 (NVIDIA GeForce RTX 4060 Ti) as main device.But the model is still distributed across my 2 GPUs although it would fit onto one.
With my current solution i spin up another instance of
ollamawith the following command ...... and whenever I know a model fits on one GPU i connect to this port on my local machine.
Thx for the
CUDA_VISIBLE_DEVICES@null-dev@matbeedotcom commented on GitHub (Jan 27, 2024):
-damn, I was not hoping for this outcome. Has anyone figured out how to restrict it to just one?- nvm, using CUDA_VISIBLE_DEVICES seemed to have done the trick
@Koesn commented on GitHub (Feb 25, 2024):
Why this still unsupported? I'm running LM Studio to dedicate a GPU using tensor split 0,35 so I can fully offload Mistral 32k context to a 3060. I hope there's a tensor split on Ollama modelfile.
@dhiltgen commented on GitHub (Mar 12, 2024):
CUDA_VISIBLE_DEVICES should work. We do have a defect related to memory prediction calculations in this case tracked via #1514
If you're seeing it load onto unexpected GPUs when this variable is set, please share the server log and some more details about the setup and I'll re-open.
@jeremytregunna commented on GitHub (Mar 14, 2024):
As you can see in the above image, I have 3 GPUs. 2x RTX A6000 and 1x 3070. I use the A6000s for bigger models through Ollama, and the smaller GPU I want to reserve for embedding models. However, when I start the server using the systemd config below:
Restart Ollama, and use say dolphin-mixtral:8x7b-v2.7-q8_0 (a model that will occupy more GPU memory than i have on any one GPU), it distributes it over device 0 and 1 instead of 0 and 2. I can wholly confirm I did a
systemctl daemon-reload, then asystemctl restart ollamabefore then sending a message to the dolphin-mixtral model and watching nvtop.So it doesn't seem as though CUDA_VISIBLE_DEVICES is working as intended. For completeness here's the output of nvidia-smi:
Any help would be appreciated. @dhiltgen
@dhiltgen commented on GitHub (Mar 15, 2024):
@jeremytregunna it sounds like there might be an ordering/enumeration bug where we're not consistent with other tools. If I had to guess, I'd speculate this is some tools/libraries using PCI bus/slot, and others sorting by capability/performance.
Can you enable OLLAMA_DEBUG=1 and start up the server?
Also try
CUDA_VISIBLE_DEVICES=0,1and from what you describe, that sounds like it might get the GPU assignment right.@jeremytregunna commented on GitHub (Mar 16, 2024):
Hrmm... I've run it with debug logs on a few times, and the ordering never seems to change, it always reports the output below:
I verified they're the same devices by looking at the serial number. I also tried what you said with using `CUDA_VISIBLE_DEVICES=0,1" and 1,2 with no luck
The whole log is preserved below, note this is with
0,2but as I previously mentioned, that made no difference:@dhiltgen commented on GitHub (Mar 18, 2024):
@jeremytregunna looking back on that screen shot you posted above, I think the problem may be a result of how you have your cards plugged into your PCI slots. I believe you have 1 of the A6000's and the 3070 in the PCI 4@16x slots, but the other A6000 is in a older/slower PCI 1@16x slot. If you put both of the A6000's into the gen 4 slots and the 3070 into the gen 1 slot, perhaps things will be selected properly.
@jeremytregunna commented on GitHub (Mar 18, 2024):
Nope that's not it, but you are correct in one respect. The second A6000, since not being used, is currently at PCE1 speeds but, if I select it specifically in some other torch code, it bumps up to PCIE4x16 speeds. nvtop right now reports all 3 cards at PCE gen1 speeds because nothing is loaded. I can assure you, they're all plugged into gen 4 x16 slots.
@dhiltgen commented on GitHub (Mar 19, 2024):
Can you try setting
CUDA_DEVICE_ORDERas well. Options areFASTEST_FIRSTorPCI_BUS_IDIt looks like you can also specify device UUIDs for the visible device setting which might help. https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#id205
Use
nvidia-smi -Lto get the UUIDs of your GPUs.Hopefully some combination of these will get things aligned.
@jeremytregunna commented on GitHub (Mar 21, 2024):
Ok this had an interesting effect. Loading dolphin-mixtral:8x7b-v2.7-q8_0 again, it splits 50%/50% on the A6000s now with
FASTEST_FIRST, but it also uses about 1/4 of memory on the 3070. I can confirm all memory usage on all the GPUs is nominal before dolphin-mixtral is loaded. I essentially need to keep tho 3070 out of consideration for ollama entirely, so this won't exactly work since it'll always be in the mix.@jeremytregunna commented on GitHub (Mar 21, 2024):
@dhiltgen So tried with the explicit UUIDs with
CUDA_VISIBLE_DEVICESand that works, but their GPU instance IDs do not work. For now, this is resolved, but I am left wondering if Ollama can do better?@Koesn commented on GitHub (Mar 25, 2024):
@dhiltgen Thank you, CUDA_VISIBLE_DEVICES works. Finally.
@datalee commented on GitHub (Apr 12, 2024):
mark
@datalee commented on GitHub (Apr 12, 2024):
It can also be specified like this:
CUDA_VISIBLE_DEVICES=xx OLLAMA_HOST=0.0.0.0:xxx OLLAMA_MODELS=xxx/ollama_cache ollama serve@papandadj commented on GitHub (Apr 19, 2024):
damn. CUDA_VISIBLE_DEVICES is fine for me. thank you.
@charles-cai commented on GitHub (Apr 30, 2024):
@jeremytregunna
gpustat --watchlooks very cool :)ah it's actually nvtop!
@pykeras commented on GitHub (May 8, 2024):
Automate/Easy GPU Selection for Ollama
Hi everyone,
I wanted to share a handy script I created for automating GPU selection when running Ollama. You can find the script here. This script allows you to specify which GPU(s) Ollama should utilize, making it easier to manage resources and optimize performance.
How to Use:
ollama_gpu_selector.shscript from the gist.chmod +x ollama_gpu_selector.sh.sudo ./ollama_gpu_selector.sh.Additionally, I've included aliases in the gist for easier switching between GPU selections. Feel free to customize these aliases to suit your preferences.
If you encounter any issues or have suggestions for improvement, please let me know! I hope this script helps streamline your Ollama workflow.
Happy coding!
@emourdavid commented on GitHub (May 13, 2024):
Thank you, I can run this successful.
@pccross commented on GitHub (Oct 4, 2024):
Does the CUDA_VISIBLE_DEVICES work on AMD ROCm GPU's? I tried setting it to just a single GPU (3, then 2, then 1), and it always loaded my LLM's (4 simultaneous instances of Llama3.1:8b) to different GPU's in what seemed random fashion, when I just wanted the 4 loaded to a single GPU (with 192GB VRAM).
@jeremytregunna commented on GitHub (Oct 4, 2024):
No, because AMD GPUs don't use CUDA. But you can get the right env var for you here: https://rocm.docs.amd.com/en/latest/conceptual/gpu-isolation.html
Though I should note, not sure how this interacts with Ollama because I don't use AMD GPUs, but if it works like the CUDA env vars do, it should "just work".
@AlessandroBorges commented on GitHub (Oct 6, 2024):
@jeremytregunna I think the odd one out here is the RTX 3070 8GB, especially when paired with two "800-pound gorillas" like the A6000 48GB. Unless you're in desperate need of that extra 8GB, it's probably better to remove the 3070 and let the pair of A6000s work together seamlessly. You can put this 3070 in another PC and use it to run embeddings.
@jeremytregunna commented on GitHub (Oct 7, 2024):
Even if that's true, and certainly removing that GPU worked around the problem, it highlighted a bug in the nvidia drivers. Easy assumption to make, all GPUs will be the same, but that's not always true. In my case, the A6000s were used for inference with LLMs, and the 3070 was used for embedding models outside of Ollama. I've since moved the embedding work off of the A6000 nodes, but the issue stood. Anyway, the UUIDs work and the indexes didn't.
@PiDevi commented on GitHub (Oct 17, 2024):
I recently faced a similar challenge while managing multiple CUDA GPUs on my Windows machine. After thorough research, I discovered a convenient method for selectively enabling which GPUs are visible to specific programs.
Allow Specific GPU Access for Programs:
For users of Windows machines with Nvidia CUDA GPUs, the Nvidia Control Panel offers a graphical interface to configure program-specific GPU allocation. Open Nvidia Control Panel and navigate to 'Manage 3D Settings' > switch to the tab 'Program Settings' and select the desired program. Under the 'CUDA - GPUs' section, choose the desired GPU or list of GPUs to allocate to that program. Click on 'Apply', and restart your program such as Ollama.exe. For image generation UIs, you need to select the specific used python.exe in that UI installation (e.g. C:\ForgeUI\system\python\python.exe).
My Configuration:
In my setup, I have a 2060 (8GB) and two older P40s (24GB each). I utilize Ollama in parallel with two image generator IUs (Easy Diffusion and ForgeUI). Ollama loads onto one of my P40s, ForgeUI uses the 2060, while Easy Diffusion gets the second P40.
CUDA_VISIBLE_DEVICES Parameter:
It's important to note that from my understanding the CUDA_VISIBLE_DEVICES parameter is a CUDA-level setting applicable both locally and system-wide. From what I have experienced this parameter is not specific to Ollama. Setting this parameter to a specific GPU or list of GPUs unfortunately hide all my other CUDA GPUs not explicitly listed. Those not listed GPUs became unavailable to any program on my machine that relies on CUDA.
@YouxunYao commented on GitHub (Oct 26, 2024):
(base) PS C:\Users\11648> conda activate OllamaGPU
(OllamaGPU) PS C:\Users\11648> $env:CUDA_VISIBLE_DEVICES ="1"
(OllamaGPU) PS C:\Users\11648> Start-Process "C:\Users\11648\AppData\Local\Programs\Ollama\ollama app.exe"
(OllamaGPU) PS C:\Users\11648>
So using anaconda env this way solved this problem for me, now Ollama only runs on the specified GPU, and at the same time it doesn't affect other applications.
@mshakirDr commented on GitHub (Nov 17, 2024):
Two devices = A 4090 and an RTX Ada 2000.
Use CUDA_VISIBLE_DEVICES=0, CUDA_VISIBLE_DEVICES=1 in two terminal windows.
set OLLAMA_HOST to different ports in each window
Run ollama serve
Run inference on both models in parallel in python.
One model runs on Ada 2000 (the smaller GPU), the other is partially offloaded to CPU (RTX4090 is apparently only used for VRAM).
The above workaround was to circumvent "mllama doesn't support parallel requests yet" in Llama 3.2 Vision models. But it does not work either.
@LeeABarron commented on GitHub (Nov 21, 2024):
@dhiltgen worked with your weekend changes! thank you!
I compiled with make CUSTOM_CPU_FLAGS="" -j 5 cuda_v12 CUDA_12_PATH=/usr/local/cuda-12.5
@aviupa commented on GitHub (Feb 1, 2025):
Well if you were still not able to do it here's how I did it.
Switched to Ollama Docker:- https://github.com/valiantlynx/ollama-docker
Installed and ran everything from the documentation on the above link. Used docker-compose to do so. Then changed the "docker-compose-ollama-gpu.yaml" to:
deploy: resources: reservations: devices: - driver: nvidia capabilities: [gpu] device_ids: ["2"]Ran the containers with docker-compose to use the 3rd GPU successfully.
@ohpage commented on GitHub (Jun 18, 2025):
Solved at last
I got 2 GPU(cuda 0 : RTX3090/24G, cuda 1: rtx3060/12G) in my pc and want to put ollama in cuda 1.
Model is gemma3:12b_q4(8.1GB)
if something wrong after reboot, then i'll remove this comment
@akaghzi commented on GitHub (Jun 30, 2025):
worked for me on ubuntu 24.04
@Zabadeus commented on GitHub (Aug 7, 2025):
On Windows I fixed it by adding a new "User variables" (in "Environment Variables" with
Name: LLAMA_CUDA_FORCE
Value: 1
forcing the system to use my main (second) GPU when running LLama.cpp
@xxDoman commented on GitHub (Nov 24, 2025):
Poradnik: AMD MI50 + RTX 4070 na Ubuntu 24.04 (Ollama Dual-GPU)
Wymagania sprzętowe:
Płyta główna: MSI PRO B760-P WIFI DDR4 (wymaga patchowania w GRUB).
GPU 1 (AI): AMD Radeon Instinct MI50 32GB.
GPU 2 (Display): NVIDIA GeForce RTX 4070.
KROK 1: Instalacja Systemu i Sterowników Wstępnych
Zainstaluj Ubuntu 24.04 LTS.
KLUCZOWE: Podczas instalacji zaznacz opcję:
"Zainstaluj oprogramowanie stron trzecich dla urządzeń graficznych i Wi-Fi" (Install third-party software for graphics and Wi-Fi hardware).
Dlaczego: To zainstaluje wstępne sterowniki, które potem podmienimy/wyłączymy, ale zapewni bazę dla systemu.
KROK 2: Konfiguracja GRUB (Obowiązkowa dla MI50)
Płyta B760 nie obsługuje poprawnie karty serwerowej MI50 bez wymuszenia parametrów jądra.
Otwórz terminal i edytuj plik GRUB:
Bash
sudo nano /etc/default/grub
Znajdź linię GRUB_CMDLINE_LINUX_DEFAULT i zamień ją na dokładnie taką:
Bash
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.ignore_crat=1 amdgpu.exp_hw_support=1 iommu=pt"
Zapisz (Ctrl+O, Enter) i wyjdź (Ctrl+X).
Zaktualizuj GRUB:
Bash
sudo update-grub
KROK 3: "Patent na Nvidię" (Przełączenie na X11/Nouveau)
Musimy "oślepić" system na Nvidię przed instalacją Ollamy, aby instalator wykrył tylko AMD. Nie odinstalowujemy sterowników, tylko przełączamy je na bezpieczne.
Otwórz aplikację Oprogramowanie i Aktualizacje (Software & Updates).
Przejdź do zakładki Dodatkowe sterowniki (Additional Drivers).
Znajdź na liście kartę NVIDIA.
Zaznacz ostatnią opcję:
Używanie X.Org X server -- Nouveau display driver (otwartoźródłowy)
Kliknij Zastosuj zmiany.
ZRESTARTUJ KOMPUTER.
Po restarcie karta NVIDIA zniknie z zasobów CUDA, a system będzie działał na podstawowym sterowniku graficznym.
KROK 4: Instalacja Ollama (Wersja Specjalna)
Instalujemy konkretną wersję 0.12.3, która zawiera kompatybilny stos bibliotek ROCm dla Twojej konfiguracji.
Wpisz w terminalu:
Bash
curl -fsSL https://ollama.com/install.sh | OLLAMA_VERSION=0.12.3 sh
Oczekiwany wynik: Skrypt pobierze pakiet AMD, wykryje kartę i wyświetli komunikat "AMD GPU ready".
KROK 5: Konfiguracja Usługi (Izolacja GPU)
Aby Ollama zawsze używała MI50, nawet gdy przywrócimy Nvidię, musimy dodać konfigurację, którą przetestowałeś.
Edytuj usługę Ollama:
Bash
sudo systemctl edit ollama
Wklej poniższą sekcję (poniżej znaczników komentarzy):
Ini, TOML
[Service]
1. Wymuszamy silnik ROCm
Environment="OLLAMA_LLM_LIBRARY=rocm"
2. Wskazujemy KONKRETNIE kartę AMD (MI50 ma zazwyczaj ID 0 w trybie obliczeniowym)
Environment="HIP_VISIBLE_DEVICES=0"
3. Ukrywamy Nvidię dla Ollamy (CUDA OFF)
Environment="CUDA_VISIBLE_DEVICES=-1"
Zapisz i wyjdź (Ctrl+O, Enter, Ctrl+X).
Przeładuj i zrestartuj usługę:
Bash
sudo systemctl daemon-reload
sudo systemctl restart ollama
KROK 6: Przywrócenie NVIDIA (Dla Pulpitu/Gier)
Teraz, gdy Ollama jest "zabetonowana" na AMD, możemy przywrócić pełną wydajność graficzną RTX 4070.
Otwórz ponownie Oprogramowanie i Aktualizacje > Dodatkowe sterowniki.
Przy karcie NVIDIA wybierz najnowszy sterownik własnościowy (np. nvidia-driver-535 lub 550 - ten z dopiskiem (własnościowy)).
Kliknij Zastosuj zmiany.
ZRESTARTUJ KOMPUTER.
✅ KROK 7: Weryfikacja Końcowa
Uruchom Mission Center (lub btop).
Uruchom model:
Bash
ollama run llama3
Obserwuj:
Pulpit działa płynnie na RTX 4070.
Model ładuje się do VRAM na AMD MI50 (obciążenie i pamięć skaczą na GPU AMD).
Gotowe. Masz hybrydowy system AI/Gaming.