[PR #844] [CLOSED] setup: Unsloth's UD-Q3_K_XL, set up as UD-IQ4_XS (its experts are IQ3_XXS / IQ4_NL - no Q3_K) #2864

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/844
Author: @architectds
Created: 10/4/2026
Status: ❌ Closed

Base: main ← Head: pr/ud-q3_k_xl


📝 Commits (10+)

  • fa16567 setup: an earlier config that does not parse is skipped, not a crash; configs are written atomically (#459)
  • 749d957 setup (--backend hip): a system ROCm without the HIP development files falls back to the wheels (#446)
  • 5a30024 calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)
  • 9f60d13 serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448)
  • eb8da1d /metrics: each request's speculative draft counts, and their sums in the totals (#457)
  • 6a09387 setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)
  • d6a91e2 docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)
  • d8d4ad3 Merge branch 'f-135-eng' into rel-0.1.35
  • 7b600d5 Merge branch 'f-135-small' into rel-0.1.35
  • d9ab843 Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it

📊 Changes

7 files changed (+172 additions, -29 deletions)

View changed files

📝 README.md (+2 -0)
📝 docs/AI_SETUP.md (+2 -2)
📝 docs/MODELS.md (+13 -1)
📝 docs/UNSLOTH_Q4.md (+36 -1)
📝 setup.py (+32 -12)
📝 tools/test_setup_choices.py (+4 -3)
📝 tools/test_setup_unsloth.py (+83 -10)

📄 Description

Adds Unsloth's UD-Q3_K_XL (revision 38bb39e, three shards, 90.0 GB) to setup as a third Unsloth size, handled
exactly like UD-IQ4_XS: START-HERE.bat --setup --family unsloth --model UD-Q3_K_XL.

No engine work is needed. Despite its name the file has no Q3_K experts: the experts' down rows are 640 values
long, which K-quants' 256-value blocks do not divide. From the shard headers:

Tensors Format
experts' gate/up IQ3_XXS in 47 layers, IQ4_XS in layer 2
experts' down IQ4_NL in 43 layers, Q8_0 in layers 2, 4, 30, 46 and 47
attention, shared experts, hyper-connection projections Q8_0 (UD-IQ4_XS's dense side)
head / PLE table Q6_K / IQ4_NL

The engine has kernels for all of them; only setup refused the file by name.

Changes

  • setup.py: the model entry (three pinned shards with sizes and SHA-256 from the Hub's LFS pointers, engine 0.1.38 or
    newer, the RAM budget, --compat-bf16, images asked as for UD-IQ4_XS), the family text, the supported-files text
    and the --resident-budget-gib help. The size menu becomes UD-IQ4_XS (still the default), UD-Q3_K_XL, UD-Q4_K_XL
    (experimental, last).
  • Docs: a UD-Q3_K_XL section in docs/UNSLOTH_Q4.md with the formats, the hashes and the measurements below;
    docs/MODELS.md, README.md, docs/AI_SETUP.md.
  • Tests: test_setup_unsloth.py (a Q3KXL class: pins, budget, install, --check, engine version; the menus with
    three sizes), test_setup_choices.py (the supported-files text, a UD-Q3_K_XL name).

Measured on one PC (2026-10-04): RTX 3060 12 GB + RTX 5070 Ti 16 GB (both PCIe 3.0 x8), Ryzen 9 5900XT, 64 GB
DDR4-2933, against the GSQ-RCO IQ3_S with the same engine and settings for both. The engine was a 0.1.39 fork
(architectds/Strata, with two-GPU changes) and the file ran in the low-RAM mapped mode on a layer split
(iq_pack.py --compat-bf16 --experts-bin, --mmap-experts):

GSQ-RCO IQ3_S UD-Q3_K_XL
Same next token as the official Qwen 3.8 Flash API (31 answers, 14,960 tokens, read teacher-forced) 93.0% 93.0%
5-token KL against the API's top 5 0.0536 0.0519
Six trap and code questions, thinking on, two seeds each 12 of 12, 11,048 tokens 12 of 12, 10,620 tokens
Writing, in an agent-like session (100K start, eight 1-5K turns) 77.9 tokens/s 56.6 tokens/s
Reading that session's 100K-token start 61.6 s 81.8 s

As close to the official model as IQ3_S on these checks, and slower on this PC (its experts are 11% larger, so fewer
fit in VRAM).

Not run: setup's own path for this file (the stock engine, one GPU, a RAM budget, the GGUF read in place). It is
UD-IQ4_XS's path; the docs say so and ask for reports.

Tests: every python tools/test_setup_<name>.py passes (18 files); test_iq_pack.py 23 OK.

🤖 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/844 **Author:** [@architectds](https://github.com/architectds) **Created:** 10/4/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/ud-q3_k_xl` --- ### 📝 Commits (10+) - [`fa16567`](https://github.com/Niko1221/Strata/commit/fa165679f9860552ac97ebd07118bb8db286be4a) setup: an earlier config that does not parse is skipped, not a crash; configs are written atomically (#459) - [`749d957`](https://github.com/Niko1221/Strata/commit/749d957a1790b1a171dd4a01ab3e31b3882c9892) setup (--backend hip): a system ROCm without the HIP development files falls back to the wheels (#446) - [`5a30024`](https://github.com/Niko1221/Strata/commit/5a3002446dbb9dfcabb7d0bd9f113da90cc2f3c0) calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447) - [`9f60d13`](https://github.com/Niko1221/Strata/commit/9f60d13246e46b02b1dd0841980b4d18b0faaea7) serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448) - [`eb8da1d`](https://github.com/Niko1221/Strata/commit/eb8da1d8c26ec41e6ffb084fdf579dba7cad10bd) /metrics: each request's speculative draft counts, and their sums in the totals (#457) - [`6a09387`](https://github.com/Niko1221/Strata/commit/6a093874fe037020f49bd5cf053879ff6a133c21) setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444) - [`d6a91e2`](https://github.com/Niko1221/Strata/commit/d6a91e2d1770d0f469d6ec15890acc7ee93e764c) docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438) - [`d8d4ad3`](https://github.com/Niko1221/Strata/commit/d8d4ad337d3c98ba21d3bd0af1a16e9177e112b6) Merge branch 'f-135-eng' into rel-0.1.35 - [`7b600d5`](https://github.com/Niko1221/Strata/commit/7b600d55ff801caaaa11542af1523050992e049b) Merge branch 'f-135-small' into rel-0.1.35 - [`d9ab843`](https://github.com/Niko1221/Strata/commit/d9ab8435f654c368c586340d490915f6addf56a3) Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it ### 📊 Changes **7 files changed** (+172 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -0) 📝 `docs/AI_SETUP.md` (+2 -2) 📝 `docs/MODELS.md` (+13 -1) 📝 `docs/UNSLOTH_Q4.md` (+36 -1) 📝 `setup.py` (+32 -12) 📝 `tools/test_setup_choices.py` (+4 -3) 📝 `tools/test_setup_unsloth.py` (+83 -10) </details> ### 📄 Description Adds Unsloth's `UD-Q3_K_XL` (revision `38bb39e`, three shards, 90.0 GB) to setup as a third Unsloth size, handled exactly like UD-IQ4_XS: `START-HERE.bat --setup --family unsloth --model UD-Q3_K_XL`. **No engine work is needed.** Despite its name the file has no Q3_K experts: the experts' down rows are 640 values long, which K-quants' 256-value blocks do not divide. From the shard headers: | Tensors | Format | | --- | --- | | experts' gate/up | IQ3_XXS in 47 layers, IQ4_XS in layer 2 | | experts' down | IQ4_NL in 43 layers, Q8_0 in layers 2, 4, 30, 46 and 47 | | attention, shared experts, hyper-connection projections | Q8_0 (UD-IQ4_XS's dense side) | | head / PLE table | Q6_K / IQ4_NL | The engine has kernels for all of them; only setup refused the file by name. **Changes** - `setup.py`: the model entry (three pinned shards with sizes and SHA-256 from the Hub's LFS pointers, engine 0.1.38 or newer, the RAM budget, `--compat-bf16`, images asked as for UD-IQ4_XS), the family text, the supported-files text and the `--resident-budget-gib` help. The size menu becomes UD-IQ4_XS (still the default), UD-Q3_K_XL, UD-Q4_K_XL (experimental, last). - Docs: a UD-Q3_K_XL section in `docs/UNSLOTH_Q4.md` with the formats, the hashes and the measurements below; `docs/MODELS.md`, `README.md`, `docs/AI_SETUP.md`. - Tests: `test_setup_unsloth.py` (a `Q3KXL` class: pins, budget, install, `--check`, engine version; the menus with three sizes), `test_setup_choices.py` (the supported-files text, a UD-Q3_K_XL name). **Measured** on one PC (2026-10-04): RTX 3060 12 GB + RTX 5070 Ti 16 GB (both PCIe 3.0 x8), Ryzen 9 5900XT, 64 GB DDR4-2933, against the GSQ-RCO IQ3_S with the same engine and settings for both. The engine was a 0.1.39 fork (architectds/Strata, with two-GPU changes) and the file ran in the low-RAM mapped mode on a layer split (`iq_pack.py --compat-bf16 --experts-bin`, `--mmap-experts`): | | GSQ-RCO IQ3_S | UD-Q3_K_XL | | --- | ---: | ---: | | Same next token as the official Qwen 3.8 Flash API (31 answers, 14,960 tokens, read teacher-forced) | 93.0% | 93.0% | | 5-token KL against the API's top 5 | 0.0536 | 0.0519 | | Six trap and code questions, thinking on, two seeds each | 12 of 12, 11,048 tokens | 12 of 12, 10,620 tokens | | Writing, in an agent-like session (100K start, eight 1-5K turns) | 77.9 tokens/s | 56.6 tokens/s | | Reading that session's 100K-token start | 61.6 s | 81.8 s | As close to the official model as IQ3_S on these checks, and slower on this PC (its experts are 11% larger, so fewer fit in VRAM). **Not run:** setup's own path for this file (the stock engine, one GPU, a RAM budget, the GGUF read in place). It is UD-IQ4_XS's path; the docs say so and ask for reports. **Tests:** every `python tools/test_setup_<name>.py` passes (18 files); `test_iq_pack.py` 23 OK. 🤖 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-04 02:03:42 +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#2864
No description provided.