mirror of
https://github.com/ollama/ollama.git
synced 2026-05-06 16:11:34 -05:00
[GH-ISSUE #7723] Can´t use GPU at Ubuntu 22.04 without Docker - permission problems #30690
Closed
opened 2026-04-22 10:35:33 -05:00 by GiteaMirror
·
26 comments
No Branch/Tag Specified
main
dhiltgen/ci
parth-launch-plan-gating
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.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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
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#30690
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 @raullopezgn on GitHub (Nov 18, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7723
What is the issue?
Hi, I have been using Jan.ai but I wanted to try other options.
I can't run Ollama taking advantage of my GPU. I would prefer not to use Docker for security reasons.
Below I provide all the info that you maybe need to help me in order to find a solution. Thank you in advance.
CPU: AMD Ryzen 5 5600
GPU: AMD Sapphire Nitro+ RX 5700 XT
OS: ubuntu 22.04
Podman version: 3.4.4
Ollama version: 0.4.2
I installed lastest AMD files using this command:
amdgpu-install -y --opencl=rocr
I installed ollama with these commands:
curl -L https://ollama.com/download/ollama-linux-amd64.tgz -o ollama-linux-amd64.tgz
sudo tar -C /usr -xzf ollama-linux-amd64.tgz
curl -L https://ollama.com/download/ollama-linux-amd64-rocm.tgz -o ollama-linux-amd64-rocm.tgz
sudo tar -C /usr -xzf ollama-linux-amd64-rocm.tgz
sudo useradd -r -s /bin/false -U -m -d /usr/share/ollama ollama
sudo usermod -a -G ollama $(whoami)
level=ERROR source=amd_linux.go:404 msg="amdgpu devices detected but permission problems block access: permissions not set up properly. Either run ollama as root, or add you user account to the render group. open /dev/kfd: permission denied"
I think it is pending to change the permission for the KFD file. However, as I'm not expert in Linux commands, I don't know how to change the permission for /dev/kfd and to which user I should give permissions.
ls -l kfd
crw-rw---- 1 root video 237, 0 nov 18 2024 kfd
rocminfo
ROCk module version 6.8.5 is loaded
Unable to open /dev/kfd read-write: Permission denied
Failed to get user name to check for video group membership
------------ ollama.service ------------
[Unit]
Description=Ollama Service
After=network-online.target
[Service]
ExecStart=/usr/bin/ollama serve
User=ollama
Group=ollama
Restart=always
RestartSec=3
Environment="PATH=$PATH"
Environment="HSA_OVERRIDE_GFX_VERSION="10.3.0""
[Install]
WantedBy=default.target
OS
Linux
GPU
AMD
CPU
AMD
Ollama version
0.4.2
@rick-github commented on GitHub (Nov 18, 2024):
The ollama user is not in the
videogroup and hence can't open /dev/kfd. Run the following to add ollama:Is there any reason for not doing the usual
curl|shinstall?@raullopezgn commented on GitHub (Nov 18, 2024):
Thank you. I added ollama to the video group (I checked that I did it correctly), however the logs are the same, permission denied.
I followed the steps of the "Manual installation" and I thought that I hadn´t to execute this command:
curl -fsSL https://ollama.com/install.sh | sh
@rick-github commented on GitHub (Nov 18, 2024):
What's the output of
Did you restart the ollama service after adding ollama to the video group (
sudo systemctl stop ollama ; sudo systemctl start ollama)?@raullopezgn commented on GitHub (Nov 18, 2024):
Yes, of course:
ollama : ollama video
I didn't know that I had to restart the ollama service. I did it, however now I can't run ollama (with and without sudo). It appears the following error:
Error: llama runner process has terminated: error:Could not initialize Tensile host: No devices found
@rick-github commented on GitHub (Nov 18, 2024):
ollama is not in the
rendergroup.@raullopezgn commented on GitHub (Nov 18, 2024):
Now, it is:
ollama : ollama video render
I restarted the ollama service and the display started blinking and the display went to sleep mode. Then the terminal was closed.
I restarted the computer, I ran again Ollama and the symbol of loading in the terminal was loading infinite.
@rick-github commented on GitHub (Nov 18, 2024):
The ollama server started, a client asked to load mistral:7b-instruct-v0.3-q4_0, a runner was started and began to load the model, then the client quit causing the model load to be cancelled.
The model load was running for 1m47 before the client quit. I don't know if that's a long time for a ROCm system, it took 36s on my Nvidia system. Other than that, this looks normal.
@raullopezgn commented on GitHub (Nov 18, 2024):
before I posted this thread, mistral was loaded in a matter of seconds but it was loaded. Right now, it wasn't.
I gave a second opportunity and I was waiting 3m48s and mistral wasn't loaded.
@rick-github commented on GitHub (Nov 18, 2024):
Add
Environment="OLLAMA_DEBUG=1"to the service config and restart ollama, run the client again, then attach logs.@raullopezgn commented on GitHub (Nov 18, 2024):
I added the line that you recommended and when I used the commands to restart ollama, I got this message:
"Warning: The unit file, source configuration file or drop-ins of ollama.service changed on disk. Run ‘systemctl daemon-reload’ to reload units."
Then I executed these 2 commands:
systemctl daemon-reload
systemctl restart ollama.service
After that I run ollama and the computer crashed. Here the logs:
ollama-server-log-241118-03-PC-crashed.txt
Then, I restarted the PC again, and I run ollama as sudo and I waited some minutes. Here is the log:
ollama-server-log-241118-04.txt
Thank you for your time
@rick-github commented on GitHub (Nov 18, 2024):
The runner starts but seems to have gotten wedged at the point it was supposed to create a new context after creating the
ROCm0buffer. There have been a few issues filed recently involving AMD GPUs, perhaps roll back to an earlier version while the kinks are worked out.@raullopezgn commented on GitHub (Nov 18, 2024):
Ok, thank you for the recommendation. One question, once I roll back or downgrade the current version of the AMD drivers, should I change or do something else in/with Ollama or any other thing?
@rick-github commented on GitHub (Nov 18, 2024):
I would recommend ollama 0.3.14, the 0.4 series has just switched build architecture and it just makes it complicated to have so many variables when configuring a system. Get an older version of ollama working with older drivers, and when that works, upgrade single components at a time.
@raullopezgn commented on GitHub (Nov 18, 2024):
I have been "fighting" (I will explain later what I have done with the AMD drivers) and I think that I installed Ollama 0.3.14 (I followed this info) but when I execute the command to see the status, it appears the following message:
ollama.service - Ollama Service
Loaded: loaded (/etc/systemd/system/ollama.service; enabled; vendor preset>
Active: activating (auto-restart) (Result: exit-code) since Mon 2024-11-18>
Process: 7199 ExecStart=/usr/local/bin/ollama serve (code=exited, status=1/>
Main PID: 7199 (code=exited, status=1/FAILURE)
CPU: 12ms
@rick-github commented on GitHub (Nov 18, 2024):
What's the output of the following commands:
@raullopezgn commented on GitHub (Nov 18, 2024):
/etc/systemd/system/ollama.service
[Unit]
Description=Ollama Service
After=network-online.target
[Service]
ExecStart=/usr/local/bin/ollama serve
User=ollama
Group=ollama
Restart=always
RestartSec=3
Environment="PATH=/home/amador/anaconda3/bin:/home/amador/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
[Install]
WantedBy=default.target
command -v ollama
/usr/local/bin/ollama
ls -l /usr/local/bin/ollama
-rwxr-xr-x 1 root root 47593432 nov 15 22:50 /usr/local/bin/ollama
ldd /usr/local/bin/ollama
linux-vdso.so.1 (0x00007ffc567fe000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007d9aaa011000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007d9aaa00c000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007d9aaa007000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007d9aaa002000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007d9aa9c00000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007d9aa9f1b000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007d9aa9ef9000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007d9aa9800000)
/lib64/ld-linux-x86-64.so.2 (0x00007d9aaa037000)
journalctl -u ollama --no-pager
Updated: I remove the Ollama server log because it was too long and it doesn´t help to read the whole issue
@rick-github commented on GitHub (Nov 18, 2024):
Run the following:
@raullopezgn commented on GitHub (Nov 19, 2024):
Your proposal helped to fix the warning message and ollama could be loaded. However, I didn´t have enough space to download Mistral:7b
I tried to change the folder where the models were downloaded using a symlink or adding some lines to ollama.service with the path to the new folder but none of them worked :(
Also, I found out that I had installed Ollama 0.4.2, that means that the command that I found to install a specific version of Ollama was incorrect (link official page):
curl -fsSL https://ollama.com/install.sh | VER_PARAM=0.3.14 sh
Now, I have to "uninstall" the current version of Ollama and install the 0.3.14. Would it be the following steps correct? *
Download in my computer the Ollama 0.3.14:
https://github.com/ollama/ollama/releases/download/v0.3.14/ollama-linux-amd64.tgz
Execute the following command where I downloaded the file of point 1:
sudo tar -C /usr -xzf ollama-linux-amd64.tgz
Download in my computer the Ollama 0.3.14 package related to Rocm:
https://github.com/ollama/ollama/releases/download/v0.3.14/ollama-linux-amd64-rocm.tgz
Execute the following command where I downloaded the file of point 3:
sudo tar -C /usr -xzf ollama-linux-amd64-rocm.tgz
And after that I will follow the rest of steps to be ready to executa Ollama and download a model.
@rick-github commented on GitHub (Nov 19, 2024):
That's not the correct way to download a different version. The instructions are here:
Just run that, ollama should install and be ready to pull a model.
@raullopezgn commented on GitHub (Nov 19, 2024):
I have checked that I installed Ollama 0.3.14 (thanks for the command, it worked!).
I run mistral using 100% CPU and all ok.
After that, I updated ollama.service with the following info (I know that my 5700XT doesn´t have this version):
Environment="HSA_OVERRIDE_GFX_VERSION="10.3.0""
After that, I executed these commands:
systemctl daemon-reload
systemctl restart ollama.service
And just in case, I also executed these ones:
sudo systemctl stop ollama
sudo systemctl start ollama
I run ollama but the PC crashed.
@rick-github commented on GitHub (Nov 19, 2024):
What happens when it crashes? No longer responds to commands, reboots, something else? The reason for the crash won't be in the ollama log, you'd need to check /var/log/syslog or /var/log/kern.log to find out what happened to the system.
@rick-github commented on GitHub (Nov 19, 2024):
Looks like a crash in the kernel driver. Searching for the errors doesn't turn up much in the way of solutions. A few forums suggested newer kernels might be more resistant. Ubuntu 22 is just over 2.5 years old, if you haven't been doing updates, try that. Alternatively, try different overrides. I'm not familiar with AMD GPUs so I have no recommendations other those documented here. There are other AMD issues open in the tracker, one specifically for the Radeon RX 5700 XT, so having a look at some of those might give you some directions to pursue.
@raullopezgn commented on GitHub (Nov 19, 2024):
Well, Ubuntu 22 is a LTS version, and I have specific the 22.04.5 with kernel 6.8.
I changed in the ollama.service the following set up Environment="HSA_OVERRIDE_GFX_VERSION and I tried 10.3.0, 10.3.1 and 10.3.2 without success.
I don´t know what else we could do, I give up. Thank you very much for your support :)
@raullopezgn commented on GitHub (Nov 20, 2024):
One question, when I´m not using Ollama, what have I to do to free the resources of my computer?
@raullopezgn commented on GitHub (Nov 20, 2024):
@rick-github I found a solution and it works with the RX 5700XT GPU !!
Yesterday, I read the issue 2503 in this repo and tried to use a symlink as they mention, however I forget to update in ollama.service the GFX VERSION (I had 10.3.0). So, I will explain what I have done, following the solution on the issue 2503 proposed by @tecnomanu
Error: llama runner process has terminated: error:Cannot read /usr/local/lib/ollama/rocblas/library/TensileLibrary.dat: Illegal seek for GPU arch : gfx1010
sudo ln -s /usr/local/lib/ollama/rocblas/library/TensileLibrary_lazy_gfx{1030,1010}.dat
After that I executed:
ollama ps
NAME ID SIZE PROCESSOR UNTIL
mistral:latest f164t71690m9 6.3 GB 100% GPU 2 minutes from now
And this is the log of my Ollama server: ollama-server-log-241120-07.txt
Now, who would I have to contact from Ollama´s project to take this into account and find a solution for future releases?
@rick-github commented on GitHub (Nov 20, 2024):
To free resources:
Regarding the solution: AMD support is still evolving (see the recent spate of tickets), #2503 is still open, and there are ollama developers on the thread, so it will be addressed eventually.