-
Notifications
You must be signed in to change notification settings - Fork 205
[DNM][AMD] agentx-v0.4 rebased from commit chore/agentx-v0.4 commit 823189e #1709
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
Open
seungrokj
wants to merge
40
commits into
chore/agentx-v0.4
Choose a base branch
from
amd/agentx-v0.4_rebase0611
base: chore/agentx-v0.4
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
01cc2af
[AMD] agentic: add hicache/lmcache configs, update agentic scripts fo…
seungrokj ba1bb37
Add GLM5.1 & Qwen3.5 MI300 Agentic Scripts
ajith-sirra-amd eba4233
[AMD] add DSV4-FP4-MI355x atom agentic benchmark and master yaml config
seungrokj 32f5007
[AMD] update DSV4-FP4-MI355x atom agentic benchmark and master yaml c…
seungrokj 351e729
[AMD] dsv4_fp4_mi355x_atom.sh: update agentic benchmark script
seungrokj 64ce90c
Add DSV4 MI355X Agentic Scripts
ajith-sirra-amd faba18f
Merge branch 'amd/agentx-v0.4_rebase0611' of https://github.com/SemiA…
ajith-sirra-amd 8ca4bc1
Add DSV4 MI355X Agentic Scripts
ajith-sirra-amd 37f57a7
[AMD] update DSV4-FP4-MI355X SGLang agentic benchmark and master yaml…
seungrokj 76d90e0
[AMD] update DSV4-FP4-MI355X SGLang agentic/fixed-seq-len benchmark s…
seungrokj 4ebc4e2
[AMD] remove unused CACHE_ARGS from dsv4_fp4_mi355x_sglang agentic sc…
seungrokj 735e9a3
[AMD] tune hicache ratio and disable none-offloading in agentic config
seungrokj d3caa2b
[AMD] remove --disable-radix-cache from dsv4_fp4_mi355x_sglang agenti…
seungrokj c11f637
[AMD] add dsv4 sglang disagg
billishyahao a9e1304
recipe for agentic dsr1 fp4 and dsv4 fp4
ichbinblau 3b74ce5
fix image
billishyahao 3f6f20f
fix the image
billishyahao 31b392a
fix
billishyahao dbbfc64
fix
billishyahao 836f396
bump image
billishyahao c21ad06
remove numactl
ichbinblau e37fbc2
update dsv4 recipe
ichbinblau 72bff2c
update dsv4 agentic config and benchmark script
seungrokj b5626fb
bump sglang image for dsv4-fp4-mi355x-agentic-hicache
seungrokj 085049a
revert sglang image, comment out blk size 1 variant
seungrokj b79b098
switch to sglang v0.5.13 image with page-size 1
seungrokj f10f456
test high con only in SA
ichbinblau 34dba4d
revert to v0.5.12 image with page-size 256
seungrokj e753830
update dsr1 agentic con=1
ichbinblau de52bf1
add hicache L3 support
ichbinblau c348dbb
dump commands in log files
ichbinblau e36bf75
bump to latest image and fix
ichbinblau f10841f
fix
ichbinblau 73756ab
Adding MINIMAX-M3 MI355X MXFP8 VLLM Agentic support
ajith-sirra-amd fcc4f8b
dsv4: fix prefill deadlock, kernel chunk cap, and router circuit-brea…
ichbinblau 13e227b
dsv4: move prefill/memory-pool patches into setup_deps and tune RDMA/…
ichbinblau 219bcc9
agentic: add 061326/061526 weka trace datasets and switch default to …
ichbinblau 7c2bcbc
add more con list to dsv4 disagg agentic
ichbinblau 4f8123d
dsv4: bump sglang-rocm image to mi35x-20260618 for disagg-agentic-hic…
ichbinblau a150ced
aiperf: bump submodule to 313c717
ichbinblau 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
176 changes: 176 additions & 0 deletions
176
benchmarks/multi_node/agentic/dsr1_fp4_mi355x_sglang-disagg.sh
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,176 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # Agentic trace-replay recipe for a disaggregated SGLang server on MI355X | ||
| # (DeepSeek-R1-0528 MXFP4-v2, 1P1D TP8). | ||
| # | ||
| # CI-style sibling of dsr1_fp8_mi355x_sglang-disagg.sh: driven entirely by | ||
| # environment variables and submits a SLURM job via submit.sh. The agentic / | ||
| # HiCache-offload configuration is ported from local_test_dsr1_agentic_offload.sh | ||
| # and is fully env-overridable so a YAML config can tune it. | ||
|
|
||
| source "$(dirname "$0")/../benchmark_lib.sh" | ||
|
|
||
| check_env_vars \ | ||
| CONC_LIST \ | ||
| ISL \ | ||
| OSL \ | ||
| IMAGE \ | ||
| SPEC_DECODING \ | ||
| MODEL_PATH \ | ||
| PREFILL_NUM_WORKERS \ | ||
| PREFILL_TP \ | ||
| PREFILL_EP \ | ||
| PREFILL_DP_ATTN \ | ||
| DECODE_NUM_WORKERS \ | ||
| DECODE_TP \ | ||
| DECODE_EP \ | ||
| DECODE_DP_ATTN \ | ||
| PREFILL_NODES \ | ||
| DECODE_NODES \ | ||
| RANDOM_RANGE_RATIO \ | ||
| DURATION \ | ||
| OFFLOADING \ | ||
| IS_AGENTIC \ | ||
| FRAMEWORK | ||
|
|
||
| if [[ -n "$SLURM_JOB_ID" ]]; then | ||
| echo "JOB $SLURM_JOB_ID running on $SLURMD_NODENAME" | ||
| fi | ||
|
|
||
| set -x | ||
|
|
||
| # Use upstreamed multi_node scripts (no external clone needed) | ||
| cd "$GITHUB_WORKSPACE/benchmarks/multi_node/amd_utils" || exit 1 | ||
|
|
||
| # Set up SGL launch script-specific environment variables | ||
| export TIME_LIMIT="${TIME_LIMIT:-08:00:00}" | ||
| export MODEL_PATH=$MODEL_PATH | ||
| export MODEL_NAME=$MODEL_NAME | ||
| export CONTAINER_IMAGE=$IMAGE | ||
|
|
||
| # ── Identity / result naming ── | ||
| export MODEL_PREFIX="${MODEL_PREFIX:-dsr1}" | ||
| export PRECISION="${PRECISION:-fp4}" | ||
| export RESULT_FILENAME="${RESULT_FILENAME:-${RUNNER_NAME:-dsr1-fp4-agentic}}" | ||
|
|
||
| # ── Agentic benchmark params ── | ||
| # DURATION threads through submit.sh -> job.slurm -> Docker -> bench.sh. | ||
| # CONC_LIST drives the concurrency sweep (submit.sh splits on 'x'). | ||
| export DURATION="${DURATION:-1800}" | ||
| export MAX_MODEL_LEN="${MAX_MODEL_LEN:-163840}" | ||
|
|
||
| # ── Aiter fault mitigations (ROCm/ROCm#6023) ── | ||
| export SGLANG_AITER_MLA_PERSIST="${SGLANG_AITER_MLA_PERSIST:-1}" | ||
| # 1 => append --disable-custom-all-reduce to prefill+decode (Aiter fault mitigation). | ||
| export DISABLE_CUSTOM_ALL_REDUCE="${DISABLE_CUSTOM_ALL_REDUCE:-1}" | ||
|
|
||
| # # ── Hugging Face cache persistence ── | ||
| # # Persist the HF Hub/datasets cache across runs so traces aren't re-downloaded. | ||
| # export HF_CACHE_HOST_DIR="${HF_CACHE_HOST_DIR:-$HOME/.cache/huggingface}" | ||
| # mkdir -p "${HF_CACHE_HOST_DIR}" | ||
| # export EXTRA_DOCKER_MOUNTS="${EXTRA_DOCKER_MOUNTS:-} -v ${HF_CACHE_HOST_DIR}:/root/.cache/huggingface" | ||
| # # HF auth token: provide via the environment/CI secrets (do NOT hardcode here). | ||
| # export HF_TOKEN="${HF_TOKEN:-}" | ||
| # if [[ -n "${HF_TOKEN:-}" && -z "${HUGGING_FACE_HUB_TOKEN:-}" ]]; then | ||
| # export HUGGING_FACE_HUB_TOKEN="$HF_TOKEN" | ||
| # fi | ||
|
|
||
| # ── In-tree sglang patches ── | ||
| # mori_conn.py targets hybrid-state bugs (GLM-5, Qwen3.5) not present in | ||
| # DSR1-MXFP4-v2 (pure MLA). Skip the auto-apply in job.slurm. | ||
| export MORI_CONN_PATCH="${MORI_CONN_PATCH:-skip}" | ||
|
|
||
| # ── KV cache offloading (HiCache) ── | ||
| # OFFLOADING=hicache (default for this recipe) | none. HICACHE_TIER: | ||
| # L2 -> GPU + CPU-DRAM host pool only. L3 -> + Mooncake distributed KV store. | ||
| export OFFLOADING="${OFFLOADING:-hicache}" | ||
| export HICACHE_TIER="${HICACHE_TIER:-L3}" | ||
| export HICACHE_TOTAL_CPU_DRAM_GB="${HICACHE_TOTAL_CPU_DRAM_GB:-64}" | ||
| export HICACHE_HOST_POOL_COUNT="${HICACHE_HOST_POOL_COUNT:-1}" | ||
| export HICACHE_PAGE_SIZE="${HICACHE_PAGE_SIZE:-64}" | ||
| # Per-rank L2 host pool in GB (100GB/rank x TP8 = ~800GB pinned host DRAM/node). | ||
| export HICACHE_SIZE_GB="${HICACHE_SIZE_GB:-100}" | ||
|
|
||
| # ── HiCache layout/backend driven by HICACHE_TIER ── | ||
| # Each tier has a canonical (layout, io_backend, write_policy, storage_backend) | ||
| # combo (mirrors server_sglang.sh build_hicache_flags). Any var set explicitly | ||
| # in the environment wins over the tier default. | ||
| # L3 (Mooncake): page_first + direct + write_through + storage=mooncake | ||
| # L2 (CPU DRAM): layer_first + kernel + write_through_selective + storage=none | ||
| if [[ "${HICACHE_TIER^^}" == "L3" ]]; then | ||
| export HICACHE_MEM_LAYOUT="${HICACHE_MEM_LAYOUT:-page_first}" | ||
| export HICACHE_IO_BACKEND="${HICACHE_IO_BACKEND:-direct}" | ||
| export HICACHE_WRITE_POLICY="${HICACHE_WRITE_POLICY:-write_through}" | ||
| export HICACHE_STORAGE_BACKEND="${HICACHE_STORAGE_BACKEND:-mooncake}" | ||
| else | ||
| export HICACHE_MEM_LAYOUT="${HICACHE_MEM_LAYOUT:-layer_first}" | ||
| export HICACHE_IO_BACKEND="${HICACHE_IO_BACKEND:-direct}" | ||
| # write_through_selective evicts only under GPU memory pressure, giving mori | ||
| # time to complete RDMA KV transfers before pages are freed. write_through | ||
| # evicts immediately and races with mori → GPU memory access faults. | ||
| export HICACHE_WRITE_POLICY="${HICACHE_WRITE_POLICY:-write_through_selective}" | ||
| export HICACHE_STORAGE_BACKEND="${HICACHE_STORAGE_BACKEND:-}" | ||
| fi | ||
| export HICACHE_DECODE="${HICACHE_DECODE:-0}" | ||
| # Shared nodes: use non-default Mooncake ports to avoid colliding with other users. | ||
| export MC_MASTER_PORT="${MC_MASTER_PORT:-58137}" | ||
| export MC_METRICS_PORT="${MC_METRICS_PORT:-19003}" | ||
| export MC_PATCH_HOSTPOOL="${MC_PATCH_HOSTPOOL:-1}" | ||
| export MC_PROTOCOL="${MC_PROTOCOL:-tcp}" | ||
| export MC_GLOBAL_SEG="${MC_GLOBAL_SEG:-30gb}" | ||
| export MC_DEVICE="${MC_DEVICE:-rdma0}" | ||
| export MC_MASTER_ADDR="${MC_MASTER_ADDR:-}" | ||
|
|
||
| # ── MoRIIO RDMA Send Queue tuning (headroom for conc>=8) ── | ||
| export MORI_IO_SQ_BACKOFF_TIMEOUT_US="${MORI_IO_SQ_BACKOFF_TIMEOUT_US:-500000}" | ||
| export MORI_IO_QP_MAX_SEND_WR="${MORI_IO_QP_MAX_SEND_WR:-32768}" | ||
|
|
||
| # ── SGLang PD router policy + server metrics ── | ||
| export PREFILL_ROUTER_POLICY="${PREFILL_ROUTER_POLICY:-random}" | ||
| export ENABLE_METRICS="${ENABLE_METRICS:-1}" | ||
|
|
||
| # ── MTP ── | ||
| export DECODE_MTP_SIZE="${DECODE_MTP_SIZE:-0}" | ||
|
|
||
| # Derive EP/DP enable flags from the topology inputs (same as the fixed-seq recipe). | ||
| if [[ "${PREFILL_EP:-1}" -eq 1 ]]; then | ||
| export PREFILL_ENABLE_EP=false | ||
| else | ||
| export PREFILL_ENABLE_EP=true | ||
| fi | ||
|
|
||
| if [[ "$PREFILL_DP_ATTN" == "true" ]]; then | ||
| export PREFILL_ENABLE_DP=true | ||
| else | ||
| export PREFILL_ENABLE_DP=false | ||
| fi | ||
|
|
||
| if [[ "${DECODE_EP:-1}" -eq 1 ]]; then | ||
| export DECODE_ENABLE_EP=false | ||
| else | ||
| export DECODE_ENABLE_EP=true | ||
| fi | ||
|
|
||
| if [[ "$DECODE_DP_ATTN" == "true" ]]; then | ||
| export DECODE_ENABLE_DP=true | ||
| else | ||
| export DECODE_ENABLE_DP=false | ||
| fi | ||
|
|
||
| # Launch the job. CONC_LIST is space-delimited in YAML; submit.sh wants 'x'. | ||
| JOB_ID=$(bash ./submit.sh $PREFILL_NODES \ | ||
| $PREFILL_NUM_WORKERS \ | ||
| $DECODE_NODES \ | ||
| $DECODE_NUM_WORKERS \ | ||
| $ISL $OSL "${CONC_LIST// /x}" inf \ | ||
| ${PREFILL_ENABLE_EP} ${PREFILL_ENABLE_DP} \ | ||
| ${DECODE_ENABLE_EP} ${DECODE_ENABLE_DP} \ | ||
| ${PREFILL_TP} ${DECODE_TP} \ | ||
| ${RANDOM_RANGE_RATIO}) | ||
|
|
||
| if [[ $? -ne 0 ]]; then | ||
| echo "Failed to submit job" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "$JOB_ID" | ||
|
cursor[bot] marked this conversation as resolved.
|
||
166 changes: 166 additions & 0 deletions
166
benchmarks/multi_node/agentic/dsv4_fp4_mi355x_sglang-disagg.sh
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,166 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # Agentic trace-replay recipe for a disaggregated SGLang server on MI355X | ||
| # (DeepSeek-V4-Pro FP4, 1P1D TP8). | ||
| # | ||
| # CI-style sibling of dsr1_fp4_mi355x_sglang-disagg.sh: driven entirely by | ||
| # environment variables and submits a SLURM job via submit.sh. The agentic / | ||
| # HiCache-offload configuration mirrors the DSR1 recipe but uses DSV4-Pro | ||
| # specific flags (dsv4 attention backend, page-size 256, SWA settings). | ||
|
|
||
| source "$(dirname "$0")/../benchmark_lib.sh" | ||
|
|
||
| check_env_vars \ | ||
| CONC_LIST \ | ||
| ISL \ | ||
| OSL \ | ||
| IMAGE \ | ||
| SPEC_DECODING \ | ||
| MODEL_PATH \ | ||
| PREFILL_NUM_WORKERS \ | ||
| PREFILL_TP \ | ||
| PREFILL_EP \ | ||
| PREFILL_DP_ATTN \ | ||
| DECODE_NUM_WORKERS \ | ||
| DECODE_TP \ | ||
| DECODE_EP \ | ||
| DECODE_DP_ATTN \ | ||
| PREFILL_NODES \ | ||
| DECODE_NODES \ | ||
| RANDOM_RANGE_RATIO \ | ||
| DURATION \ | ||
| OFFLOADING \ | ||
| IS_AGENTIC \ | ||
| FRAMEWORK | ||
|
|
||
| if [[ -n "$SLURM_JOB_ID" ]]; then | ||
| echo "JOB $SLURM_JOB_ID running on $SLURMD_NODENAME" | ||
| fi | ||
|
|
||
| set -x | ||
|
|
||
| # Use upstreamed multi_node scripts (no external clone needed) | ||
| cd "$GITHUB_WORKSPACE/benchmarks/multi_node/amd_utils" || exit 1 | ||
|
|
||
| # Set up SGL launch script-specific environment variables | ||
| export TIME_LIMIT="${TIME_LIMIT:-08:00:00}" | ||
| export MODEL_PATH=$MODEL_PATH | ||
| export MODEL_NAME=$MODEL_NAME | ||
| export CONTAINER_IMAGE=$IMAGE | ||
|
|
||
| # ── Identity / result naming ── | ||
| export MODEL_PREFIX="${MODEL_PREFIX:-dsv4}" | ||
| export PRECISION="${PRECISION:-fp4}" | ||
| export RESULT_FILENAME="${RESULT_FILENAME:-${RUNNER_NAME:-dsv4-fp4-agentic}}" | ||
|
|
||
| # ── Agentic benchmark params ── | ||
| export DURATION="${DURATION:-1800}" | ||
| # DSV4-Pro max model len for agentic traces (matches single-node recipe). | ||
| export MAX_MODEL_LEN="${MAX_MODEL_LEN:-1000000}" | ||
|
|
||
| # ── In-tree sglang patches ── | ||
| # mori_conn.py targets hybrid-state bugs (GLM-5, Qwen3.5). DSV4-Pro uses a | ||
| # pure MoE/DSA architecture without hybrid state; skip to avoid interference. | ||
| export MORI_CONN_PATCH="${MORI_CONN_PATCH:-skip}" | ||
|
|
||
| # ── Aiter fault mitigation ── | ||
| # --disable-custom-all-reduce avoids a known aiter fault on MI355X. | ||
| export DISABLE_CUSTOM_ALL_REDUCE="${DISABLE_CUSTOM_ALL_REDUCE:-0}" | ||
|
|
||
| # ── KV cache offloading (HiCache) ── | ||
| # OFFLOADING=hicache | none (passed from YAML; default none for disagg). | ||
| # HICACHE_TIER: L2 -> GPU + CPU-DRAM host pool. L3 -> + Mooncake store. | ||
| export OFFLOADING="${OFFLOADING:-none}" | ||
| # HiCache/Mooncake tunables only matter when KV offloading is enabled. | ||
| if [[ "$OFFLOADING" == "hicache" ]]; then | ||
| export HICACHE_TIER="${HICACHE_TIER:-L2}" | ||
| export HICACHE_HOST_POOL_COUNT="${HICACHE_HOST_POOL_COUNT:-1}" | ||
| # DSV4 uses page-size 256 (set in models.yaml); HiCache must match. | ||
| export HICACHE_PAGE_SIZE="${HICACHE_PAGE_SIZE:-256}" | ||
| # HiCache ratio (host pool = ratio * GPU KV pool). Default derived in server_sglang.sh. | ||
| export HICACHE_RATIO="${HICACHE_RATIO:-}" | ||
|
|
||
| # ── HiCache layout/backend by tier ── | ||
| # L3 (Mooncake): page_first + direct + write_through + storage=mooncake | ||
| # L2 (CPU DRAM): layer_first + direct + write_through_selective + storage=none | ||
| # NOTE: write_through_selective evicts only under GPU memory pressure, avoiding | ||
| # the mori RDMA race that causes GPU memory access faults with write_through. | ||
| if [[ "${HICACHE_TIER^^}" == "L3" ]]; then | ||
| export HICACHE_MEM_LAYOUT="${HICACHE_MEM_LAYOUT:-page_first}" | ||
| export HICACHE_IO_BACKEND="${HICACHE_IO_BACKEND:-direct}" | ||
| export HICACHE_WRITE_POLICY="${HICACHE_WRITE_POLICY:-write_through}" | ||
| export HICACHE_STORAGE_BACKEND="${HICACHE_STORAGE_BACKEND:-mooncake}" | ||
| else | ||
| export HICACHE_MEM_LAYOUT="${HICACHE_MEM_LAYOUT:-layer_first}" | ||
| export HICACHE_IO_BACKEND="${HICACHE_IO_BACKEND:-direct}" | ||
| export HICACHE_WRITE_POLICY="${HICACHE_WRITE_POLICY:-write_through_selective}" | ||
| export HICACHE_STORAGE_BACKEND="${HICACHE_STORAGE_BACKEND:-}" | ||
| fi | ||
| export HICACHE_PREFETCH_POLICY="${HICACHE_PREFETCH_POLICY:-wait_complete}" | ||
| # Shared nodes: use non-default Mooncake ports to avoid collisions. | ||
| export MC_MASTER_PORT="${MC_MASTER_PORT:-58137}" | ||
| export MC_METADATA_PORT="${MC_METADATA_PORT:-8080}" | ||
| export MC_METRICS_PORT="${MC_METRICS_PORT:-19003}" | ||
| export MC_MASTER_THREADS="${MC_MASTER_THREADS:-64}" | ||
| export MC_EVICTION_HIGH_WATERMARK="${MC_EVICTION_HIGH_WATERMARK:-0.95}" | ||
| export MC_PATCH_HOSTPOOL="${MC_PATCH_HOSTPOOL:-1}" | ||
| export MC_PROTOCOL="${MC_PROTOCOL:-tcp}" | ||
| export MC_GLOBAL_SEG="${MC_GLOBAL_SEG:-64gb}" | ||
| export MC_DEVICE="${MC_DEVICE:-}" | ||
| export MC_MASTER_ADDR="${MC_MASTER_ADDR:-}" | ||
| export MC_METADATA_SERVER="${MC_METADATA_SERVER:-}" | ||
| fi | ||
|
|
||
| # ── MoRIIO RDMA Send Queue tuning ── | ||
| export MORI_IO_SQ_BACKOFF_TIMEOUT_US="${MORI_IO_SQ_BACKOFF_TIMEOUT_US:-500000}" | ||
| export MORI_IO_QP_MAX_SEND_WR="${MORI_IO_QP_MAX_SEND_WR:-32768}" | ||
|
|
||
| # ── SGLang PD router policy + server metrics ── | ||
| export PREFILL_ROUTER_POLICY="${PREFILL_ROUTER_POLICY:-random}" | ||
| export ENABLE_METRICS="${ENABLE_METRICS:-1}" | ||
|
|
||
| # ── MTP ── | ||
| export DECODE_MTP_SIZE="${DECODE_MTP_SIZE:-0}" | ||
|
|
||
| # Derive EP/DP enable flags from the topology inputs. | ||
| if [[ "${PREFILL_EP:-1}" -eq 1 ]]; then | ||
| export PREFILL_ENABLE_EP=false | ||
| else | ||
| export PREFILL_ENABLE_EP=true | ||
| fi | ||
|
|
||
| if [[ "$PREFILL_DP_ATTN" == "true" ]]; then | ||
| export PREFILL_ENABLE_DP=true | ||
| else | ||
| export PREFILL_ENABLE_DP=false | ||
| fi | ||
|
|
||
| if [[ "${DECODE_EP:-1}" -eq 1 ]]; then | ||
| export DECODE_ENABLE_EP=false | ||
| else | ||
| export DECODE_ENABLE_EP=true | ||
| fi | ||
|
|
||
| if [[ "$DECODE_DP_ATTN" == "true" ]]; then | ||
| export DECODE_ENABLE_DP=true | ||
| else | ||
| export DECODE_ENABLE_DP=false | ||
| fi | ||
|
|
||
| # Launch the job. CONC_LIST is space-delimited in YAML; submit.sh wants 'x'. | ||
| JOB_ID=$(bash ./submit.sh $PREFILL_NODES \ | ||
| $PREFILL_NUM_WORKERS \ | ||
| $DECODE_NODES \ | ||
| $DECODE_NUM_WORKERS \ | ||
| $ISL $OSL "${CONC_LIST// /x}" inf \ | ||
| ${PREFILL_ENABLE_EP} ${PREFILL_ENABLE_DP} \ | ||
| ${DECODE_ENABLE_EP} ${DECODE_ENABLE_DP} \ | ||
| ${PREFILL_TP} ${DECODE_TP} \ | ||
| ${RANDOM_RANGE_RATIO}) | ||
|
|
||
| if [[ $? -ne 0 ]]; then | ||
| echo "Failed to submit job" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "$JOB_ID" |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong benchmark_lib source path
High Severity
These recipes live under
benchmarks/multi_node/agentic/but source../benchmark_lib.sh, which resolves tobenchmarks/multi_node/benchmark_lib.sh. The library actually lives atbenchmarks/benchmark_lib.sh, so the scripts fail on the firstsourceline.Additional Locations (1)
benchmarks/multi_node/agentic/dsv4_fp4_mi355x_sglang-disagg.sh#L10-L11Reviewed by Cursor Bugbot for commit 4f8123d. Configure here.