[PR #67] [MERGED] Support OrcaRouter IQ3_XXS with explicit BF16 compatibility packing #2441

Closed
opened 2026-11-04 02:00:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/67
Author: @acrogenesis
Created: 9/28/2026
Status: ✅ Merged
Merged: 9/28/2026
Merged by: @Niko1221

Base: main ← Head: acrogenesis/orca-iq3-compat


📝 Commits (2)

  • 370ab12 Support Orca IQ3_XXS with explicit BF16 compatibility packing
  • 5de0911 Merge upstream Strata 0.1.18 while preserving Orca compatibility

📊 Changes

5 files changed (+324 additions, -11 deletions)

View changed files

📝 README.md (+3 -0)
➕ docs/ORCA.md (+95 -0)
📝 src/core/native_dense.cpp (+7 -4)
📝 tools/iq_pack.py (+74 -7)
➕ tools/test_iq_pack.py (+145 -0)

📄 Description

OrcaRouter's Qwen3.8 Flash Next Uncensored IQ3_XXS has the supported Qwen4Exp geometry, but quantizes small projections that Strata expects as BF16. This adds an explicit tools/iq_pack.py --compat-bf16 workflow so that checkpoint can run with its own tokenizer and packed weights.

  • Dequantize only the required small projections and round to BF16 using nearest-even. Record the converted tensors in compat-bf16.json; leave expert weights, native attention weights, embeddings, and the disk-backed PLE table unchanged.
  • Preserve a converted BF16 PLE key in the native loader; keep the existing native Q2_0 key path.
  • Keep Hugging Face snapshot shard names when following symlinks, and reject missing shards, truncated tensors, and duplicate tensor names.
  • Add focused packing tests and manual setup documentation. The installer menu is unchanged; IQ3_XXS is the validated Orca quantization. Conversion adds BF16 rounding and does not restore the original checkpoint's precision.

Validation on Linux with an RTX 5090, Ryzen 9 9950X3D, and 128 GB RAM:

  • Release CUDA build for sm_120; all 8 packing tests and 23 server tests pass.
  • GPU sampler, gated-residual, and KV-streaming parity checks pass.
  • Packed the complete two-shard model: 460 converted tensors, 1.39 GiB of converted BF16 weights.
  • Real inference completed all 12 throughput requests, including three with 261,880 input tokens and 256 output tokens in a 262,144-token window, without truncation or prompt reuse.

Benchmark write-up and raw measurements.


🔄 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/67 **Author:** [@acrogenesis](https://github.com/acrogenesis) **Created:** 9/28/2026 **Status:** ✅ Merged **Merged:** 9/28/2026 **Merged by:** [@Niko1221](https://github.com/Niko1221) **Base:** `main` ← **Head:** `acrogenesis/orca-iq3-compat` --- ### 📝 Commits (2) - [`370ab12`](https://github.com/Niko1221/Strata/commit/370ab122289ff6d85ffbad619776028754e970ad) Support Orca IQ3_XXS with explicit BF16 compatibility packing - [`5de0911`](https://github.com/Niko1221/Strata/commit/5de09114dac0160a061628100524a5ac75a9314e) Merge upstream Strata 0.1.18 while preserving Orca compatibility ### 📊 Changes **5 files changed** (+324 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+3 -0) ➕ `docs/ORCA.md` (+95 -0) 📝 `src/core/native_dense.cpp` (+7 -4) 📝 `tools/iq_pack.py` (+74 -7) ➕ `tools/test_iq_pack.py` (+145 -0) </details> ### 📄 Description OrcaRouter's Qwen3.8 Flash Next Uncensored IQ3_XXS has the supported Qwen4Exp geometry, but quantizes small projections that Strata expects as BF16. This adds an explicit `tools/iq_pack.py --compat-bf16` workflow so that checkpoint can run with its own tokenizer and packed weights. - Dequantize only the required small projections and round to BF16 using nearest-even. Record the converted tensors in `compat-bf16.json`; leave expert weights, native attention weights, embeddings, and the disk-backed PLE table unchanged. - Preserve a converted BF16 PLE key in the native loader; keep the existing native Q2_0 key path. - Keep Hugging Face snapshot shard names when following symlinks, and reject missing shards, truncated tensors, and duplicate tensor names. - Add focused packing tests and manual setup documentation. The installer menu is unchanged; IQ3_XXS is the validated Orca quantization. Conversion adds BF16 rounding and does not restore the original checkpoint's precision. Validation on Linux with an RTX 5090, Ryzen 9 9950X3D, and 128 GB RAM: - Release CUDA build for sm_120; all 8 packing tests and 23 server tests pass. - GPU sampler, gated-residual, and KV-streaming parity checks pass. - Packed the complete two-shard model: 460 converted tensors, 1.39 GiB of converted BF16 weights. - Real inference completed all 12 throughput requests, including three with 261,880 input tokens and 256 output tokens in a 262,144-token window, without truncation or prompt reuse. [Benchmark write-up and raw measurements](https://acrogenesis.com/strata-vs-unsloth-qwen3-8-flash-next-rtx-5090/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:00:09 +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#2441
No description provided.