You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Track generic CUDA kernels under qwen36 filenames #112
PR #111 intentionally keeps using the existing historical qwen36-named CUDA helpers from non-Qwen3.6 frontends, for example bf16_matmul_qwen36_bf16 and qwen36_embedding_lookup_bf16 from Qwen3 / Qwen3-VL / Higgs paths.
This works today but the file/symbol names no longer describe the actual ownership: some helpers are generic BF16 matmul / embedding utilities, while qwen36-specific kernels live beside them. Renaming during PR #111 would expand review and regression risk, so track it separately.
Suggested follow-up:
Introduce neutral kernel files/symbol aliases for generic helpers, e.g. bf16_matmul_* and embedding_lookup_*.
Keep qwen36 compatibility bindings during migration.
That PR introduces neutral kernel files/symbols for the generic helpers and migrates the non-Qwen3.6 call sites, exactly as suggested here:
Neutral bf16_matmul_bf16 (csrc/kernels/bf16_matmul_bf16.{cu,cuh}) and embedding_lookup_bf16 (csrc/kernels/embedding_lookup_bf16.{cu,cuh}). bf16_matmul_cublaslt_bf16 (already a neutral symbol) moved alongside them.
Legacy names (bf16_matmul_qwen36_bf16, qwen36_embedding_lookup_bf16) kept as thin forwarding wrappers; no Python binding removed.
Non-Qwen3.6 call sites (Qwen3, Qwen3-VL, Qwen3-VL FP8 SM89, GROOT N1.7) migrated to the neutral names; Qwen3.6 call sites keep the legacy names for auditability; Higgs docstrings updated.
Model-specific Qwen3.6 linear-attention kernels (AB96, MTP, gated-deltanet, etc.) stay under their qwen36-named files.
Side benefit: the Qwen3-VL dedicated module no longer compiles the Qwen3.6 matmul translation unit just to get one cuBLASLt wrapper.
Refactor-only — no kernel algorithm, dtype, dispatch, or runtime behavior change. Verified on SM89/RTX 4090: clean build of all three modules, binding-name regression test, an embedding CUDA equivalence check (bit-identical), and the Qwen3-VL-2B multimodal smoke matching the pre-cleanup baseline (prefill/decode cos_vs_eager=1.0).
Activity
heiheiha798 commentedon Jun 27, 2026
Resolved in #117.
That PR introduces neutral kernel files/symbols for the generic helpers and migrates the non-Qwen3.6 call sites, exactly as suggested here:
bf16_matmul_bf16(csrc/kernels/bf16_matmul_bf16.{cu,cuh}) andembedding_lookup_bf16(csrc/kernels/embedding_lookup_bf16.{cu,cuh}).bf16_matmul_cublaslt_bf16(already a neutral symbol) moved alongside them.bf16_matmul_qwen36_bf16,qwen36_embedding_lookup_bf16) kept as thin forwarding wrappers; no Python binding removed.Side benefit: the Qwen3-VL dedicated module no longer compiles the Qwen3.6 matmul translation unit just to get one cuBLASLt wrapper.
Refactor-only — no kernel algorithm, dtype, dispatch, or runtime behavior change. Verified on SM89/RTX 4090: clean build of all three modules, binding-name regression test, an embedding CUDA equivalence check (bit-identical), and the Qwen3-VL-2B multimodal smoke matching the pre-cleanup baseline (prefill/decode
cos_vs_eager=1.0).test(kernels): baseline binding-name net for generic-helper cleanup (#…
refactor(kernels): neutral bf16_matmul_bf16 ownership (#112)
build(qwen3-vl): drop Qwen3.6 matmul TU from the VL module (#112)
refactor(kernels): neutral embedding_lookup_bf16 ownership (#112)
docs(kernels): point non-Qwen3.6 refs at neutral helper names (#112)
docs(build): update stale cuBLASLt link comment for VL module (#112)
build: add opt-in FLASHRT_SLIM_BUILD to trim VLA-deployment kernel co…