Skip to content

[Engine] cuda: enable IQ2_XXS/IQ2_XS/IQ2_S (16/17/22) in STRATA_D_FMTS - #479

Closed
cobra91 wants to merge 1 commit into
simplexai-labs:mainfrom
cobra91:fix/iq2-xs-d-fmts
Closed

cobra91 wants to merge 1 commit into
simplexai-labs:mainfrom
cobra91:fix/iq2-xs-d-fmts

Conversation

@cobra91

@cobra91 cobra91 commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Port of Niko1221/Strata#7896: add X(16), X(17), and X(22) (IQ2_XXS, IQ2_XS, IQ2_S) to STRATA_D_FMTS in engine/src/kernels/cuda/iq_kernels.cu.

Without these types in STRATA_D_FMTS, loading Unsloth Qwen4-35B-A3B-UD-IQ2_XS (which mixes IQ2_XS/IQ2_S down projections) on CUDA fails because STRATA_DOWN / STRATA_QK do not instantiate those down-projection formats, even though STRATA_MMVQ_FMTS already lists 16, 17, 22.

Verification (Windows 11, CUDA 13, v0.2.20-poly.10 / df2c3ff30, Qwen4-35B-A3B-UD-IQ2_XS, MTP --spec 4, --kv q4_0)

  • RTX 5080 16 GB (sm_120, 100% VRAM 10,240/10,240 experts):
    • Chat decode: 260.9 tok/s
    • Agent decode: 255.5 tok/s
    • 4K / 16K prefill: 4,077.9 / 5,842.2 tok/s
  • RTX 4060 Ti 16 GB (sm_89, 100% VRAM 10,240/10,240 experts):
    • Chat decode: 122.4 tok/s
    • Agent decode: 115.9 tok/s
    • 4K / 16K prefill: 1,620.0 / 2,044.9 tok/s

@VecSzn

VecSzn commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Thank you for the PR! We are closing this because it modifies upstream engine/src/kernels/cuda/iq_kernels.cu (STRATA_D_FMTS), which strata-poly does not call (it uses STRATA_MMVQ_FMTS/mmq). Changes to upstream strata core kernels belong in Niko1221/Strata and will arrive automatically in our next upstream sync.

@VecSzn VecSzn closed this Dec 5, 2026
@cobra91

cobra91 commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Makes sense, thanks for clarifying @VecSzn!

One quick suggestion to save you and contributors from duplicate PRs like #479 and #482:

  • README.md currently lists Qwen4-35B-A3B as running on strata-poly (--family qwen4, Windows/Linux CUDA & HIP), which makes it look like Qwen4 CUDA PRs belong here.
  • .github/CONTRIBUTING.md doesn't yet document which engine files/models are strata-poly custom (PRs here) vs pure upstream Niko1221/Strata (verify.cpp, qsa_decode_attn.cu, STRATA_D_FMTS, etc. -> PR upstream).

Clarifying that split in CONTRIBUTING.md / README.md would prevent a lot of misrouted issues and PRs!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants