Skip to content

[DGX Spark][Inference] PR #4619 vLLM/NVFP4 path crashes on container start with "CUDA unknown error" #4658

Closed

Description

@wangericnv

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

  1. Deep-clean Spark:
    rm -rf ~/.nemoclaw ~/.config/openshell ~/.local/state/nemoclaw ~/.local/bin/nemoclaw ~/.local/bin/openshell*
    docker rm -f $(docker ps -aq)
  2. Run installer:
    curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash
  3. At "Type 'yes'" third-party prompt → answer yes
  4. At "Run express install? [Y/n]" → answer n
  5. Menu appears with "Install vLLM (DGX Spark)" as option 7 → choose 7
  6. Pre-pull notice shows "Image: vllm/vllm-openai:nightly-1fc2... / Model: nvidia/Qwen3.6-35B-A3B-NVFP4" — at "Continue? [y/N]" → answer y
  7. Wait for image pull (~4-5 min) + pip install vllm[fastsafetensors] + vllm serve to attempt boot
  8. Observe container nemoclaw-vllm exits 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_index
  • vllm/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 include sm_121 explicitly; only 12.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=0
  • CUDA_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=1fc2cee50a09a094b9f2bbdfcb0ab0cadb536712
  • VLLM_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 fastsafetensors

Related 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

  1. Rebuild custom image with TORCH_CUDA_ARCH_LIST="...12.1" + updated NVIDIA_REQUIRE_CUDA to include driver 580+
  2. Try VLLM_ENABLE_CUDA_COMPATIBILITY=1 env override
  3. Pin to a known-Spark-compatible vLLM image instead of upstream nightly

NVB#6256443

Activity

  1. added
    NV QA
    UAT
    on Jun 2, 2026
  2. self-assigned this
    on Jun 2, 2026
  3. added and removed on Jun 3, 2026
  4. added
    needs: triage
    and removed on Jun 3, 2026
  5. wangericnv commented on Jun 3, 2026

    @wangericnv
    CollaboratorAuthor

    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): container nemoclaw-vllm still exits ~55s after start at torch._C._cuda_init() with RuntimeError: CUDA unknown error — same signature as the original report.

    Keeping this issue open for a dev fix. (NVBug 6256443 also kept open with matching comment.)

  6. removed
    needs: triage
    on Jun 3, 2026
  7. added and removed on Jun 4, 2026
  8. added a commit that references this issue on Jun 4, 2026
    8ecaf0a
  9. added theissue type on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

NV QAUAT

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions