[PR #2658] [CLOSED] artifact: read an all-zero attention.compress_ratios as absent #4196

Closed
opened 2026-11-07 15:33:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2658
Author: @VLOD-ZDOV
Created: 10/15/2026
Status: ❌ Closed

Base: main ← Head: fix-zero-compress-ratios


📝 Commits (1)

  • cc1ef68 artifact: read an all-zero attention.compress_ratios as absent

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 include/strata/artifact/gguf_reader.hpp (+6 -1)

📄 Description

Title

artifact: read an all-zero attention.compress_ratios as absent

Summary

Some re-quantized finetunes of Qwen3.8-Flash-Next write qwen4exp.attention.compress_ratios with every entry 0
(the original files have 4 on each full-attention layer). Since the geometry check in 0.1.44, such a file stops the
engine at start:

qwen4exp.attention.compress_ratios[3] = 0, but full_attention_interval = 4 makes layer 3 full attention

An array of zeros names no layer, so it is now read as if the key were missing, and the compiled pooling block
stays. Any other value is checked as before.

What changed

  • include/strata/artifact/gguf_reader.hpp, read_geometry: an all-zero attention.compress_ratios is skipped.
    A missing key, a valid list and every malformed list (wrong length, a non-zero entry on a linear layer, mixed
    blocks) take the same path as before.

Extra Notes

How it was checked (CUDA build only):

  • A community finetune GGUF with all-zero ratios: refused at start before, starts and answers correctly after (on a
    branch with the MXFP4 experts of #1724, which that file also needs; on main alone it now gets past the geometry
    check and stops at the MXFP4 expert check, as expected).
  • Unsloth's UD-Q3_K_XL (valid ratios): starts and answers the same way.

Not tested: HIP and SYCL builds (the change is in a header the CPU code reads, no device code).

🤖 Generated with Claude Code


🔄 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/2658 **Author:** [@VLOD-ZDOV](https://github.com/VLOD-ZDOV) **Created:** 10/15/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-zero-compress-ratios` --- ### 📝 Commits (1) - [`cc1ef68`](https://github.com/Niko1221/Strata/commit/cc1ef688c0ea82658cf7a8a97189e63b54aa1f30) artifact: read an all-zero attention.compress_ratios as absent ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `include/strata/artifact/gguf_reader.hpp` (+6 -1) </details> ### 📄 Description ## Title artifact: read an all-zero `attention.compress_ratios` as absent ## Summary Some re-quantized finetunes of Qwen3.8-Flash-Next write `qwen4exp.attention.compress_ratios` with every entry 0 (the original files have 4 on each full-attention layer). Since the geometry check in 0.1.44, such a file stops the engine at start: ``` qwen4exp.attention.compress_ratios[3] = 0, but full_attention_interval = 4 makes layer 3 full attention ``` An array of zeros names no layer, so it is now read as if the key were missing, and the compiled pooling block stays. Any other value is checked as before. ## What changed - `include/strata/artifact/gguf_reader.hpp`, `read_geometry`: an all-zero `attention.compress_ratios` is skipped. A missing key, a valid list and every malformed list (wrong length, a non-zero entry on a linear layer, mixed blocks) take the same path as before. ## Extra Notes How it was checked (CUDA build only): - A community finetune GGUF with all-zero ratios: refused at start before, starts and answers correctly after (on a branch with the MXFP4 experts of #1724, which that file also needs; on `main` alone it now gets past the geometry check and stops at the MXFP4 expert check, as expected). - Unsloth's UD-Q3_K_XL (valid ratios): starts and answers the same way. Not tested: HIP and SYCL builds (the change is in a header the CPU code reads, no device code). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:33:57 +07:00
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#4196
No description provided.