Open
Conversation
Co-authored-by: Ethan (Yusheng) Su <yushengsu.thu@gmail.com>
…with compatibility test (radixark#436)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Yusheng Su <radixark@ac-h200-user-3.tail134ba0.ts.net>
Co-authored-by: root <root@mi300x8-008.atl1.do.cpe.ice.amd.com>
Co-authored-by: Banghua Zhu <banghuazhu@radixar.ai> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Zijie Xia <zijie_xia@icloud.com> Co-authored-by: zijiexia <37504505+zijiexia@users.noreply.github.com> Co-authored-by: 赵晨阳 <zhaochen20@outlook.com>
Auto-detect GPU vendor (/dev/kfd or torch.version.hip for AMD, nvidia-smi for NVIDIA) and conditionally apply platform-specific settings: - AMD: HIP_VISIBLE_DEVICES, RAY_EXPERIMENTAL_NOSET_HIP_VISIBLE_DEVICES, --no-gradient-accumulation-fusion, --no-offload-train/rollout - NVIDIA: NVLink detection, NCCL_NVLS_ENABLE - Both: dynamic Megatron-LM path detection, configurable MODEL_DIR/DATA_DIR This eliminates the need for a separate run-qwen3-4B-amd.sh script. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Use dynamic NVIDIA GPU count via nvidia-smi -L instead of hardcoded 8 - Remove --no-gradient-accumulation-fusion (AMD Docker now supports it) - Remove --no-offload-train/rollout (torch_memory_saver resolved for ROCm) - Expand compact if/else to multi-line for readability Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Prevent driver-level deadlocks when offload is enabled on AMD GPUs, consistent with PR radixark#588 changes to run-qwen3-4B-amd.sh. Co-Authored-By: Claude Opus 4.6 <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
/dev/kfdortorch.version.hipfor AMD,nvidia-smifor NVIDIA)HIP_VISIBLE_DEVICES,RAY_EXPERIMENTAL_NOSET_HIP_VISIBLE_DEVICES,--no-gradient-accumulation-fusion,--no-offload-train/rolloutNCCL_NVLS_ENABLEMODEL_DIR/DATA_DIRenv vars with/rootdefaultsNUM_GPUSdetection instead of hardcoded 8This eliminates the need for a separate
run-qwen3-4B-amd.sh.