[GH-ISSUE #3738] [Engine] RFC: Extend NVFP4-QAD support to qwen35moe (Qwen 3.6 35B-A3B) #1566

Closed
opened 2026-11-04 01:52:17 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @caioBB on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3738

Problem: The qwen35moe engine path and the NVFP4-QAD conversion pipeline (nvfp4_convert.py, iq_pack.py) both exist in Strata, but the NVFP4-QAD packaging step does not include support for the Qwen 3.6 35B-A3B (qwen35moe) architecture. This leaves a gap: users with RTX 50-series Blackwell GPUs cannot leverage native FP4 Tensor Cores on this model, and are instead forced to use the slower UD-Q4_K_XL running through Strata’s native path (~26–27 t/s). The concrete user need is to unlock NVFP4-native execution for this MoE architecture so that more expert weights fit in VRAM, shifting the bottleneck from PCIe/DDR5 bandwidth to Blackwell FP4 compute throughput.

The current workaround is running qwen36-UD-Q4_K_XL via the baseline path at ~26–27 t/s on 12GB VRAM, with expert weights continuously paged from host RAM during generation. This is functional but underutilizes available hardware capability.

Environment:

  • Strata commit/version: latest main (as of submission)
  • OS: Windows 11
  • GPU: NVIDIA RTX 5070, 12GB VRAM (Blackwell architecture)
  • System RAM: 32GB DDR5
  • Model: qwen36-UD-Q4_K_XL (Qwen 3.6 35B-A3B, ~35B total / ~3B active params MoE)
  • Inference path: qwen35 engine via Strata
  • Context length: 32k

Reproduce: Load qwen36-UD-Q4_K_XL baseline in Strata using the qwen35 inference path with default offloading settings; observe sustained token generation speed and VRAM/PCIe memory profile.

Expected: With an NVFP4-QAD conversion available for this architecture, the model would execute via native FP4 Tensor Cores on Blackwell hardware, reducing per-weight footprint from ~0.5 bytes (Q4_K_XL) to ~0.25 bytes. This should allow a larger fraction of experts to remain VRAM-resident and shift the bottleneck from memory bandwidth to compute throughput.

Evidence:

  • Benchmark profile in Strata (calibrated with "Long prompts and coding" workload): sustained 44.3 t/s under optimal conditions; real-world observed range is 26–36 t/s at 32k context. Current preset saved as "UD-Q4_K_XL 32K – Work"; marked as fastest available configuration — no further tuning improvements were found.
  • The Strata codebase already contains nvfp4_convert.py, iq_pack.py, and a working qwen35 engine inference path with MoE expert routing. Not sure if kernel or routing modifications are required — or only the packaging/registration step for this model variant.
  • RTX 5070 Blackwell FP4 Tensor Cores are physically present and underutilized by the current baseline dequant path.

Approach / Proposed Solution:

  1. Register qwen35moe (Qwen 3.6 35B-A3B) in the NVFP4-QAD architecture support matrix within nvfp4_convert.py.
  2. Verify that weight layout and MoE routing conventions are structurally compatible with the existing pipeline (early review of the model suggests they are — same MoE structure as currently supported architectures).
  3. Initial code review suggests the change may be limited to registration/packaging, but this needs to be confirmed by an actual conversion and verification run.

Why This Matters:

  • Infrastructure reuse: The tools and engine path already exist. The missing step appears to be architectural registration, subject to confirmation by an actual conversion run.
  • Forward compatibility: The same MoE patterns carry into upcoming Qwen architectures (Qwen 4 family). Supporting this architecture establishes a reusable pipeline for successor models.
  • Consumer GPU impact: A significant portion of Strata users operate on 12GB/16GB VRAM cards where memory footprint reduction has the highest ROI. Halving per-weight size directly translates to more experts in VRAM and better token throughput.

Limits: On a 12GB VRAM card, some host-device transfers will still be necessary depending on context length and expert routing distribution. Actual performance gains depend on the proportion of experts that fit in VRAM post-conversion and PCIe transfer overlap.

Note on AI-assisted contribution:
As permitted by CONTRIBUTING.md, this issue was drafted locally by the Qwen 3.6 35B-A3B model running on the hardware described above. Specific data verified and provided, even if the RFC is not very clear.

Originally created by @caioBB on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3738 Problem: The `qwen35moe` engine path and the NVFP4-QAD conversion pipeline (`nvfp4_convert.py`, `iq_pack.py`) both exist in Strata, but the NVFP4-QAD packaging step does not include support for the Qwen 3.6 35B-A3B (qwen35moe) architecture. This leaves a gap: users with RTX 50-series Blackwell GPUs cannot leverage native FP4 Tensor Cores on this model, and are instead forced to use the slower UD-Q4_K_XL running through Strata’s native path (~26–27 t/s). The concrete user need is to unlock NVFP4-native execution for this MoE architecture so that more expert weights fit in VRAM, shifting the bottleneck from PCIe/DDR5 bandwidth to Blackwell FP4 compute throughput. The current workaround is running `qwen36-UD-Q4_K_XL` via the baseline path at ~26–27 t/s on 12GB VRAM, with expert weights continuously paged from host RAM during generation. This is functional but underutilizes available hardware capability. Environment: - Strata commit/version: latest main (as of submission) - OS: Windows 11 - GPU: NVIDIA RTX 5070, 12GB VRAM (Blackwell architecture) - System RAM: 32GB DDR5 - Model: qwen36-UD-Q4_K_XL (Qwen 3.6 35B-A3B, ~35B total / ~3B active params MoE) - Inference path: `qwen35` engine via Strata - Context length: 32k Reproduce: Load `qwen36-UD-Q4_K_XL baseline ` in Strata using the `qwen35` inference path with default offloading settings; observe sustained token generation speed and VRAM/PCIe memory profile. Expected: With an NVFP4-QAD conversion available for this architecture, the model would execute via native FP4 Tensor Cores on Blackwell hardware, reducing per-weight footprint from ~0.5 bytes (Q4_K_XL) to ~0.25 bytes. This should allow a larger fraction of experts to remain VRAM-resident and shift the bottleneck from memory bandwidth to compute throughput. Evidence: - Benchmark profile in Strata (calibrated with "Long prompts and coding" workload): sustained 44.3 t/s under optimal conditions; real-world observed range is 26–36 t/s at 32k context. Current preset saved as "UD-Q4_K_XL 32K – Work"; marked as fastest available configuration — no further tuning improvements were found. - The Strata codebase already contains `nvfp4_convert.py`, `iq_pack.py`, and a working `qwen35` engine inference path with MoE expert routing. Not sure if kernel or routing modifications are required — or only the packaging/registration step for this model variant. - RTX 5070 Blackwell FP4 Tensor Cores are physically present and underutilized by the current baseline dequant path. Approach / Proposed Solution: 1. Register `qwen35moe` (Qwen 3.6 35B-A3B) in the NVFP4-QAD architecture support matrix within `nvfp4_convert.py`. 2. Verify that weight layout and MoE routing conventions are structurally compatible with the existing pipeline (early review of the model suggests they are — same MoE structure as currently supported architectures). 3. Initial code review suggests the change may be limited to registration/packaging, but this needs to be confirmed by an actual conversion and verification run. Why This Matters: - Infrastructure reuse: The tools and engine path already exist. The missing step appears to be architectural registration, subject to confirmation by an actual conversion run. - Forward compatibility: The same MoE patterns carry into upcoming Qwen architectures (Qwen 4 family). Supporting this architecture establishes a reusable pipeline for successor models. - Consumer GPU impact: A significant portion of Strata users operate on 12GB/16GB VRAM cards where memory footprint reduction has the highest ROI. Halving per-weight size directly translates to more experts in VRAM and better token throughput. Limits: On a 12GB VRAM card, some host-device transfers will still be necessary depending on context length and expert routing distribution. Actual performance gains depend on the proportion of experts that fit in VRAM post-conversion and PCIe transfer overlap. Note on AI-assisted contribution: As permitted by CONTRIBUTING.md, this issue was drafted locally by the Qwen 3.6 35B-A3B model running on the hardware described above. Specific data verified and provided, even if the RFC is not very clear.
Author
Owner

@caioBB commented on GitHub (Oct 22, 2026):

I think it is not clear enought so here is my honest simplified version. My english is kinda bad, so i am going to explain in simple words so anyone interested can still understand what i wanted to say:

  • Qwen3.8-Flash-Next has a NVFP4 version compatible with Strata being distributed by Strata.
  • Qwen3.6 35B A3B does not.
  • Switching from Qwen3.6... UD-Q4_K_XL to NVFP4 in strata would make ppl with limited bandwith and modern RTX cards being able to run it faster by reducing offloading and using hardware acceleration (QAD-QAT version would be good aswell).
  • I would like to and ask for someone if it is possible being polite and using some data, but not in the pushing tone, but it seems like it is more difficult than i tought.

Thanks for reading this.

<!-- gh-comment-id:6346286668 --> @caioBB commented on GitHub (Oct 22, 2026): I think it is not clear enought so here is my honest simplified version. My english is kinda bad, so i am going to explain in simple words so anyone interested can still understand what i wanted to say: - Qwen3.8-Flash-Next has a NVFP4 version compatible with Strata being distributed by Strata. - Qwen3.6 35B A3B does not. - Switching from Qwen3.6... UD-Q4_K_XL to NVFP4 in strata would make ppl with limited bandwith and modern RTX cards being able to run it faster by reducing offloading and using hardware acceleration (QAD-QAT version would be good aswell). - I would like to and ask for someone if it is possible being polite and using some data, but not in the pushing tone, but it seems like it is more difficult than i tought. Thanks for reading this.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6659674081 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#1566
No description provided.