Repository navigation
fix(gpu): default GPU sampling off - #112
Merged
reiase merged 2 commits intoNov 16, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
…aining Auto-on GPU sampling (1 Hz) measurably slows CUDA/NCCL-heavy training running in other processes on the same node: +26% step time at 1s and +5.5% at 60s on 8xH200 MoE-FSDSP PPO (64-step A/B runs, Welch t>10), identical via the legacy nvidia-smi path and in-process NVML — the cost is the NVML queries' driver-lock contention, which only manifests under real training load. Default the collector off; keep explicit opt-in (PROBING_GPU_SAMPLE_MS / SET probing.gpu.sample_interval_ms) and give PROBING_GPU=on a fixed 60000 ms interval instead of the now-zero default. Guard the autostart return so a zero default maps to off rather than a zero-interval busy loop.
The force-on autostart test still expected Some(DEFAULT), and the platform-gated auto tests expected Some(DEFAULT) when a backend was present; the first failure also poisoned ENV_TEST_LOCK, cascading into every other env test (PoisonError). Assert the new contract instead: explicit on → FORCED_ON_SAMPLE_INTERVAL_MS, auto → None regardless of backend presence, and add a plain assertion that the default is 0.
VincentCheungKokomo
force-pushed
the
pr/gpu-sampling-default-off
branch
from
November 13, 2026 09:47
3436163 to
784b605
Compare
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.
Auto-on GPU sampling (1 Hz) measurably slows CUDA/NCCL-heavy training running in other processes on the same node: +26% step time at 1s and +5.5% at 60s on 8xH200 MoE-FSDSP PPO (64-step A/B runs, Welch t>10), identical via the legacy nvidia-smi path and in-process NVML — the cost is the NVML queries' driver-lock contention, which only manifests under real training load. Default the collector off; keep explicit opt-in (PROBING_GPU_SAMPLE_MS / SET probing.gpu.sample_interval_ms) and give PROBING_GPU=on a fixed 60000 ms interval instead of the now-zero default. Guard the autostart return so a zero default maps to off rather than a zero-interval busy loop.