[CUDA] Add Triton Q4_K-to-FP8 prefill linear - #22192
Open
Gasoonjia wants to merge 1 commit into
Open
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/22192
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Gasoonjia
force-pushed
the
codex/stack-q4k-fp8-prefill
branch
from
August 26, 2026 21:56
0088e51 to
d11d0c6
Compare
Gasoonjia
changed the base branch from
codex/stack-online-splitk-tuning
to
codex/stack-d113-persistent-splitk
August 26, 2026 21:56
Gasoonjia
force-pushed
the
codex/stack-d113-persistent-splitk
branch
from
August 26, 2026 22:50
b8ef410 to
8c9f0cc
Compare
Gasoonjia
force-pushed
the
codex/stack-q4k-fp8-prefill
branch
from
August 26, 2026 22:50
d11d0c6 to
28a5119
Compare
Gasoonjia
force-pushed
the
codex/stack-d113-persistent-splitk
branch
from
August 26, 2026 23:03
8c9f0cc to
cfd96e1
Compare
Gasoonjia
force-pushed
the
codex/stack-q4k-fp8-prefill
branch
from
August 26, 2026 23:03
28a5119 to
37690cd
Compare
Add an SM90+ Triton path that dequantizes Q4_K weights directly to FP8 and feeds FP8 matrix multiplication during prefill. Extend the AOT slim dtype shims for float8 and make export-time dispatch select the CUDA target while tracing CPU example tensors.
Gasoonjia
force-pushed
the
codex/stack-q4k-fp8-prefill
branch
from
August 26, 2026 23:39
37690cd to
5bc221a
Compare
Gasoonjia
force-pushed
the
codex/stack-d113-persistent-splitk
branch
from
August 26, 2026 23:39
cfd96e1 to
3ef87d1
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.
Stack dependency
Depends on #22190.
Summary
Add an SM90+ pure-Triton Q4_K-to-FP8 prefill linear path.
This change remains Triton-only and does not introduce CUDA or CuteDSL kernels.
Operator-level performance
RTX 5090, representative Muse MLP projection (
N=39,936,K=6,656), Q4_K dequantization plus linear:Test plan
lintrunner init && lintrunner -a(clean).triton.q4k_fp8_linear.git diff --check.