[PR #3679] [Engine] Q4_K joins the expert down formats (Ornith-1.5-35B's 20 Q4_K down projections) #4746

Open
opened 2026-11-07 15:38:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3679
Author: @yang478
Created: 10/22/2026
Status: 🔄 Open

Base: main ← Head: pr/engine-q4k-expert-down


📝 Commits (1)

  • b052d46 kernels: Q4_K joins the expert down formats (Ornith-1.5-35B's 20 Q4_K down projections)

📊 Changes

1 file changed (+4 additions, -3 deletions)

View changed files

📝 src/kernels/cuda/iq_kernels.cu (+4 -3)

📄 Description

Area: [Engine]

Problem and result

STRATA_D_FMTS — the weight formats the native expert down-projection GEMM instantiates — lists Q5_K and Q6_K (fmt 13/14, for Qwen3.6-35B-A3B) but not Q4_K (fmt 12), although the gate/up and MMVQ lists already carry 12. Ornith-1.5-35B-A3B carries a Q4_K down projection on 20 of its 41 layers, so the engine refused to run the model's GGUF. With this PR fmt 12 joins the down list in both #ifdef STRATA_Q6K_EXPERTS arms, and the model runs: measured in companion PR #3677.

none

Approach

src/kernels/cuda/iq_kernels.cu: X(12) added to both STRATA_D_FMTS arms and the comment above the list updated (Q4_K / Q5_K / Q6_K downs). Qwen3.6-35B-A3B and Flash-Next selections are unchanged; the SYCL file keeps its list as-is (it does not carry 13/14 either — the SYCL engine's native down list is a subset and this follows the existing precedent).

The diff is 1 file, +4/-3, based on main 011c9e6.

Validation

Hardware: NVIDIA GeForce RTX 4070 Ti 12,282 MiB (driver 617.14), 13th Gen Intel Core i7-13700K, 64 GB RAM, Windows 11 (10.0.26200); CUDA 12.8, sm_89.

  • Passed: this hunk (same two lines, pre-rebase tree 266e787) is what let Ornith-1.5-35B-A3B Q4_K_M load and run the measured day behind benchmark PR #3677 — 150K/180K fresh prompts, needle retrieval 10/10, and strata smoke on the same tree.
  • Passed: cold build of the rebased branch with the KV-cache companion PR applied (#3678 has the exact commands) — 158/158 ninja steps, links and runs.
  • Not run: the HIP build of this file (no AMD toolchain here). Draft until that and the build above are settled.

Limits

Native-path only: formats outside the list fall back as before. No claim about other models' Q4_K mixes beyond this model's measured run.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3679 **Author:** [@yang478](https://github.com/yang478) **Created:** 10/22/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `pr/engine-q4k-expert-down` --- ### 📝 Commits (1) - [`b052d46`](https://github.com/Niko1221/Strata/commit/b052d46d7b572090128fa177048e665109e6877d) kernels: Q4_K joins the expert down formats (Ornith-1.5-35B's 20 Q4_K down projections) ### 📊 Changes **1 file changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/kernels/cuda/iq_kernels.cu` (+4 -3) </details> ### 📄 Description **Area:** [Engine] ## Problem and result `STRATA_D_FMTS` — the weight formats the native expert down-projection GEMM instantiates — lists Q5_K and Q6_K (fmt 13/14, for Qwen3.6-35B-A3B) but not Q4_K (fmt 12), although the gate/up and MMVQ lists already carry 12. Ornith-1.5-35B-A3B carries a Q4_K down projection on 20 of its 41 layers, so the engine refused to run the model's GGUF. With this PR fmt 12 joins the down list in both `#ifdef STRATA_Q6K_EXPERTS` arms, and the model runs: measured in companion PR #3677. ## Related discussion none ## Approach `src/kernels/cuda/iq_kernels.cu`: `X(12)` added to both `STRATA_D_FMTS` arms and the comment above the list updated (Q4_K / Q5_K / Q6_K downs). Qwen3.6-35B-A3B and Flash-Next selections are unchanged; the SYCL file keeps its list as-is (it does not carry 13/14 either — the SYCL engine's native down list is a subset and this follows the existing precedent). The diff is 1 file, +4/-3, based on main `011c9e6`. ## Validation Hardware: NVIDIA GeForce RTX 4070 Ti 12,282 MiB (driver 617.14), 13th Gen Intel Core i7-13700K, 64 GB RAM, Windows 11 (10.0.26200); CUDA 12.8, sm_89. - **Passed:** this hunk (same two lines, pre-rebase tree `266e787`) is what let Ornith-1.5-35B-A3B Q4_K_M load and run the measured day behind benchmark PR #3677 — 150K/180K fresh prompts, needle retrieval 10/10, and `strata smoke` on the same tree. - **Passed:** cold build of the rebased branch with the KV-cache companion PR applied (#3678 has the exact commands) — 158/158 ninja steps, links and runs. - **Not run:** the HIP build of this file (no AMD toolchain here). Draft until that and the build above are settled. ## Limits Native-path only: formats outside the list fall back as before. No claim about other models' Q4_K mixes beyond this model's measured run. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4746
No description provided.