-
Notifications
You must be signed in to change notification settings - Fork 156
[NVIDIA] Add b200 DGXC node to b200 runners list #245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3194358
add launch_b200-dgxc.sh
Ankur-singh beb0c9a
add gptoss trt docker
Ankur-singh 1c68a83
add dgxc runners
Ankur-singh 4879450
Merge branch 'main' into b200-dgcx-runners
cquil11 7bc658e
move benchmark client inside OG docker container
Ankur-singh a26c125
move SGL to b200-test runners
Ankur-singh a53e8d9
updated b200 runner label
Ankur-singh e44c8cb
Add DP_ATTENTION env variable to b200 runner scripts
Ankur-singh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| #!/usr/bin/bash | ||
|
|
||
| HF_HUB_CACHE_MOUNT="/raid/hf_hub_cache/" | ||
| FRAMEWORK_SUFFIX=$([[ "$FRAMEWORK" == "trt" ]] && printf '_trt' || printf '') | ||
| PORT=8888 | ||
|
|
||
| # Create unique cache directory based on model parameters | ||
| MODEL_NAME=$(basename "$MODEL") | ||
|
|
||
| server_name="bmk-server" | ||
|
|
||
| nvidia-smi | ||
|
|
||
| # GPUs must be idle | ||
| if nvidia-smi --query-compute-apps=pid --format=csv,noheader | grep -q '[0-9]'; then | ||
| echo "[ERROR] GPU busy from previous run"; nvidia-smi; exit 1 | ||
| fi | ||
|
|
||
| set -x | ||
| # Use --init flag to run an init process (PID 1) inside container for better signal handling and zombie process cleanup | ||
| # Ref: https://www.paolomainardi.com/posts/docker-run-init/ | ||
|
|
||
| # NCCL_GRAPH_REGISTER tries to automatically enable user buffer registration with CUDA Graphs. | ||
| # Disabling it can reduce perf but will improve CI stability. i.e. we won't see vLLM/Sglang crashes. | ||
| # Ref: https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/env.html#nccl-graph-register | ||
|
|
||
| if [[ "$MODEL" == "nvidia/DeepSeek-R1-0528-FP4" || "$MODEL" == "deepseek-ai/DeepSeek-R1-0528" ]]; then | ||
| if [[ "$OSL" == "8192" ]]; then | ||
| export NUM_PROMPTS=$(( CONC * 20 )) | ||
| else | ||
| export NUM_PROMPTS=$(( CONC * 50 )) | ||
| fi | ||
| else | ||
| export NUM_PROMPTS=$(( CONC * 10 )) | ||
| fi | ||
|
|
||
| docker run --rm --init --network host --name $server_name \ | ||
| --runtime nvidia --gpus all --ipc host --privileged --shm-size=16g --ulimit memlock=-1 --ulimit stack=67108864 \ | ||
| -v $HF_HUB_CACHE_MOUNT:$HF_HUB_CACHE \ | ||
| -v $GITHUB_WORKSPACE:/workspace/ -w /workspace/ \ | ||
| -e HF_TOKEN -e HF_HUB_CACHE -e MODEL -e TP -e CONC -e MAX_MODEL_LEN -e ISL -e OSL -e PORT=$PORT -e EP_SIZE -e DP_ATTENTION \ | ||
| -e NCCL_GRAPH_REGISTER=0 \ | ||
| -e TORCH_CUDA_ARCH_LIST="10.0" -e CUDA_DEVICE_ORDER=PCI_BUS_ID -e CUDA_VISIBLE_DEVICES="0,1,2,3,4,5,6,7" \ | ||
| -e PYTHONPYCACHEPREFIX=/tmp/pycache/ -e RESULT_FILENAME -e RANDOM_RANGE_RATIO -e NUM_PROMPTS \ | ||
| --entrypoint=/bin/bash \ | ||
| $(echo "$IMAGE" | sed 's/#/\//') \ | ||
| benchmarks/"${EXP_NAME%%_*}_${PRECISION}_b200${FRAMEWORK_SUFFIX}_docker.sh" | ||
|
|
||
| # Try graceful first | ||
| docker stop -t 90 "$server_name" || true | ||
| # Wait until it's really dead | ||
| docker wait "$server_name" >/dev/null 2>&1 || true | ||
| # Force remove if anything lingers | ||
| docker rm -f "$server_name" >/dev/null 2>&1 || true | ||
|
|
||
| # Give a moment for GPU processes to fully terminate | ||
| sleep 2 | ||
| # Verify GPUs are now idle; if not, print diag and (optionally) reset | ||
| if nvidia-smi --query-compute-apps=pid --format=csv,noheader | grep -q '[0-9]'; then | ||
| echo "[WARN] After stop, GPU still busy:"; nvidia-smi | ||
| # Last resort if driver allows and GPUs appear idle otherwise: | ||
| #nvidia-smi --gpu-reset -i 0,1,2,3,4,5,6,7 2>/dev/null || true | ||
| fi | ||
|
|
||
| nvidia-smi | ||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.