Pascal GPUs (sm_61/sm_62) still fall back to CPU with `docker model run` despite #986
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- docker
- Domain
- infrastructure
Research direction
Read the root Dockerfile and llamacpp/native/cuda.Dockerfile, then inspect the published docker/model-runner CUDA image with cuobjdump as described. Trace whether the release flow uses the Pascal-enabled build or the LLAMA_UPSTREAM_IMAGE path. Done means the published image contains sm_61/sm_62 support and docker model run uses CUDA on Pascal GPUs instead of falling back to CPU.
Written by the indexing model from the issue text.
Description
Summary
I can confirm PR #986 exists and was released in v1.2.6, but in practice docker model run still uses CPU on a Pascal GPU.
It looks like the fix scope is not the effective runtime path used by published docker/model-runner CUDA images.
Environment
- Docker Model Runner client:
v1.2.6 - Docker Model Runner server:
v1.2.6 - Docker Engine (Linux)
- GPU: NVIDIA GeForce GTX 1080 Ti (Pascal,
sm_61) - Driver:
580.159.03
What I observed
docker model status:
llama.cpp Running llama.cpp 72874f559
docker model logs includes:
installed llama-server gpuSupport=falseggml_cuda_init: failed to initialize CUDA: no CUDA-capable device is detectedwarning: no usable GPU found, --gpu-layers option will be ignored
Host + container GPU visibility are both OK:
nvidia-smiworks on hostdocker run --rm --gpus all nvidia/cuda:12.9.0-base-ubuntu22.04 nvidia-smiworksdocker exec docker-model-runner nvidia-smiworks
Why I think #986 does not cover the effective runtime path
I checked the published runtime artifact:
- extracted
/app/libggml-cuda.sofromdocker-model-runner - ran
cuobjdump --list-elf - found only:
sm_86,sm_89,sm_120,sm_121 - no
sm_61/sm_62present
So even though llamacpp/native/cuda.Dockerfile in this repo contains -DCMAKE_CUDA_ARCHITECTURES=61;62;70;75;80;86;89, that does not seem to be what the final published CUDA runtime is using.
From repository inspection, release flow appears to use root Dockerfile with LLAMA_UPSTREAM_IMAGE=ghcr.io/ggml-org/llama.cpp:server-cuda13-..., which may bypass the intended Pascal-enabled build path.
Request
Please ensure Pascal support is effective for docker model run in published CUDA images (at least sm_61/sm_62), not only in a non-runtime build path.
Expected behavior
On Pascal GPUs (e.g. GTX 1080 Ti), docker model run should use CUDA (not CPU fallback).
Actual behavior
CPU fallback despite v1.2.6 and despite #986 being merged.
- Dominant language
- Go
- Stars
- 665
- Forks
- 161
- Avg merge
- 4h 25m
- Merged PRs (30d)
- 18
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/model-runner
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
docker/model-runner#1118 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
docker/model-runner#1107 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 43/100
docker/model-runner#1103 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 45/100
docker/model-runner#1100 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
docker/model-runner#1077 · 1 comment ·
Maintainers usually reply within 1 day
All issues in docker/model-runner
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
Add CybeDefendOpen
Difficulty 1/5 Under an hour Newbie friendliness 66/100
slavakurilyak/awesome-ai-agents#1031 ·