Skip to content

[Config] [Perf] Tune DSV4 EP48 top-k 6 prefill shapes - #5459

Merged
valarLip merged 1 commit into
mainfrom
yhl/dsv4-rccl-prefill-tuning
Sep 11, 2026
Merged

valarLip merged 1 commit into
mainfrom
yhl/dsv4-rccl-prefill-tuning

Conversation

@yhl-amd

@yhl-amd yhl-amd commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

What

Add tuned FMoE entries for the large prefill buckets used by DeepSeek-V4-Pro with 8-way expert parallelism on MI355X:

  • gfx950, M=32768, model_dim=7168, inter_dim=3072, experts=48, topk=6
  • gfx950, M=131072, model_dim=7168, inter_dim=3072, experts=48, topk=6

Both entries select:

  • stage 1: flydsl_moe1_afp8_wfp4_bf16_t128x256x256_w2_bnt0_gui_fp8
  • stage 2: flydsl_moe2_afp8_wfp4_bf16_t64x128x256_atomic

The runtime shape comes from DeepSeek-V4-Pro DPA8/EP8 after RCCL gathers each rank's routed tokens. ROCm/ATOM#2190 restores AITER's EP sentinel convention so the runtime lookup uses the real top-k=6 key instead of falling back through top-k=5.

Validation

Tested with AITER 38c6bb5fcb17243ca70195541a437cf1ac66d7e7 and ATOM 1c5a3bc49d85cee9684cb1b2555d9856c021e3ea on 8x MI355X.

Production-path kernel A/B

Median of three runs:

padded M fallback tuned improvement
32,768 12.353 ms 9.519 ms 22.94%
131,072 49.194 ms 37.329 ms 24.12%

The tuner-selected layout-stage2 alternative was also tested and rejected because it regressed production-path latency by 2.34% and 0.72%, respectively.

One-hour C64 AgentX A/B

Identical workload and server parameters: 8x MI355X, TP8/EP8, DP attention, RCCL, FP4 experts, FP8 KV, FP4 index cache, MTP=3, no KV offload, real speculative acceptance, random seed 42.

metric default selection tuned config change
P90 interactivity 28.769 tok/s/user 33.401 tok/s/user +16.10%
active throughput/chip 22,884.686 tok/s 24,233.944 tok/s +5.90%
TTFT p50 9.024 s 8.679 s -3.82%
TTFT p90 16.510 s 15.636 s -5.29%
completed requests 5,360 5,684 +6.04%
request errors 0 0 unchanged

Both 3,600-second runs reached the grace-period cutoff with a small number of in-flight long requests: 14 for the default selection and 11 for the tuned config.

Config checks

  • CSV parses successfully: 170 data rows
  • all 170 FMoE lookup keys are unique
  • both added rows exactly match the validated dtype, quantization, shape, and kernel names
  • git diff --check passes

@yhl-amd
yhl-amd requested a review from a team September 11, 2026 14:06
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs; main branch always runs both MI35X and MI300X
multigpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 5459 --add-label <label>

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to opt this PR out.

@github-actions github-actions Bot changed the title [Perf] Tune DSV4 EP48 top-k 6 prefill shapes [Config] [Perf] Tune DSV4 EP48 top-k 6 prefill shapes Sep 11, 2026
@valarLip
valarLip merged commit ff5e1c5 into main Sep 11, 2026
26 checks passed
@valarLip
valarLip deleted the yhl/dsv4-rccl-prefill-tuning branch September 11, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants