-
Notifications
You must be signed in to change notification settings - Fork 194
[AMD] dsv4-fp4-mi355x-atom: enable DPA TBO at high concurrency, update image to atom0.1.4 #1717
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
base: main
Are you sure you want to change the base?
Changes from all commits
31b4fbe
c566e28
7e1aa06
65e0fa3
3f3560b
c3b3289
7ffa976
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,31 +22,51 @@ echo "TP: $TP, CONC: $CONC, ISL: $ISL, OSL: $OSL, EP_SIZE: $EP_SIZE, DP_ATTENTIO | |
| SERVER_LOG=/workspace/server.log | ||
|
|
||
| PARALLEL_ARGS=(-tp "$TP") #TP | ||
| CUDAGRAPH_SIZES='[1,2,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256]' | ||
| if [ "$DP_ATTENTION" = "true" ]; then | ||
| if [ "$EP_SIZE" -gt 1 ]; then #DP+EP | ||
| PARALLEL_ARGS=(-tp "$TP" --enable-expert-parallel --enable-dp-attention ) | ||
| else #DP+TP | ||
| PARALLEL_ARGS=(-tp "$TP" --enable-dp-attention ) | ||
| else #DPA+TP | ||
| #DPA+TP+TBO | ||
| if [ "$ISL" -eq 1024 ] && [ "$OSL" -eq 1024 ] && [ "$CONC" -ge 1024 ]; then | ||
| PARALLEL_ARGS=(-tp "$TP" --enable-dp-attention --enable-tbo) | ||
| CUDAGRAPH_SIZES='[1,2,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,512,1024]' | ||
| elif [ "$ISL" -eq 8192 ] && [ "$OSL" -eq 1024 ] && [ "$CONC" -ge 256 ]; then | ||
| PARALLEL_ARGS=(-tp "$TP" --enable-dp-attention --enable-tbo) | ||
| else | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CUDA graph sizes omit high concurrencyMedium Severity For ISL=8192 and OSL=1024, Reviewed by Cursor Bugbot for commit 7ffa976. Configure here. |
||
| PARALLEL_ARGS=(-tp "$TP" --enable-dp-attention ) | ||
| fi | ||
| fi | ||
| fi | ||
|
|
||
| BENCHMARK_MAX_MODEL_LEN="$MAX_MODEL_LEN" | ||
|
|
||
| if [ "${EVAL_ONLY}" = "true" ]; then | ||
| EVAL_MAX_MODEL_LEN=$(compute_eval_context_length "$MODEL" "$BENCHMARK_MAX_MODEL_LEN") | ||
| export EVAL_MAX_MODEL_LEN | ||
| SERVE_MAX_MODEL_LEN="$EVAL_MAX_MODEL_LEN" | ||
| else | ||
| SERVE_MAX_MODEL_LEN="$BENCHMARK_MAX_MODEL_LEN" | ||
| fi | ||
| # Start GPU monitoring (power, temperature, clocks every second) | ||
| start_gpu_monitor | ||
|
|
||
| set -x | ||
| export ATOM_DISABLE_MMAP=true | ||
| export AITER_BF16_FP8_MOE_BOUND=0 | ||
| export ATOM_MOE_GU_ITLV=1 | ||
| # TODO: add --no-enable_chunked_prefill, when dsv4 prefix caching is supported | ||
| #https://github.com/ROCm/ATOM/commit/7df93a181da4d3c3250c2441c7d5e2745a03d0cd#diff-61b1ba0b8b74523530d2d5cdc739d4f3a23a43bedf69015a5235844d46e9373bL1127 | ||
| python3 -m atom.entrypoints.openai_server \ | ||
| --model $MODEL \ | ||
| --server-port $PORT \ | ||
| "${PARALLEL_ARGS[@]}" \ | ||
| --kv_cache_dtype fp8 \ | ||
| --trust-remote-code \ | ||
| --gpu-memory-utilization 0.85 \ | ||
| --no-enable_prefix_caching \ | ||
| --cudagraph-capture-sizes "${CUDAGRAPH_SIZES}" \ | ||
| --max-num-seqs ${CONC} \ | ||
| > $SERVER_LOG 2>&1 & | ||
| #--max-model-len "$SERVE_MAX_MODEL_LEN" \ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Eval context not wiredMedium Severity This commit adds Reviewed by Cursor Bugbot for commit c3b3289. Configure here. |
||
|
|
||
| SERVER_PID=$! | ||
|
|
||
|
|
||


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.
Search space not enabled
High Severity
The
dsv4-fp4-mi355x-atomfixed-seq-len matrix no longer matches the PR: the ISL=1024 scenario is fully commented out, and ISL=8192 only runs a single DPA point at conc=1024 instead of the documented TP8 (conc 4–64) and DPA (conc 128–1024) sweeps.Reviewed by Cursor Bugbot for commit c3b3289. Configure here.