Skip to content

Conversation

@massif-01
Copy link
Contributor

Summary

Add support for NVIDIA Jetson platforms (Orin, Thor, Xavier) which were previously not detected as GPUs.

Problem

On Jetson devices, nvidia-smi returns [N/A] for memory and utilization fields:

0, Orin (nvgpu), [N/A], [N/A], [N/A], [N/A], [N/A]

This caused int("[N/A]") to raise ValueError, and the PyTorch fallback was never triggered.

Solution

  1. Add _safe_int() helper to handle [N/A] values safely
  2. Fall back to PyTorch detection when nvidia-smi returns incomplete data
  3. Add Jetson architectures to capability mapping:
    • SM 8.7: Jetson Orin (AGX, NX, Nano)
    • SM 7.2: Jetson Xavier (AGX, NX)
    • SM 10.x: Jetson Thor

Testing

Tested on Jetson AGX Orin with CUDA 12.9 - GPU now detected correctly via PyTorch fallback.

Related

Similar fix was applied to vllm-playground: PR #8

- README.md: Fix typo 'vllm-cl' -> 'vllm-cli' in Basic Usage section
- Makefile: Add missing targets to .PHONY declaration (test-cov, format-check, type-check, ci-local, ci-matrix, pre-commit)
- scripts/test_ci_locally.sh: Fix pytest-cov detection using Python import instead of shell command
- scripts/test_ci_locally.sh: Add Python 3.11+ tomllib compatibility for pyproject.toml validation
- docs/profiles.md: Fix grammar 'defaults configuration' -> 'default configuration'
- docs/profiles.md: Update VLLM_ATTENTION_BACKEND value to match actual profile usage
- Fix nvidia-smi parsing to handle [N/A] values on Jetson devices
- Add PyTorch fallback when nvidia-smi returns incomplete data
- Add Jetson architectures to capability mapping (SM 8.7, 7.2, 10.x)
- Update UI warning message with Jetson-specific guidance

Tested on Jetson AGX Orin with CUDA 12.9.

Related: Similar fix applied to vllm-playground in PR Chen-zexi#8
micytao/vllm-playground#8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant