Repository navigation
Dev/dsv4 a4w4 tuned - #3835
Dev/dsv4 a4w4 tuned#3835Bernard-Liu wants to merge 4 commits into
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
There was a problem hiding this comment.
Pull request overview
Adds DeepSeek-V4 (DSv4) FP4 (A4W4) MoE CSV configurations under aiter/configs/model_configs/ so the runtime’s tuned_fmoe config merge can pick up DSv4-tuned kernel selections (and the associated untuned shape list) automatically.
Changes:
- Added a DSv4 FP4 untuned MoE shape list (
dsv4_fp4_untuned_fmoe.csv) for shape collection / tuning baselines. - Added a DSv4 FP4 tuned MoE config (
dsv4_fp4_tuned_fmoe.csv) with per-shape kernel selections (including FlyDSL and CK 2-stage entries) and metadata columns (gfx,xbf16,flat, etc.).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| aiter/configs/model_configs/dsv4_fp4_untuned_fmoe.csv | Adds the DSv4 FP4 MoE “untuned” shape manifest (schema matches existing untuned fmoe manifests). |
| aiter/configs/model_configs/dsv4_fp4_tuned_fmoe.csv | Adds the DSv4 FP4 MoE tuned winners (schema compatible with runtime merge/lookup; includes gfx and FlyDSL fallback tagging). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Validated on gfx950 (MI355X), DSv4-Pro, token=512, expert=385, topk=7:
A4W4 stage1 is on par with A8W4 (320 vs 333µs). Stage2 is the bottleneck (345 vs 195µs, 77% slower). Note: A8W4 has a separate CI note: The MI35X failures (shards 2/3/5) appear to be pre-existing issues unrelated to this PR's changes (CSV files only) — |
|
Note: benchmarks show A4W4 is ~16–22% slower than A8W4 at token=1/2/4 (fp4 activation quantization overhead dominates at small batch sizes). This is expected behavior — users on latency-sensitive small-batch scenarios should remain on A8W4. For large-batch / bandwidth-bound scenarios (token ≥ 256), A4W4 shows clear wins (r ≈ 0.76–0.87). Overall ~4% average improvement across all shapes. LGTM otherwise — pure CSV additions with graceful fallback, manually validated on gfx950. |
|
@Bernard-Liu There's a merge conflict in dsv4_fp8fp4_tuned_fmoe.csv — could you rebase onto the latest main and resolve it? CI checks are also pending. Thanks! |
|
merge conflict |
|
There are merge conflicts with |
|
There are merge conflicts with main — could you please rebase or merge main into your branch to resolve them? Thanks! |
|
@Bernard-Liu There's a merge conflict in dsv4_fp8fp4_tuned_fmoe.csv — could you rebase onto the latest main and resolve it? CI checks are also pending. Thanks! |
|
Hi @Bernard-Liu — trying to help move this one forward. Here is why it's stuck and one thing I need you to decide. Why it's blocked: the branch is ~104 commits behind main with two What I found when I tried to rebase (locally only — I aborted and did NOT push): the net diff only shows the new The conflict is the same shape, different tuned values, e.g.
Which side to keep is a perf call — I can't make it for you. Also, since this PR is about dsv4 fp4 a4w4, the changes to the fp8fp4 files look like they might be accidentally included / stale? Please confirm:
The code itself looks fine to me — the only blocker is the ownership of these fp8fp4 tuning tables. Also: after the 6/29 dismiss, are you still planning changes, or is this version ready? If ready, I'll re-approve once it's rebased and CI is green (the MI35X shard-6 failure looked flaky — will rerun). |
|
No activity for 15 days, so this is now labelled |
|
Closing due to inactivity: no pushes, reviews, or comments for 88 days. This is housekeeping, not a judgement on the change — if you want to continue this work, comment here and we'll reopen, or open a fresh PR rebased on the latest main. |
Motivation
add tuned config for dsv4 a4w4