[FlyDSL] Add FP4 LiteTopK prefill operator - #5309
Draft
AMD-yanfeiwang wants to merge 1 commit into
Draft
AMD-yanfeiwang wants to merge 1 commit into
AMD-yanfeiwang wants to merge 1 commit into
Conversation
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
PR title tags & labels: |
AMD-yanfeiwang
force-pushed
the
perf/fp4-mqa-litetopk
branch
8 times, most recently
from
September 8, 2026 07:05
56561d0 to
17ae735
Compare
AMD-yanfeiwang
force-pushed
the
perf/fp4-mqa-litetopk
branch
from
September 9, 2026 06:39
17ae735 to
3b895a2
Compare
AMD-yanfeiwang
force-pushed
the
perf/fp4-mqa-litetopk
branch
from
September 9, 2026 11:50
3b895a2 to
0ca93f1
Compare
AMD-yanfeiwang
force-pushed
the
perf/fp4-mqa-litetopk
branch
from
September 9, 2026 12:57
0ca93f1 to
63dc3c0
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add a
gfx950FP4 LiteTopK path for DeepSeek-V4 paged-MQA prefill without materializing the dense[Q, S]score matrix.The API is qualified for the released V4-Flash and V4-Pro contracts.
Q=8192is the shared benchmark workload; H/D/K come from each model config.raw / 4)raw / 4)Implementation
(512, 1024)and reject other values.Validation
MI355X (
gfx950), ROCm 7.2.4. These are operator benchmarks over deterministic tensors with the released model shapes, not full-model E2E runs. Each point is the median of three fresh processes; each process uses 5 warmup and 15 measured alternating dense/LiteTopK pairs. Exact TopK sets are checked outside timing.29 passed, 1 skipped; the two-GPU non-current-device case passes separately.git diff --check: pass.References