Repository navigation
docs(nim): document GPU selection - #58
Merged
Merged
Conversation
Explain how to list GPUs with nvidia-smi -L, expose them with Docker --gpus by index or UUID, match a supported GPU count, and avoid CUDA_VISIBLE_DEVICES, which the NIM rewrites for its worker processes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a GPU selection subsection to
configuration.md: list GPUs withnvidia-smi -L, expose specific GPUs with Docker--gpus '"device=..."'(index or UUID), expose a supported GPU count and a single GPU model, and use Docker device selection rather thanCUDA_VISIBLE_DEVICES. Closes a coverage gap with the current NIM docs site (configuration.rstGPU Selection).Validation
Checked against the 2.0.0 source (
serving_stack/):profile_selection/criteria.pyL187-203,hardware.pyL139-163, L244, L415, L489); the image setsNVIDIA_VISIBLE_DEVICES=all(Dockerfile.serveL1129).CUDA_VISIBLE_DEVICESfor worker processes (workflow.pyL835-870;nim_cosmos_sdk/common/models/llm.pyL226-229), so a value passed into the container can place work outside the intended GPUs.workflow.pyL822-830. Mixed GPUs:criteria.pyL194-199,hardware.pyL385-428.Docs-only change; pages were not rendered locally.
🤖 Generated with Claude Code