mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3085] [CLOSED] [Engine] Enable IQ prefill path on sm_75 (RTX 20-series / Turing) #4445
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4445
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3085
Author: @dd777mine
Created: 10/18/2026
Status: ❌ Closed
Base:
main← Head:fix/moe-iq-prefill-sm75-gate📝 Commits (2)
35e5c7bfix(cuda): Unblock Fused MoE IQ prefill gate on sm_75 (Turing)bb32d9ffix(cuda): include d.t75 in native_supported to unblock single env var activation📊 Changes
1 file changed (+27 additions, -9 deletions)
View changed files
📝
src/prefill/moe_fused_iq.cu(+27 -9)📄 Description
Problem and result:
On Turing (sm_75, e.g. RTX 2060), moe_fused_iq.cu was bailing out early under the assumption that codebook formats do not fit 64 KB of shared memory at 4 warps a row. However, with ASTAGES_DEV=2, IQ3_S blocks require ~58.8 KB (cleanly fitting the 64 KB ceiling), and IQ2_S / IQ2_XS fit at 2 warps (~43.5 KB).
This PR adjusts the sm_75 gate so Turing GPUs can use the native fused MoE prefill path instead of falling back to CPU dequantization and host synchronization.
Approach:
One file: src/prefill/moe_fused_iq.cu
Fully opt-in: activates with either STRATA_PF_FUSED=1 or STRATA_PF_FUSED_SM75=1. Non-Turing (sm_80+) and HIP builds remain byte-identical.
Validation:
Passed:
Failed:
None observed.
Not run:
Non-CUDA backends (HIP/Metal) - this is a CUDA sm_75 specific gate.
Limits:
Turing sm_75 only. Codebook formats run with ASTAGES_DEV=2 to stay within 64 KB shared memory.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.