feat(ggml): add ROCmFPX quant support for DS4#36
Closed
davide221 wants to merge 7 commits into
Closed
Conversation
Adds ds4-hc kernels (pre/post/out modes) used by the opt-in DFLASH_DS4_FUSED_DECODE single-graph decode path on DeepSeek V4 Flash. The fn/fn_out matvecs stay on ggml mul_mat; the op fuses sigmoid gates, sinkhorn normalization and stream mixing. CPU fallback included; the op is inert unless emitted by the server.
b8390df to
7c3a6cb
Compare
The generic sinkhorn's runtime-bound loops forced its c[] matrix into scratch (private, VRAM-backed) memory, so the serial thread-0 sinkhorn cost ~97us per launch (measured on gfx1151; 86 launches per decoded token ~ 8ms/token). A fully-unrolled template<NHC=4> variant keeps c[] in registers: 5.3us per launch. Also grid over n_embd instead of a single block and stage mix/base through shared memory. DS4-Flash fused decode on Strix gfx1151: 19.1 -> 23.0 tok/s.
Author
|
Superseded by Luce-Org/lucebox-hub#502, which ports this ROCmFPX ggml work into the hub's vendored |
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
Used By
Verification
Notes