BUG: llama.cpp backend start endpoint never spawns llama-server #35
Labels
No labels
blocked:lint-failed
blocked:needs-decision
blocked:no-changes
blocked:no-procedure
blocked:preflight
blocked:verify-failed
bug
feature-request
in-progress
lint-cleanup
ops-task
quickfix
security/high
security/medium
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/vllm_mm#35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Summary
POST /api/models/{id}/startforllama.cppbackend models never spawnsllama-server. The endpoint sets status toloadingand the model sits there forever until the 600s timeout fires. The UI's Start button is therefore non-functional for any llama.cpp model registered on this backend.Reproduction
POST /api/models(e.g.,unsloth/Qwen3.5-4B-GGUFwithggufFile: Qwen3.5-4B-Q4_K_M.gguf,backend: llama.cpp).POST /api/models/{id}/startwith{}body.HEAD https://huggingface.co/...+GET ...xet-read-token/...succeed (file verified).llama-serverprocess is spawned. No error.GET /api/models/{id}returnsstatus: "loading"indefinitely.ps aux | grep llama-serverinside the backend container shows zero processes.Expected
After the HEAD verifies the GGUF, the backend should spawn
llama-serverwith the appropriate flags (-m,--host 0.0.0.0,--port <next free>,--n-gpu-layers,--cache-type-k,--cache-type-v,-c,-b,--threads) and the model record transitions torunningonce the health check responds.Actual
The HEAD request verifies the file. No subprocess is created. No error is returned to the caller. Status stuck on
loading.Workaround
Manually start
llama-serverinside the backend container (e.g.,podman exec -d vllm_mm_backend_1 setsid llama-server -m ... --host 0.0.0.0 --port 18000 -c 8192 -b 256 --threads 8 --n-gpu-layers 999 --cache-type-k q4_0 --cache-type-v q4_0 ...). Inference works athttp://localhost:18000/v1/chat/completionsdirectly, bypassing the backend API entirely.Environment
localhost/vllm_mm_backend:latestDockerfile(single-Dockerfile path, notDockerfile.cuda12/Dockerfile.pascal)unsloth/Qwen3.5-4B-GGUF,unsloth/gemma-4-E4B-it-GGUF— same bug for bothNotes
The vLLM path has a separate, known bug (CUDA 13 dropped Pascal —
vllm not ready after 600s). This issue is specifically about thellama.cppstart path not spawning the subprocess at all.