mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #911] [CLOSED] setup: --inspect, a GGUF's real quantization and whether Strata runs it, from its headers only #2912
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2912
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/911
Author: @star1872
Created: 10/5/2026
Status: ❌ Closed
Base:
main← Head:setup-inspect📝 Commits (10+)
fa16567setup: an earlier config that does not parse is skipped, not a crash; configs are written atomically (#459)749d957setup (--backend hip): a system ROCm without the HIP development files falls back to the wheels (#446)5a30024calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)9f60d13serve, 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)6a09387setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)d6a91e2docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)d8d4ad3Merge branch 'f-135-eng' into rel-0.1.357b600d5Merge branch 'f-135-small' into rel-0.1.35d9ab843Engine 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
6 files changed (+1094 additions, -2 deletions)
View changed files
➕
data/gguf_fingerprints.json(+436 -0)📝
docs/INSTALL.md(+7 -1)📝
setup.py(+19 -1)➕
tools/quantscope.py(+394 -0)➕
tools/strata_inspect.py(+175 -0)➕
tools/test_strata_inspect.py(+63 -0)📄 Description
--inspect SOURCE [VARIANT]says what a GGUF really holds and whether Strata runs it, from its headers only (a few MB,also over the network), before anyone downloads 70-110 GB. And the size menu shows each size's real routed-expert bits.
It prints every weight group's parameters, size, real bits per weight and storage types (shares of bytes), then one of:
--family qwen --model IQ3_XXS" (under any file name, e.g. a renamed or re-uploaded copy);
same recipe): "may run as that size; not tested";
known file has for it.
The menu line becomes e.g.
1) Q2_0 2-bit, the fastest; download 66 GB, uses ~34 GB of RAM, experts 2.25 bits/weight(IQ2_XS 2.35, IQ3_XXS 2.84, IQ3_S 3.33, Coder IQ1_M 3.33 over its kept experts, UD-IQ4_XS 3.94, UD-Q4_K_XL 5.10).
How
tools/quantscope.py: the header reader (GGUF, safetensors; ModelScope / Hugging Face / URL / local, HTTP rangerequests, standard library only), from https://github.com/1872183316/quantscope (dual-licensed MIT OR Apache-2.0,
so it can be MIT here), with ggml type 42 named Q2_0.
tools/strata_inspect.py: the comparison, and--fingerprints OUTto rebuild the table.data/gguf_fingerprints.json(8.6 KB): the 10 files setup installs, read from ModelScope's copies on 2026-10-05:architecture, tensor count, bytes, routed-expert bytes per type, and, per tensor role, the types any of them use.
setup.py:--inspectruns the tool and exits;expert_bits()for the menu (no network at install time).One thing to confirm
SUPPORTED_GGUFSsays Unsloth's UD-IQ3_XXS and UD-Q2_K_XL cannot be used. From the headers, their routed experts useonly formats the known files use (UD-Q2_K_XL: IQ2_XS, IQ3_XXS, IQ4_NL); what differs is
output.weight(Q4_K) andtoken_embd.weight(Q5_K; UD-IQ3_XXS: Q6_K). So--inspectsays "untested" and names those two, rather than "no".If the engine refuses those head / embedding formats, a line in
strata_inspect.pycan turn that into "no"; I did nottry to run either file.
Tests
tools/test_strata_inspect.py(5, offline, on the fingerprint table): every installed file is known, a changed size is"same layout", another architecture and an unknown expert format are "no", and an untested file names exactly its new
tensors. All
tools/test_setup_*.pypass (the menu line is printed by the golden tests).🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.