Repository navigation
Description
Description
NemoClaw v0.0.57 (main HEAD with PR #4619) "Install vLLM (DGX Spark)" onboard path crashes at container start. The upstream image vllm/vllm-openai:nightly-1fc2cee50a09a094b9f2bbdfcb0ab0cadb536712 configured by PR #4619 fails at torch._C._cuda_init() with "CUDA unknown error" on Spark GB10 (sm_121, driver 580.142). vLLM/NVFP4 inference is unreachable end-to-end via the documented onboard flow.
Environment
Device: DGX Spark (spark-8158, 10.173.104.102)
OS: Ubuntu 24.04.4 LTS aarch64
Architecture: aarch64
Node.js: v22.x
npm: 10.x
Docker: 29.x
OpenShell CLI: 0.0.44
NemoClaw: 0.1.0 (main HEAD; release-tag-equivalent v0.0.57 unreleased)
OpenClaw: N/A (vLLM provider failed; sandbox never reached)
GPU: NVIDIA JMJWOA-Generic-GPU (compute_cap 12.1, sm_121, ~120 GB unified mem)
Driver: 580.142
Steps to Reproduce
- Deep-clean Spark:
rm -rf ~/.nemoclaw ~/.config/openshell ~/.local/state/nemoclaw ~/.local/bin/nemoclaw ~/.local/bin/openshell* docker rm -f $(docker ps -aq)
- Run installer:
curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash - At "Type 'yes'" third-party prompt → answer yes
- At "Run express install? [Y/n]" → answer n
- Menu appears with "Install vLLM (DGX Spark)" as option 7 → choose 7
- Pre-pull notice shows "Image: vllm/vllm-openai:nightly-1fc2... / Model: nvidia/Qwen3.6-35B-A3B-NVFP4" — at "Continue? [y/N]" → answer y
- Wait for image pull (~4-5 min) + pip install vllm[fastsafetensors] + vllm serve to attempt boot
- Observe container
nemoclaw-vllmexits 1 within ~30s after boot attempt
Expected Result
Container nemoclaw-vllm starts cleanly, vLLM serves nvidia/Qwen3.6-35B-A3B-NVFP4 on port 8000, onboard proceeds to [4/8] Verifying inference and beyond. nemoclaw <name> status shows running provider.
Actual Result
Container exits 1 with CUDA init failure. Stack trace:
torch.cuda.__init__:478 → torch._C._cuda_init()torch/accelerator/__init__.py:191 → set_device_indexvllm/v1/worker/gpu_worker.py:272 → torch.accelerator.set_device_index(self.device)vllm/v1/executor/uniproc_executor.py:60 → self.driver_worker.init_device()
Final error:
RuntimeError: CUDA unknown error - this may be due to an incorrectly set up
environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program
start. Setting the available devices to be zero.
Followed by APIServer fatal: RuntimeError: Engine core initialization failed. See root cause above. Failed core proc(s): {}
Pre-failure log shows "Failed to get device capability: CUDA unknown error" twice.
Container env inspection (docker inspect nemoclaw-vllm) reveals four suspicious settings vs host:
TORCH_CUDA_ARCH_LIST=8.0 8.7 8.9 9.0 10.0 11.0 12.0+PTX— does NOT includesm_121explicitly; only12.0+PTX(JIT)NVIDIA_REQUIRE_CUDA=...brand=*,driver>=575,driver<576...— host driver 580.142 is OUTSIDE the image's stated driver allowlist (max=576)VLLM_ENABLE_CUDA_COMPATIBILITY=0CUDA_VERSION=13.0.2
These settings combined likely cause the runtime to negotiate a degraded GPU context that fails at _cuda_init.
Logs
Truncated docker logs from nemoclaw-vllm (full 364 lines available on host /tmp):
Failed to get device capability: CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero..
Failed to get device capability: CUDA unknown error - ...
(EngineCore pid=285) INFO 06-02 06:12:01 [core.py:112] Initializing a V1 LLM engine (v0.21.1rc1.dev323+g1fc2cee50) with config: model='nvidia/Qwen3.6-35B-A3B-NVFP4', ...
(EngineCore pid=285) ERROR 06-02 06:12:05 [core.py:1175] Traceback (most recent call last):
(EngineCore pid=285) ERROR ... File "/usr/local/lib/python3.12/dist-packages/vllm/v1/worker/gpu_worker.py", line 272, in init_device
(EngineCore pid=285) ERROR ... torch.accelerator.set_device_index(self.device)
(EngineCore pid=285) ERROR ... File "/usr/local/lib/python3.12/dist-packages/torch/cuda/__init__.py", line 478, in _lazy_init
(EngineCore pid=285) ERROR ... torch._C._cuda_init()
(EngineCore pid=285) RuntimeError: CUDA unknown error - this may be due to an incorrectly set up environment...
(APIServer pid=1) RuntimeError: Engine core initialization failed. See root cause above. Failed core proc(s): {}
Container build provenance:
VLLM_BUILD_COMMIT=1fc2cee50a09a094b9f2bbdfcb0ab0cadb536712VLLM_BUILD_URL=https://buildkite.com/vllm/release-v2/builds/1999
vLLM serve command (per PR #4619 Spark profile):
vllm serve nvidia/Qwen3.6-35B-A3B-NVFP4 \
--gpu-memory-utilization 0.7 \
--tensor-parallel-size 1 --pipeline-parallel-size 1 \
--port 8000 --trust-remote-code --max-model-len 65536 --dtype auto \
--quantization modelopt --kv-cache-dtype fp8 \
--attention-backend flashinfer --moe-backend marlin \
--max-num-seqs 4 --max-num-batched-tokens 8192 \
--enable-chunked-prefill --async-scheduling --enable-prefix-caching \
--enable-auto-tool-choice --tool-call-parser qwen3_coder \
--reasoning-parser qwen3 \
--speculative-config '{"method":"mtp","num_speculative_tokens":3,"moe_backend":"triton"}' \
--load-format fastsafetensorsRelated context
Adjacent context (NOT NemoClaw bugs but related): NVBug 5558898 diagnoses "DGX Spark needs CUDA 13.0 + vLLM 0.10.2 for NVFP4". PR #4619's image has CUDA 13.0.2 + vLLM nightly post-0.10.2 — yet still fails, suggesting either a nightly-vLLM regression or the driver-allowlist mismatch is the dominant cause on Spark.
Suggested fixes
- Rebuild custom image with
TORCH_CUDA_ARCH_LIST="...12.1"+ updatedNVIDIA_REQUIRE_CUDAto include driver 580+ - Try
VLLM_ENABLE_CUDA_COMPATIBILITY=1env override - Pin to a known-Spark-compatible vLLM image instead of upstream nightly
Activity
wangericnv commentedon Jun 3, 2026
QA re-test 2026-06-03 (sync from NVBug 6256443) — STILL REPRODUCES, not fixed.
Re-ran the
Install vLLM (DGX Spark)path on main HEAD (post-#4676) on DGX Spark (GB10 sm_121, driver 580.142): containernemoclaw-vllmstill exits ~55s after start attorch._C._cuda_init()withRuntimeError: CUDA unknown error— same signature as the original report.NVIDIA_REQUIRE_CUDAdriver allowlist (stilldriver<576vs host 580.x) or add explicitsm_121toTORCH_CUDA_ARCH_LIST.Keeping this issue open for a dev fix. (NVBug 6256443 also kept open with matching comment.)
fix(onboard): detect stale or unrefreshed NVIDIA CDI specs in host pr…