Repository navigation
Conversation
GPU Feature Discovery labels RTX PRO nodes as e.g. NVIDIA-RTX-PRO-6000-Blackwell-Max-Q-Workstation-Edition. The RTX- -> RTX step made that NVIDIA-RTXPRO-6000-..., whose tokens (rtxpro, 6000) never match the known name RTXPRO6000, so such nodes got no GPU offers. Join RTX-PRO- -> RTXPRO first.
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.
Problem
On a Kubernetes node with RTX PRO 6000 Blackwell GPUs, the
kubernetesbackend offers no GPUs. NVIDIA GPU Feature Discovery (k8s-device-plugin v0.20.1) labels the node:and
nvidia.com/gpu: 2is allocatable, but:dstack offerwithout--gpulists the node ascpu=x86:1only.In
get_nvidia_gpu_from_node_labels,replace("RTX-", "RTX")turns the label intoNVIDIA-RTXPRO-6000-Blackwell-..., whose tokens arertxpro,6000, ... None equals the known nameRTXPRO6000, so the function returnsNone:Reproduced with 0.22.8 against a single-node RKE2 v1.36.6 cluster; same code on
master.Fix
Replace
RTX-PRO-withRTXPRObefore the existingRTX-→RTXstep, so the label has the tokenrtxpro6000. Other products are unaffected: only labels containingRTX-PRO-change.With the change applied to 0.22.6 on the same cluster,
dstack offer --gpu 1..listsgpu=RTXPRO6000:96GB:1.Tests
test_returns_rtx_gpuinsrc/tests/_internal/core/backends/kubernetes/test_resources.py: RTX PRO 6000 Max-Q (the label from the node above), RTX PRO 6000 Server Edition, RTX PRO 4500, and GeForce RTX 4090 (unchanged behaviour). The three RTX PRO cases fail without the fix.uv run ruff check --fix,uv run ruff format: no changesuv run pytest src/tests: 5129 passed, 1543 skipped