Skip to content

feat(GFX1100-TG200): T25 keep ssm_out as Q5_K with runtime input permutation #2806

Description

@ghazni101

Row: `GFX1100-TG200`

T25 keeps the SSM output projection as Q5_K and adds a runtime V-head permutation kernel (`PermuteVHeadsKernelRocm`). The permutation reorders V-heads from grouped (krpk+r) to tiled (rnum_k+k) order before the K-quant GEMV, enabling the keep-quant path to avoid a dequantize-requantize round trip on the output projection.

Adds `kPermuteVHeads` op, `PermuteVHeads` dispatch function, and the ROCm kernel. Restores `kCastF16`/`CastF16`/`CastF16KernelRocm` that were lost during cherry-pick auto-merge resolution.

Depends on #2782 (F1), #2790 (T4a), #2792 (lever-C), #2796 (T27), #2800 (T24), and #2804 (T21).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions