mirror of
https://github.com/ollama/ollama.git
synced 2026-05-07 00:22:43 -05:00
Open
opened 2026-04-12 11:59:32 -05:00 by GiteaMirror
·
29 comments
No Branch/Tag Specified
main
hoyyeva/anthropic-local-image-path
dhiltgen/ci
dhiltgen/llama-runner
parth-remove-claude-desktop-launch
hoyyeva/anthropic-reference-images-path
parth-anthropic-reference-images-path
brucemacd/download-before-remove
hoyyeva/editor-config-repair
parth-mlx-decode-checkpoints
parth-launch-codex-app
hoyyeva/fix-codex-model-metadata-warning
hoyyeva/qwen
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
parth/update-claude-docs
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.30.0-rc3
v0.30.0-rc2
v0.30.0-rc1
v0.30.0-rc0
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-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-rc1
v0.1.31
v0.1.30
v0.1.29
v0.1.28
v0.1.27
v0.1.26
v0.1.25
v0.1.24
v0.1.23
v0.1.22
v0.1.21
v0.1.20
v0.1.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
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#1894
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 @nfsecurity on GitHub (Mar 12, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/3078
Originally assigned to: @mxyng on GitHub.
Hi, thank you for the wonderful ollama project and the amazing community!
I am testing the Mixtral 3Bit Quantized model under a RTX400 with 20GB of VRAM. The model is 20GB of size and as you can see in the screenshot of nvidia-smi, ollama is using only 18GB and the rest of the model was loaded to the system RAM.
Is this normal? or is it an issue?, Can I force ollama to use the 100% of VRAM?, thank you!!!
@orlyandico commented on GitHub (Mar 12, 2024):
Adding my report here, seems to be a similar issue.
I'm getting less than 1 token per second with 2x P40 and
Smaug-72B-v0.1-q4_k_m.ggufquantised model from HuggingFace (4.84 bpw). CPU is at 400%, GPU's hover at 20-40% CPU utilisation, log says only 65 of 81 layers are offloaded to the GPU; the model is 40GB in size, 16GB on each GPU is used for the model and 2GB for the KV cache, total of 18GB VRAM per GPU verified by nvidia-smi. Total of 36GB, but I have 48GB in total. I figure if all of the 81 layers were on the GPU, this would use 20GB of VRAM, leaving 4GB for KV cache.Logs:
nvidia-smi output:
@orlyandico commented on GitHub (Mar 12, 2024):
The more-aggressively quantised version
Smaug-72B-v0.1-q2_k.ggufloads entirely on the GPU, runs at 100% GPU and 40-60% GPU compute on each of the two P40's.It seems that the rounding logic for determining how many layers to put on the GPU is excessively conservative, but I can't find it in the source code...
@AdaptiveStep commented on GitHub (Mar 13, 2024):
I wish if it could say "Using only CPU" or "Using only GPU" . Or "Slow inference detected" .. or stuff like that. We are not supposed to discover these things by accident.
@orlyandico commented on GitHub (Mar 13, 2024):
This part tells us the model is running entirely (or almost entirely) on the GPU:
And this disaster is telling us that at least some of the layers are evaluating on the CPU. Interestingly even though 32GB of the 40GB model is loaded on the GPU's, the entire model is also loaded into host CPU RAM...
@nfsecurity commented on GitHub (Mar 18, 2024):
So, is it a bug in the VRAM memory allocation or is it the expected behavior ?
@orlyandico commented on GitHub (Mar 18, 2024):
I was able to fix this by RTFM.
You can set the num_gpu parameter to force a certain number of layers onto the GPU (s).
For Smaug-72B 4-bit quantised:
If you have the GGUF file you can also add the number of GPU layers to the modelfile before importing it into Ollama, e.g.
(I knew from the Ollama logs that this particular GGUF had 81 layers)
What I noticed is that with Smaug-72b 4-bit quantised (4.85bpw) and all of the 81 layers on the GPU, each of my P40's has less than 1GB of free RAM when inferencing. So things (barely) fit. I am guessing the Ollama default estimation algorithm is overly conservative because you will get a crash if you OOM the GPU(s). You can try setting the parameter manually on your setup/model and see if it works.
@nfsecurity commented on GitHub (Mar 19, 2024):
Thank you @orlyandico, I was able to increase by 2 the number of layers deployed in the VRAM GPU using Mixtral 3BitQ (from 29/33 to 31/33). I gained some performance in tokens per second. Now, ollama process is using more memory:
Your advice about OOM is very important, we have to monitor carefully the memory usage.
@orlyandico commented on GitHub (Mar 19, 2024):
You won't get the full benefit of GPU unless all the layers are on the GPU. You might be better off using a slightly more quantized model e.g. 3bpw instead of 4bpw, so everything can fit on the GPU. But since you're already using a 3bpw model... probably not a great idea.
@strikeoncmputrz commented on GitHub (Apr 12, 2024):
@orlyandico did you just guess on the number of layers to offload after seeing 81 total in Ollama logs, or is there some algorithm one can apply to estimate? I've stuck with exl2 and smaller models because I don't want to futz around with guessing num_layers / num_gpu and cranking my CPUs up to 100% repeatedly while testing but Mixtral8x22 has me reconsidering offloading some layers to CPU :-)
@orlyandico commented on GitHub (Apr 12, 2024):
the logs display the number of layers.
it was just a guess on my part that all the layers fit.
incidentally i tried to do the same thing on an A6000-ada (rented).
smaug-72b doesn’t fit. the A6000-ada 48GB has 45GB of memory reported by
Nvidia-SMI. I guess because it has a video output so some VRAM is needed by
the framebuffer.
On Fri, 12 Apr 2024 at 02:38, strikeoncmputrz @.***>
wrote:
@orlyandico commented on GitHub (Apr 12, 2024):
The logs showed the number of layers loaded on the GPUs, and nvidia-smi
displayed the VRAM consumption. The logs also displayed how much memory was
used for KV cache.
So, take VRAM, subtract KV cache, and what’s left is what the model took.
By looking at the # of layers loaded and VRAM used, I extrapolated that all
81 would still fit.
On the A6000-Ada, all layers actually fit in the 45GB VRAM…. but there’s
nothing left for KV cache! so ironically Smaug-72b, Qwen-72b 4bpw fit on
2x24GB P40, but do NOT fit on 1x 48GB A6000-Ada….
On Fri, 12 Apr 2024 at 02:38, strikeoncmputrz @.***>
wrote:
@JKratto commented on GitHub (Aug 21, 2024):
Hi there,
I've also noticed some changes in performance after a previous upgrade of Ollama (it's been 6-10 weeks), and I'd like to share my experience. I hope it can help diagnose and solve the issue.
My system: 5x 8GB Quadro RTX 4000
Previously, with mixtral 8x7B q4 on all the GPUs (no layers offloaded to CPU), I achieved a performance of approximately 23 t/s. However, after one day of upgrading Ollama, I observed that the same configuration resulted in mitral 8x7B q4 not loading on the GPUs only. Instead, 3 out of 33 layers were offloaded to the CPU, causing a significant performance drop to about 10 t/s.
If I manually set
/set parameter num_gpu 33, the model loads to the VRAM only again, and the performance returns to 23 t/s. This behavior is consistent even when using only 4 GPUs; the model still fits with a manually setnum_gpuvalue of 33 and no performance drop. Just as an interesting data point I observe GPU compute utilization rates of around 15-20% (5 GPU inference) and 20-25% (4 GPU inference).Based on my calculations, Mixtral should fit into about 23 GB of VRAM; however, considering the memory required for cache, etc., and the VRAM utilization rates with 5 GPUs peaking around 74% (most utilized GPU) and about 94% with 4 GPUs (about 84% average), I believe that 4 GPUs represent the minimum viable configuration.
I recently set up a 6 GPU system, where Ollama loads all layers into VRAM by default. Almost 50 % of the VRAM is free causing significant inefficiency.
As a side line, I am using Ollama with the Open WebUI, and this setup makes loading the default model with 33/33 layers offloaded to GPU challenging (the num_gpu option was added recently but is per chat only and while I can change the setting, I can't really ask this of other users who certainly are not power-users). It appears that Olama is too cautious when loading models into VRAM. Is there a way around this, or should Olama be more eager to load models into VRAM?
@orlyandico commented on GitHub (Aug 21, 2024):
I recently tried the (bundled) Llama3-70B from the Ollama repo and it fits without issue on 48GB VRAM, no offloading to CPU. I do think that Ollama is too cautious/conservative for stability reasons, but that the estimation algorithm may (or does) change between versions. I am guessing that setting num_gpu manually is the only foolproof mechanism (you can create a new model with the setting embedded in the Modelfile). This is at the risk of crashing Ollama if something else changes (e.g. the KV cache algorithm wants more memory).
@hdnh2006 commented on GitHub (Oct 18, 2024):
So is not there a clear solution for this? I am running a 14B parameters and I can see using

ollama psthe following:But I still can see I have 2GB of memory free:

I think ollama is limiting the amount of RAM that can be used.
is not some parameter like
OLLAMA_GPU_USAGE=0.9,0.99,1,...that we can set?@JKratto commented on GitHub (Oct 19, 2024):
@hdnh2006 It is not. The behavior clearly changed (as I state) during one of the upgrades. Since then I always have to manually allocate all layers to GPU.
Also, not knowing how the algorithm behind allocation works, the "allow 100 % allocation" parameter would be great. I run a headless system and it's only purpose is ollama. I can guarantee, that the VRAM is not utilised in any other way, so please use all of it - "yes I know what I am doing".
This problem must be a problem of thousands of people. How come nobody else seems to mind?
@Kira-PH commented on GitHub (Nov 21, 2024):
There are numerous threads on this. I'm trying to load Llama 3.1 70b on two A6000s, and with Flash Attention enabled, nvidia-smi reports only about 32GB used on each GPU, meaning I have another 32GB (across both GPUs) unutilised.
ollama pstells me I have a 16%/84% CPU/GPU split.@orlyandico commented on GitHub (Nov 21, 2024):
that’s odd, I can load Llama-3.1-70b on two P40’s and it loads completely
into VRAM.
On Thu, 21 Nov 2024 at 11:37, Hugh Phoenix-Hulme @.***>
wrote:
@Kira-PH commented on GitHub (Nov 22, 2024):
Yes, that's exactly what I would expect to happen.
@orlyandico commented on GitHub (Nov 22, 2024):
Are you on the latest version? Many moons ago Ollama had this issue when I tried to load Smaug-72b onto the two P40's, it was not using all of the VRAM. I had to manually force all the layers to load into VRAM with a custom Modelfile.
FROM ./Smaug-72B-v0.1-q4_k_m.gguf
PARAMETER num_gpu 81
But more recent versions of Ollama now "do the right thing"
@Kira-PH commented on GitHub (Nov 22, 2024):
Thanks for taking the time. I was using 0.4.1 but recently upgraded to 0.4.2 from the website.
I did try creating a modelfile with
num_gpu 80for Llama 3.1 70b, but that made no difference.btw you mention above that nvidia-smi reported your A6000 had 45GB available. That's probably because of ECC being enabled, the top right value in the 3rd column should read "Off".
sudo nvidia-smi -e 0to disable it, if you haven't already figured that out.@orlyandico commented on GitHub (Nov 22, 2024):
I tested an A6000 Ada (48GB) but, it had less memory available to Ollama than the two P40's because the A6000 has a graphics output..
@Kira-PH commented on GitHub (Nov 22, 2024):
I have all 48GB available on a headless box:
@JKratto commented on GitHub (Nov 25, 2024):
I have recently acquired A4000 GPUs which have 16GB of VRAM each. "Strangely" enough, 2GPUs can hold mixtral 8x7B q4 with all 33 layers offloaded to the GPUs by default. With 4x RTX 4000 (8GB) this did not work. I hope I will be deploying another setup with the leftover RTX 4000s, so a more side-by-side comparison will be possible.
The @HughPH's RTX A6000 case I don't get at all. 😆 I mean, what is the magic behind that memory allocation? 😆
Side note, very much important for me:
Also as I am using Open WebUI, the quality of life improved greatly since a support for per model, per instance "global" settings for the models. I can now set the model parameters as the context length and num_gpu directly in the UI and thus the users are guaranteed good results.
Comment:
I tried to create my own modelfiles before, but wasn't very successful. For some reason I couldn't quickly debug, the models behaved weirdly. The OWUI way works great as it just adds the required "custom" parameters to each request and ollama manages the model accordingly.
@Kira-PH commented on GitHub (Nov 25, 2024):
I literally just upgraded to 0.4.4 about 5 minutes ago, and it's now loading Llama 3.1 70b across both A6000s.
@JKratto commented on GitHub (Nov 25, 2024):
TBH, I also upgraded along the way a lot. It might mean the 4x8GB setup is now working as well... Will keep you posted.
@Kira-PH commented on GitHub (Nov 25, 2024):
So I have some more information. If I try to use num_ctx=128000 then the size in
ollama psis reported at 119GB and I end up with 16% of the model on the CPU (but about 64GB allocated across the GPUs.)With num_ctx=32768 it's 61GB in
ollama ps, about 48GB allocated across the GPUs.ollama pssizeAfter loading and using, the 48GB rises to 52GB, so it looks like Ollama is:
@hdnh2006 commented on GitHub (Jan 4, 2025):
After 3 months and several versions, I can confirm that nothing has changed and the problem still persists. I am using the latest ollama version:
And this is what I see while trying to run qwen-14b with the following modelfile:
The model can't be allocated 100% on GPU:

Despite I still have 2GB extra of VRAM:

No matter what parameter I use for
num_gpu, the result is the same, I do it in the modelfile changing this parameter.From my point of view, without any desire to offend, I think it's time to change to another framework. Unfortunately, ollama highly depends on llama.cpp and this is a big limitation. For example, there's still no suppor for parallel request for llama3.2 vision models as the logs indicate:
And after several months, the problem with VRAM usage stills persists and we don't know if this problem comes from ollama or from llama.cpp because ollama team doesn't offer any response to this issue.
There are other possibilites to deploy LLMs with ease:
I will check both and let's see what happen. Good luck and thanks ollama for everything.
@JKratto commented on GitHub (Jan 5, 2025):
@hdnh2006 I think in this case you might be trying to fit 2x context into your memory. Try setting OLLAMA_NUM_PARALLEL=1 and num_gpu to the correct number of layers for your model. After that the model should be loaded into the VRAM fully.
@hdnh2006 commented on GitHub (Jan 8, 2025):
Exactly, because I want to deploy the model in production environment, so many users will be calling the model. Other frameworks like

vLLMcan manage better the VRAM. Actually I was able to deploy the same quantized model using the same GPU withvLLMand I was able to do up to 6 requests in parallel!!I thank ollama for helping me to prototype, it is easy to use and it helps you to create a OpenAI compatible api with ease. But it defnitely manage very bad the VRAM.