[GH-ISSUE #4354] [Engine] Q6_K grouped-expert dispatch compatibility in DeepSeek (source-inspected gap) #1925

Closed
opened 2026-11-04 01:55:21 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @moniljo on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4354

Area

[Engine] (speed, kernels, models, the server and API)

What do you want to do?

Would you accept a small, separate change completing Q6_K dispatch for the grouped DeepSeek expert path, with a targeted regression check? This is a source-confirmed gap, not an independently reproduced failure of the official runtime.

Runtime-effect status: unconfirmed static analysis, with combined custom-candidate validation below.

I inspected current main 5e8a4cca7d690ac60ca37eb09e7d0e010099ad6d (v0.2.7). In ds4_iq.cu, Q6 already has its type metadata, scalar decoder, dequantization and matvec cases. However, DS4_IQ_SWITCH at line 1102 omits Q6 and returns false for unsupported cases, while the prompt tiles' deq8<T> expansion at line 379 has no Q6 branch. The general supported-type check includes Q6. I am not claiming that all Q6 operations are unsupported.

What do you do today instead?

My custom exact Mix-256G recipe adds only these two related pieces:

  • A 13-line Q6_K branch in deq8<T>: unpack ql/qh and signed subscales, using the F16 scale at byte 208, to produce eight F32 values.
  • case kQ6_K: F(kQ6_K); break; in DS4_IQ_SWITCH. Adding dispatch alone would not supply the missing tile expansion.

The existing implementation is public at the pinned recipe's decoder hunk and dispatch hunk. A proposed upstream patch would exclude the larger performance bundle and the separate shared-prefix checkpoint change.

Actual validation and limits

A fresh minimal v0.2.7 build containing both Q6 hunks plus that checkpoint change, without the V6b performance features, produced executable 6b78b6ce264dbf790e01c14714f3e0df92668ea6e2fa3b2a793d43c8e1ac7c00 (BUILD receipt cbbbebc0153ab4106b2441da7b619f766a595000a8fae69ab96a0c447e70786e). On Windows/CUDA/SM120a, it passed 1,248 numeric cases across eight fresh owned fixture runs and three short coding smoke requests with 1,048,576-token capacity, natural EOS and native-zero cleanup. Numeric report SHA: e909ef4db3e4dbf57ad211414aceb555fb78d33bc623c7b1a54c36c397cc82ed.

Those are combined-candidate observations, not an isolated before/after regression, full-1M prompt benchmark, or validation of a future PR revision. The official binary was not model-loaded; HIP compilation/execution and other hardware remain untested. The recipe provenance and limitations retain the distinction.

Would you prefer a synthetic Q6-versus-independent-dequantization regression exercising the grouped entry points first, followed by a small draft PR with the missing backend checks identified? No default, weight or expert-count change is proposed.

Originally created by @moniljo on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4354 ### Area [Engine] (speed, kernels, models, the server and API) ### What do you want to do? Would you accept a small, separate change completing **Q6_K dispatch for the grouped DeepSeek expert path**, with a targeted regression check? This is a source-confirmed gap, **not an independently reproduced failure of the official runtime**. Runtime-effect status: **unconfirmed static analysis**, with combined custom-candidate validation below. I inspected current main `5e8a4cca7d690ac60ca37eb09e7d0e010099ad6d` (v0.2.7). In [`ds4_iq.cu`](https://github.com/Niko1221/Strata/blob/5e8a4cca7d690ac60ca37eb09e7d0e010099ad6d/src/dsv41/ds4_iq.cu), Q6 already has its type metadata, scalar decoder, dequantization and matvec cases. However, `DS4_IQ_SWITCH` at line 1102 omits Q6 and returns false for unsupported cases, while the prompt tiles' `deq8<T>` expansion at line 379 has no Q6 branch. The general supported-type check includes Q6. I am not claiming that all Q6 operations are unsupported. ### What do you do today instead? My custom exact Mix-256G recipe adds only these two related pieces: - A 13-line Q6_K branch in `deq8<T>`: unpack ql/qh and signed subscales, using the F16 scale at byte 208, to produce eight F32 values. - `case kQ6_K: F(kQ6_K); break;` in `DS4_IQ_SWITCH`. Adding dispatch alone would not supply the missing tile expansion. The existing implementation is public at the pinned recipe's [decoder hunk](https://github.com/moniljo/deepseek-uncensored-rtx6000/blob/5a26a9a2efc64e4fbcc5abf17c0d38299926c643/source/strata/src/dsv41/ds4_iq.cu#L482) and [dispatch hunk](https://github.com/moniljo/deepseek-uncensored-rtx6000/blob/5a26a9a2efc64e4fbcc5abf17c0d38299926c643/source/strata/src/dsv41/ds4_iq.cu#L1133). A proposed upstream patch would exclude the larger performance bundle and the separate shared-prefix checkpoint change. ### Actual validation and limits A fresh minimal v0.2.7 build containing **both Q6 hunks plus that checkpoint change**, without the V6b performance features, produced executable `6b78b6ce264dbf790e01c14714f3e0df92668ea6e2fa3b2a793d43c8e1ac7c00` (BUILD receipt `cbbbebc0153ab4106b2441da7b619f766a595000a8fae69ab96a0c447e70786e`). On Windows/CUDA/SM120a, it passed 1,248 numeric cases across eight fresh owned fixture runs and three short coding smoke requests with 1,048,576-token capacity, natural EOS and native-zero cleanup. Numeric report SHA: `e909ef4db3e4dbf57ad211414aceb555fb78d33bc623c7b1a54c36c397cc82ed`. Those are combined-candidate observations, not an isolated before/after regression, full-1M prompt benchmark, or validation of a future PR revision. The official binary was not model-loaded; HIP compilation/execution and other hardware remain untested. The [recipe provenance and limitations](https://github.com/moniljo/deepseek-uncensored-rtx6000/blob/5a26a9a2efc64e4fbcc5abf17c0d38299926c643/docs/update-027.md) retain the distinction. Would you prefer a synthetic Q6-versus-independent-dequantization regression exercising the grouped entry points first, followed by a small draft PR with the missing backend checks identified? No default, weight or expert-count change is proposed.
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:6660297171 --> @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#1925
No description provided.