## [2.1.1] - 2026-08-23
Browse files# Changelog
All notable changes to this project are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.1.1] - 2026-08-23
The tied-readout law: on `tie_word_embeddings` architectures token_embd doubles
as lm_head, so the nano embedding floor stops being an economy decision and
becomes an output-distribution guarantee.
### Added
- **Law L7 β tied readout rides the output-class floor** (`ASHQ1.py` ledger,
Charter Β§2): measured end-to-end on TwIL-LM3 (SmolLM3-arch, 128k vocab,
tied). The nano IQ4_XS demotion of token_embd cost KLD 0.1232 / top-p 79.5%;
restoring Q6_K heals it to 0.0499 / 88.1% inside the identical 1593 MiB / 27%
footprint (the knapsack refinances the upgrade out of the layer budget).
Dose-response probes archived in `attribution-results.csv`
(`mix-a27refβ¦mix-d21ceil`: KLD 0.1213β0.0510β0.0397β0.0346 across
IQ4_XSβQ5_KβQ6_KβQ8_0); the q5_K knee (~5 MiB per top-p point) is kept as
documented headroom, Q6_K remains the acceptance point.
- `features.tied_readout` surfaced in every engine report: candidate families
declare their topology during the L0 audit pass instead of surprising the
tier ladder downstream.
- Pre-registered gates pattern extended to a full dose-response campaign
(G-mono/G-fix/G-dose/G-satur): acceptance and fallback fixed before the
first arm ran, results adopted without retuning.
### Changed
- Enforcement is declarative, never filename-based (L0's lesson reapplied):
raised initial assignment + tightened floor in `optimal_classify`, gated by
`features.tied_readout`. Vision `mm_*` embeddings are excluded from the pin,
QAT lineage is exempted, int4 caps are respected through `embd_cap`. Untied
lineages are no-ops by construction β free-embd already removes both tensors
from budget scope.
- Documentation baseline sealed for TwIL-LM3 (Charter Β§6 + README): family
strictly monotone again on all axes (KLD 0.0163/0.0235/0.0304/0.0499,
top-p 92.4/91.2/90.2/88.1%); stock-twin duels for this family remain pending.
### Fixed
- `90_attribution-probe.py`: the quantize-failure path referenced an undefined
local (`size`), raising NameError before retry/fail-fast could engage; one
consolidated failure line now carries rc, parsed size, disk file state.
- Harness console output migrated fully to English (`[rules]`, `[seed]`,
`[csv]` banners, composite descriptions).
- 90_attribution-probe.py +7 -8
- ASHQ1.py +17 -0
- CHARTER.md +33 -18
- README.md +7 -6
- USAGE.md +8 -1
|
@@ -60,7 +60,7 @@ if os.path.isfile(_RULES_PATH):
|
|
| 60 |
if s:_loaded.append(s)
|
| 61 |
if _loaded:
|
| 62 |
BASE_RULES=_loaded
|
| 63 |
-
print(f"[rules] {len(BASE_RULES)}
|
| 64 |
|
| 65 |
def _alt(nums):return "|".join(str(n) for n in nums)
|
| 66 |
|
|
@@ -131,8 +131,7 @@ def quantize(qexe,pr,dst):
|
|
| 131 |
shown=parsed if parsed else fsz
|
| 132 |
print(f" quantize: {shown:.0f} MiB rc=0 ({time.perf_counter()-t0:.0f}s)")
|
| 133 |
return shown
|
| 134 |
-
print(f" x quantize FAILED after {time.perf_counter()-t0:.0f}s (rc={r.returncode}, parsed={parsed}, disk={fsz:.0f} MiB)")
|
| 135 |
-
print(f" x quantize attempt FAILED after {time.perf_counter()-t0:.0f}s (rc={r.returncode}, parsed_size={size}, file={'yes' if os.path.exists(dst) else 'absent'})")
|
| 136 |
if os.path.isfile(dst):
|
| 137 |
try:print(f" leftover: {os.path.getsize(dst)//(1024*1024)} MiB on disk")
|
| 138 |
except OSError:pass
|
|
@@ -167,7 +166,7 @@ def append_csv(path,row):
|
|
| 167 |
if not exists:w.writeheader()
|
| 168 |
w.writerow(row)
|
| 169 |
|
| 170 |
-
#
|
| 171 |
KNOWN_RESULTS=[
|
| 172 |
{"tag":"baseline-mini","status":"ok","mib":"2169","ppl":"9.432678","kld":"0.041735","rms":"5.559","top_p":"89.170","d_kld":""},
|
| 173 |
{"tag":"embd-q8k","status":"ok","mib":"2491","ppl":"9.369886","kld":"0.033035","rms":"4.898","top_p":"91.234","d_kld":""},
|
|
@@ -181,7 +180,7 @@ KNOWN_RESULTS=[
|
|
| 181 |
def seed_known(path):
|
| 182 |
missing=[r for r in KNOWN_RESULTS if r["tag"] not in load_done(path)[0]]
|
| 183 |
for r in missing:append_csv(path,r)
|
| 184 |
-
if missing:print(f"[seed] {len(missing)}
|
| 185 |
|
| 186 |
def load_done(path):
|
| 187 |
# Mixed-schema CSVs silently shift DictReader columns: archive anything
|
|
@@ -191,7 +190,7 @@ def load_done(path):
|
|
| 191 |
if first!=",".join(CSV_FIELDS):
|
| 192 |
bak=path+".bak-legacy"
|
| 193 |
os.replace(path,bak)
|
| 194 |
-
print(f"[csv]
|
| 195 |
rows=[]
|
| 196 |
if not os.path.isfile(path):return{},[]
|
| 197 |
with open(path,"r",newline="",encoding="utf-8") as f:
|
|
@@ -208,7 +207,7 @@ def main():
|
|
| 208 |
ap.add_argument("--csv",default=os.path.join(SCRIPT_DIR,"attribution-results.csv"))
|
| 209 |
ap.add_argument("--seed-known",action="store_true",help="restore measured ledger (runs A-C) then show the consolidated table")
|
| 210 |
ap.add_argument("--rule",action="append",default=[],help="composite rule injected before the grid (repeatable)")
|
| 211 |
-
ap.add_argument("--embd-type",default=None,help="composite token embedding type (
|
| 212 |
ap.add_argument("--name",default="remix",help="composite probe name (stored as mix-<name>)")
|
| 213 |
ap.add_argument("--list",action="store_true",help="print available probe tags and exit")
|
| 214 |
args=ap.parse_args()
|
|
@@ -232,7 +231,7 @@ def main():
|
|
| 232 |
order=[w for w in PROBES if w in want]
|
| 233 |
if args.rule or args.embd_type:
|
| 234 |
tag=f"mix-{args.name}"
|
| 235 |
-
PROBES[tag]={"rules":list(args.rule),"embd":args.embd_type,"desc":f"composite Β· {len(args.rule)}
|
| 236 |
order=[tag]
|
| 237 |
if args.seed_known:
|
| 238 |
seed_known(args.csv)
|
|
|
|
| 60 |
if s:_loaded.append(s)
|
| 61 |
if _loaded:
|
| 62 |
BASE_RULES=_loaded
|
| 63 |
+
print(f"[rules] {len(BASE_RULES)} rule(s) loaded from probe-rules.txt")
|
| 64 |
|
| 65 |
def _alt(nums):return "|".join(str(n) for n in nums)
|
| 66 |
|
|
|
|
| 131 |
shown=parsed if parsed else fsz
|
| 132 |
print(f" quantize: {shown:.0f} MiB rc=0 ({time.perf_counter()-t0:.0f}s)")
|
| 133 |
return shown
|
| 134 |
+
print(f" x quantize FAILED after {time.perf_counter()-t0:.0f}s (rc={r.returncode}, parsed={parsed}, disk={fsz:.0f} MiB, file={'yes' if os.path.isfile(dst) else 'absent'})")
|
|
|
|
| 135 |
if os.path.isfile(dst):
|
| 136 |
try:print(f" leftover: {os.path.getsize(dst)//(1024*1024)} MiB on disk")
|
| 137 |
except OSError:pass
|
|
|
|
| 166 |
if not exists:w.writeheader()
|
| 167 |
w.writerow(row)
|
| 168 |
|
| 169 |
+
# Canonical ledger, transcribed verbatim from consoles of runs A-C
|
| 170 |
KNOWN_RESULTS=[
|
| 171 |
{"tag":"baseline-mini","status":"ok","mib":"2169","ppl":"9.432678","kld":"0.041735","rms":"5.559","top_p":"89.170","d_kld":""},
|
| 172 |
{"tag":"embd-q8k","status":"ok","mib":"2491","ppl":"9.369886","kld":"0.033035","rms":"4.898","top_p":"91.234","d_kld":""},
|
|
|
|
| 180 |
def seed_known(path):
|
| 181 |
missing=[r for r in KNOWN_RESULTS if r["tag"] not in load_done(path)[0]]
|
| 182 |
for r in missing:append_csv(path,r)
|
| 183 |
+
if missing:print(f"[seed] {len(missing)} measurement(s) restored")
|
| 184 |
|
| 185 |
def load_done(path):
|
| 186 |
# Mixed-schema CSVs silently shift DictReader columns: archive anything
|
|
|
|
| 190 |
if first!=",".join(CSV_FIELDS):
|
| 191 |
bak=path+".bak-legacy"
|
| 192 |
os.replace(path,bak)
|
| 193 |
+
print(f"[csv] Legacy header detected β archived to {bak}")
|
| 194 |
rows=[]
|
| 195 |
if not os.path.isfile(path):return{},[]
|
| 196 |
with open(path,"r",newline="",encoding="utf-8") as f:
|
|
|
|
| 207 |
ap.add_argument("--csv",default=os.path.join(SCRIPT_DIR,"attribution-results.csv"))
|
| 208 |
ap.add_argument("--seed-known",action="store_true",help="restore measured ledger (runs A-C) then show the consolidated table")
|
| 209 |
ap.add_argument("--rule",action="append",default=[],help="composite rule injected before the grid (repeatable)")
|
| 210 |
+
ap.add_argument("--embd-type",default=None,help="composite token embedding type (e.g. q6_K)")
|
| 211 |
ap.add_argument("--name",default="remix",help="composite probe name (stored as mix-<name>)")
|
| 212 |
ap.add_argument("--list",action="store_true",help="print available probe tags and exit")
|
| 213 |
args=ap.parse_args()
|
|
|
|
| 231 |
order=[w for w in PROBES if w in want]
|
| 232 |
if args.rule or args.embd_type:
|
| 233 |
tag=f"mix-{args.name}"
|
| 234 |
+
PROBES[tag]={"rules":list(args.rule),"embd":args.embd_type,"desc":f"composite Β· {len(args.rule)} rule(s)"}
|
| 235 |
order=[tag]
|
| 236 |
if args.seed_known:
|
| 237 |
seed_known(args.csv)
|
|
@@ -465,6 +465,7 @@ def read_model(path:str)->dict:
|
|
| 465 |
mtp_layers=[last] if has_blk_mtp else []
|
| 466 |
has_mtp=has_nextn and(has_blk_mtp or any("nextn" in n for n in tensors))
|
| 467 |
has_moe=any("exps" in n for n in tensors)
|
|
|
|
| 468 |
if last_names and not last_has_body:
|
| 469 |
print(f" [WARN] blk.{last} contains only {len(last_names)} norm tensor(s) β truncated MTP head ignored")
|
| 470 |
n_layers-=1
|
|
@@ -970,6 +971,17 @@ def optimal_classify(importance_table:dict,tied_groups:list,model:dict,target_si
|
|
| 970 |
soft=profile_floors.get(cls,CLASS_HARD_FLOORS.get(cls,"Q4_K"))
|
| 971 |
hard=CLASS_HARD_FLOORS.get(cls,"IQ1_S")
|
| 972 |
floor_table[cls]=soft if _tier_index(soft)>=_tier_index(hard) else hard
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 973 |
# Embd clamp removed: attribution measured Q6_K embd as the highest-value upgrade;
|
| 974 |
# the recurrent-channel floor lives directly in TIER_FLOORS ("ssm_out" class)
|
| 975 |
if int4_lineage:
|
|
@@ -1473,6 +1485,11 @@ def _show_floors():
|
|
| 1473 |
# floors+free-embd β still loses to stock Q6_K (0.0179 vs 0.0145). Near
|
| 1474 |
# saturation uniform grids win (heterogeneity tax, cf. L4): Quality lands
|
| 1475 |
# at 36%, Fidelity leaves the default batches (archival β stock Q8_0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1476 |
# Ratios 27/30/33/36 (+48 opt-in): monotone KLD/RMS/top-p re-validated per
|
| 1477 |
# family (kld-bf16.dat reference, -fa auto)
|
| 1478 |
TIER_RATIOS={
|
|
|
|
| 465 |
mtp_layers=[last] if has_blk_mtp else []
|
| 466 |
has_mtp=has_nextn and(has_blk_mtp or any("nextn" in n for n in tensors))
|
| 467 |
has_moe=any("exps" in n for n in tensors)
|
| 468 |
+
arch_features["tied_readout"]=any(get_tensor_type(n)=="token_embd" for n in tensors) and not any(get_tensor_type(n)=="output" for n in tensors)
|
| 469 |
if last_names and not last_has_body:
|
| 470 |
print(f" [WARN] blk.{last} contains only {len(last_names)} norm tensor(s) β truncated MTP head ignored")
|
| 471 |
n_layers-=1
|
|
|
|
| 971 |
soft=profile_floors.get(cls,CLASS_HARD_FLOORS.get(cls,"Q4_K"))
|
| 972 |
hard=CLASS_HARD_FLOORS.get(cls,"IQ1_S")
|
| 973 |
floor_table[cls]=soft if _tier_index(soft)>=_tier_index(hard) else hard
|
| 974 |
+
# Tied readout: token_embd doubles as lm_head β the nano IQ4_XS floor demotes the
|
| 975 |
+
# whole output distribution (TwIL-LM3 probes: KLD 0.1213β0.0397, top-p 79.6β89.1%);
|
| 976 |
+
# the floor fence only blocks downgrades, so raise the initial assignment itself
|
| 977 |
+
if model.get("features",{}).get("tied_readout") and not model.get("features",{}).get("is_qat",False):
|
| 978 |
+
tgt="Q6_K"
|
| 979 |
+
if embd_cap and _tier_index(embd_cap)<_tier_index(tgt):tgt=embd_cap
|
| 980 |
+
for n in non_mtp_names:
|
| 981 |
+
if get_tensor_type(n) not in("token_embd","output"):continue
|
| 982 |
+
ttype=importance_table.get(n,{}).get("type",get_tensor_type(n))
|
| 983 |
+
if get_tensor_class(ttype)=="embd" and _tier_index(assignments[n])<_tier_index(tgt):assignments[n]=tgt
|
| 984 |
+
if _tier_index(tgt)>_tier_index(floor_table["embd"]):floor_table["embd"]=tgt
|
| 985 |
# Embd clamp removed: attribution measured Q6_K embd as the highest-value upgrade;
|
| 986 |
# the recurrent-channel floor lives directly in TIER_FLOORS ("ssm_out" class)
|
| 987 |
if int4_lineage:
|
|
|
|
| 1485 |
# floors+free-embd β still loses to stock Q6_K (0.0179 vs 0.0145). Near
|
| 1486 |
# saturation uniform grids win (heterogeneity tax, cf. L4): Quality lands
|
| 1487 |
# at 36%, Fidelity leaves the default batches (archival β stock Q8_0)
|
| 1488 |
+
# L7 β tied readout (SmolLM3/TwIL-LM3): token_embd doubling as lm_head turns
|
| 1489 |
+
# its tier into an output guarantee, exempt from L1 economy; the nano
|
| 1490 |
+
# floor demotion cost KLD 0.1232/top-p 79.5%, Q6_K restores 0.0499/88.1%
|
| 1491 |
+
# at equal 27% footprint (probe knee q5_K, acceptance Q6_K). Enforced
|
| 1492 |
+
# declaratively: token_embd present β§ output absent β raise assignment
|
| 1493 |
# Ratios 27/30/33/36 (+48 opt-in): monotone KLD/RMS/top-p re-validated per
|
| 1494 |
# family (kld-bf16.dat reference, -fa auto)
|
| 1495 |
TIER_RATIOS={
|
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
This document establishes the architectural principles, the measurement laws,
|
| 4 |
and the invariant guarantees governing the ASHQ1-Remix quantization suite in
|
| 5 |
-
release `2.1.
|
| 6 |
|
| 7 |
---
|
| 8 |
|
|
@@ -41,33 +41,40 @@ These laws are validated end-to-end on two hybrid architectures
|
|
| 41 |
(Qwen3.8-4B-Distill, Ornith-1.5-9B) and cross-checked on dense archs at
|
| 42 |
two scales (TwIL-LM3 3B, SmolLM3-arch; MiniCPM5-1B 1B, llama-arch). They
|
| 43 |
live as comments above `TIER_RATIOS` in `ASHQ1.py` and bind every future
|
| 44 |
-
change.
|
|
|
|
| 45 |
|
| 46 |
- **L0 β Audit before adoption.** Every candidate family must run the
|
| 47 |
audit pass (`--show-config` + effective-type inspection) before the
|
| 48 |
standard applies. History: untied lm_heads expose `output.weight`, which an
|
| 49 |
exact-name classifier silently parked at the worst tier despite carrying
|
| 50 |
the top imatrix importance.
|
|
|
|
| 51 |
- **L1 β Embedding is the cheapest precision.** At mid scales the Q6_K
|
| 52 |
embedding floor is the best purchase measured (4B: 93% of the Q8_0 gain for
|
| 53 |
54% of the bytes; 94 MiB per top-p point). Near-inert at 9B β retained
|
| 54 |
everywhere for uniformity, harmless where inert.
|
|
|
|
| 55 |
- **L2 β MLP weights are the bottleneck.** Downgrading `ffn_down`/`gate/up`
|
| 56 |
costs ~2e-4 KLD per MiB saved β an order of magnitude worse than any winning
|
| 57 |
promotion. Sub-IQ4_XS MLP cliffs are banned at plain budgets.
|
|
|
|
| 58 |
- **L3 β Depth matters.** Surplus flows to early-GDN first (the 0β7 band
|
| 59 |
carries 43% of core-GDN benefit), then full-attention blocks. Band sum =
|
| 60 |
monolithic upgrade within 1%; composite stacks validate within +2%.
|
|
|
|
| 61 |
- **L4 β Recurrent-readout floor.** Above ~36% budgets, `ssm_out` at any
|
| 62 |
sub-Q6_K tier (flat or importance-mixed) collapses output entropy
|
| 63 |
(PPL β0.63 vs base); flat Q6_K heals it (KLD 0.081β0.030, top-p
|
| 64 |
90.3%β94.1%) inside the same budget. Expressed declaratively as the
|
| 65 |
dedicated `ssm_out` class in `TIER_FLOORS`.
|
|
|
|
| 66 |
- **L5 β Small-model constructibility wall.** Below ~34%, parameter counts
|
| 67 |
under ~2.5B stop differentiating adjacent tiers: floors dominate the
|
| 68 |
discretionary budget and the CompactβQuality gap widens disproportionately
|
| 69 |
(MiniCPM5-1B: KLD 0.030β0.100 crossing 33%). This motivates the
|
| 70 |
minimum-tier policy rather than code changes.
|
|
|
|
| 71 |
- **L6 β Allocation alpha decay (stock-baseline law).** Size-matched against
|
| 72 |
stock quants, ASHQ1's advantage decays as the ratio rises: decisive at
|
| 73 |
27β33% (KLD β30..β45%), strongest at Quality-36 (0.0365 vs Q5_K_M's 0.0755
|
|
@@ -79,6 +86,17 @@ change.
|
|
| 79 |
Wall-crossing follow-up: pre-registered 1B acceptance β€0.05 was missed by 11%
|
| 80 |
(0.0555) yet differentiation held β documented rather than retuned.
|
| 81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
---
|
| 83 |
|
| 84 |
## π‘οΈ 3. Invariant Precision Guarantees
|
|
@@ -91,7 +109,7 @@ change.
|
|
| 91 |
β Attention Gates β Q6_K β Non-linear routing stability β
|
| 92 |
β Recurrent State (GDN Ξ±/Ξ²) β Q8_0 β Hidden-state accumulation fidelity β
|
| 93 |
β Recurrent Readout (ssm_out) β IQ4_XS β Q6_K @36%+ β L4 channel-precision threshold β
|
| 94 |
-
β Token Embedding β IQ4_XS (nano) β Q6_K β L1
|
| 95 |
β Speculative Heads (MTP) β Q5_KβQ8_0 β Draft-token acceptance rate β
|
| 96 |
β Uncalibrated (no imatrix) β IQ4_XS β Keeps llama-quantize within safe tiers β
|
| 97 |
β Vision Critical (mmproj) β F32 β Visual grounding precision β
|
|
@@ -152,27 +170,24 @@ Corpus `wiki.test.raw`, ctx 512, FA-auto, symmetric reference base.
|
|
| 152 |
Strictly monotone on KLD, RMS, and top-p. Nano equals the footprint of the
|
| 153 |
previous generation's Mini while inheriting its metrics β nothing lost.
|
| 154 |
|
| 155 |
-
**TwIL-LM3 (dense SmolLM3-arch, tied token_embd, 128k vocab)**
|
| 156 |
|
| 157 |
| Tier | Size | PPL | KLD | RMS Ξp | top-p |
|
| 158 |
| :--- | ---: | ---: | ---: | ---: | ---: |
|
| 159 |
| Quality-36pc | 2121 MiB | 9.5785 | 0.0163 | 3.35% | 92.4% |
|
| 160 |
| Compact-33pc | 1945 MiB | 9.6292 | 0.0235 | 3.94% | 91.2% |
|
| 161 |
| Mini-30pc | 1769 MiB | 9.6890 | 0.0304 | 4.42% | 90.2% |
|
| 162 |
-
| Nano-27pc | 1593 MiB |
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
acceptance KLD β€0.05, cf. L6 precedent); floor-row amendment only after
|
| 174 |
-
the probe lands. Β§7 already excludes Nano at 3β4B: policy validated by
|
| 175 |
-
measurement. Size-matched stock duels for this family: pending.
|
| 176 |
|
| 177 |
**Ornith-1.5-9B (hybrid, plain lineage, post L0/L4 fixes)**
|
| 178 |
|
|
|
|
| 2 |
|
| 3 |
This document establishes the architectural principles, the measurement laws,
|
| 4 |
and the invariant guarantees governing the ASHQ1-Remix quantization suite in
|
| 5 |
+
release `2.1.1`.
|
| 6 |
|
| 7 |
---
|
| 8 |
|
|
|
|
| 41 |
(Qwen3.8-4B-Distill, Ornith-1.5-9B) and cross-checked on dense archs at
|
| 42 |
two scales (TwIL-LM3 3B, SmolLM3-arch; MiniCPM5-1B 1B, llama-arch). They
|
| 43 |
live as comments above `TIER_RATIOS` in `ASHQ1.py` and bind every future
|
| 44 |
+
change. L7 additionally binds `read_model`/`optimal_classify`: its probe
|
| 45 |
+
ledger lives in `attribution-results.csv` (mix-a27refβ¦mix-d21ceil).
|
| 46 |
|
| 47 |
- **L0 β Audit before adoption.** Every candidate family must run the
|
| 48 |
audit pass (`--show-config` + effective-type inspection) before the
|
| 49 |
standard applies. History: untied lm_heads expose `output.weight`, which an
|
| 50 |
exact-name classifier silently parked at the worst tier despite carrying
|
| 51 |
the top imatrix importance.
|
| 52 |
+
|
| 53 |
- **L1 β Embedding is the cheapest precision.** At mid scales the Q6_K
|
| 54 |
embedding floor is the best purchase measured (4B: 93% of the Q8_0 gain for
|
| 55 |
54% of the bytes; 94 MiB per top-p point). Near-inert at 9B β retained
|
| 56 |
everywhere for uniformity, harmless where inert.
|
| 57 |
+
|
| 58 |
- **L2 β MLP weights are the bottleneck.** Downgrading `ffn_down`/`gate/up`
|
| 59 |
costs ~2e-4 KLD per MiB saved β an order of magnitude worse than any winning
|
| 60 |
promotion. Sub-IQ4_XS MLP cliffs are banned at plain budgets.
|
| 61 |
+
|
| 62 |
- **L3 β Depth matters.** Surplus flows to early-GDN first (the 0β7 band
|
| 63 |
carries 43% of core-GDN benefit), then full-attention blocks. Band sum =
|
| 64 |
monolithic upgrade within 1%; composite stacks validate within +2%.
|
| 65 |
+
|
| 66 |
- **L4 β Recurrent-readout floor.** Above ~36% budgets, `ssm_out` at any
|
| 67 |
sub-Q6_K tier (flat or importance-mixed) collapses output entropy
|
| 68 |
(PPL β0.63 vs base); flat Q6_K heals it (KLD 0.081β0.030, top-p
|
| 69 |
90.3%β94.1%) inside the same budget. Expressed declaratively as the
|
| 70 |
dedicated `ssm_out` class in `TIER_FLOORS`.
|
| 71 |
+
|
| 72 |
- **L5 β Small-model constructibility wall.** Below ~34%, parameter counts
|
| 73 |
under ~2.5B stop differentiating adjacent tiers: floors dominate the
|
| 74 |
discretionary budget and the CompactβQuality gap widens disproportionately
|
| 75 |
(MiniCPM5-1B: KLD 0.030β0.100 crossing 33%). This motivates the
|
| 76 |
minimum-tier policy rather than code changes.
|
| 77 |
+
|
| 78 |
- **L6 β Allocation alpha decay (stock-baseline law).** Size-matched against
|
| 79 |
stock quants, ASHQ1's advantage decays as the ratio rises: decisive at
|
| 80 |
27β33% (KLD β30..β45%), strongest at Quality-36 (0.0365 vs Q5_K_M's 0.0755
|
|
|
|
| 86 |
Wall-crossing follow-up: pre-registered 1B acceptance β€0.05 was missed by 11%
|
| 87 |
(0.0555) yet differentiation held β documented rather than retuned.
|
| 88 |
|
| 89 |
+
- **L7 β Tied readout rides the output-class floor.** On tie_word_embeddings
|
| 90 |
+
architectures (SmolLM3 family) token_embd doubles as lm_head: the nano
|
| 91 |
+
IQ4_XS embd floor demotes the whole output distribution β TwIL-LM3 Nano
|
| 92 |
+
measured KLD 0.1232 / top-p 79.5% before fix and 0.0499 / 88.1% after
|
| 93 |
+
restoring Q6_K (β59% KLD, +8.6 pts, identical 27% footprint funded inside
|
| 94 |
+
the layer budget). L1's "cheapest precision" never transfers to
|
| 95 |
+
readout-critical embeddings; enforcement is declarative (token_embd
|
| 96 |
+
present β§ output absent β raised initial assignment + tightened floor),
|
| 97 |
+
never filename-based β L0's lesson reapplied. Dose knee sits at q5_K
|
| 98 |
+
(~5 MiB/top-p pt vs ~17 at Q6_K), archived as headroom, not adopted.
|
| 99 |
+
|
| 100 |
---
|
| 101 |
|
| 102 |
## π‘οΈ 3. Invariant Precision Guarantees
|
|
|
|
| 109 |
β Attention Gates β Q6_K β Non-linear routing stability β
|
| 110 |
β Recurrent State (GDN Ξ±/Ξ²) β Q8_0 β Hidden-state accumulation fidelity β
|
| 111 |
β Recurrent Readout (ssm_out) β IQ4_XS β Q6_K @36%+ β L4 channel-precision threshold β
|
| 112 |
+
β Token Embedding β IQ4_XS (nano) β Q6_K β L1 economy; L7: Q6_K when tied readout β
|
| 113 |
β Speculative Heads (MTP) β Q5_KβQ8_0 β Draft-token acceptance rate β
|
| 114 |
β Uncalibrated (no imatrix) β IQ4_XS β Keeps llama-quantize within safe tiers β
|
| 115 |
β Vision Critical (mmproj) β F32 β Visual grounding precision β
|
|
|
|
| 170 |
Strictly monotone on KLD, RMS, and top-p. Nano equals the footprint of the
|
| 171 |
previous generation's Mini while inheriting its metrics β nothing lost.
|
| 172 |
|
| 173 |
+
**TwIL-LM3 (dense SmolLM3-arch, tied token_embd, 128k vocab, L7-fixed Nano)**
|
| 174 |
|
| 175 |
| Tier | Size | PPL | KLD | RMS Ξp | top-p |
|
| 176 |
| :--- | ---: | ---: | ---: | ---: | ---: |
|
| 177 |
| Quality-36pc | 2121 MiB | 9.5785 | 0.0163 | 3.35% | 92.4% |
|
| 178 |
| Compact-33pc | 1945 MiB | 9.6292 | 0.0235 | 3.94% | 91.2% |
|
| 179 |
| Mini-30pc | 1769 MiB | 9.6890 | 0.0304 | 4.42% | 90.2% |
|
| 180 |
+
| Nano-27pc | 1593 MiB | 9.9084 | 0.0499 | 5.75% | 88.1% |
|
| 181 |
+
|
| 182 |
+
Four-tier ladder strictly monotone with the former Nano cliff healed in
|
| 183 |
+
place. Dose-response probes on the tied readout (identical grids, embd
|
| 184 |
+
IQ4_XSβq5_Kβq6_Kβq8_0) measured KLD 0.1213β0.0510β0.0397β0.0346 and
|
| 185 |
+
top-p 79.6β87.1β89.1β90.4; the shipped Nano holds the 27% footprint by
|
| 186 |
+
reallocating inside the layer budget (43β39 MiB/layer, IQ3_S early-gate
|
| 187 |
+
bands) and clears the pre-registered acceptance on the line itself
|
| 188 |
+
(KLD 0.0499 vs β€0.05, top-p 88.1 vs β₯88%) β a boundary pass, adopted
|
| 189 |
+
without retuning per charter discipline. Β§7 continues to route 3β4B
|
| 190 |
+
deployments to Compact. Size-matched stock duels for this family: pending.
|
|
|
|
|
|
|
|
|
|
| 191 |
|
| 192 |
**Ornith-1.5-9B (hybrid, plain lineage, post L0/L4 fixes)**
|
| 193 |
|
|
@@ -12,7 +12,7 @@ tags:
|
|
| 12 |
|
| 13 |
# AutoRound & ASHQ1-Remix Suite
|
| 14 |
|
| 15 |
-
**Version 2.1.
|
| 16 |
floor, and cap traces to a measured experiment. Plain-BF16-native first;
|
| 17 |
AutoRound lineage supported with explicit saturation bounds.
|
| 18 |
|
|
@@ -99,18 +99,19 @@ equal size); Nano excluded unless `ASHQ1_INCLUDE_NANO=1` after validation.
|
|
| 99 |
| Mini-30pc | 2420 MiB | 9.2973 | 0.0258 | 4.26% | 92.1% |
|
| 100 |
| Nano-27pc | 2179 MiB | 9.4305 | 0.0417 | 5.56% | 89.1% |
|
| 101 |
|
| 102 |
-
**TwIL-LM3 (dense SmolLM3-arch, tied token_embd, 128k vocab)**
|
| 103 |
|
| 104 |
| Tier | Size | PPL | KLD | RMS Ξp | top-p |
|
| 105 |
| :--- | ---: | ---: | ---: | ---: | ---: |
|
| 106 |
| Quality-36pc | 2121 MiB | 9.5785 | 0.0163 | 3.35% | 92.4% |
|
| 107 |
| Compact-33pc | 1945 MiB | 9.6292 | 0.0235 | 3.94% | 91.2% |
|
| 108 |
| Mini-30pc | 1769 MiB | 9.6890 | 0.0304 | 4.42% | 90.2% |
|
| 109 |
-
| Nano-27pc | 1593 MiB |
|
| 110 |
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
|
|
|
| 114 |
|
| 115 |
**MiniCPM5-1B (dense llama-arch)**
|
| 116 |
|
|
|
|
| 12 |
|
| 13 |
# AutoRound & ASHQ1-Remix Suite
|
| 14 |
|
| 15 |
+
**Version 2.1.1** β Activation-aware GGUF quantization whose every ratio,
|
| 16 |
floor, and cap traces to a measured experiment. Plain-BF16-native first;
|
| 17 |
AutoRound lineage supported with explicit saturation bounds.
|
| 18 |
|
|
|
|
| 99 |
| Mini-30pc | 2420 MiB | 9.2973 | 0.0258 | 4.26% | 92.1% |
|
| 100 |
| Nano-27pc | 2179 MiB | 9.4305 | 0.0417 | 5.56% | 89.1% |
|
| 101 |
|
| 102 |
+
**TwIL-LM3 (dense SmolLM3-arch, tied token_embd, 128k vocab, L7-fixed Nano)**
|
| 103 |
|
| 104 |
| Tier | Size | PPL | KLD | RMS Ξp | top-p |
|
| 105 |
| :--- | ---: | ---: | ---: | ---: | ---: |
|
| 106 |
| Quality-36pc | 2121 MiB | 9.5785 | 0.0163 | 3.35% | 92.4% |
|
| 107 |
| Compact-33pc | 1945 MiB | 9.6292 | 0.0235 | 3.94% | 91.2% |
|
| 108 |
| Mini-30pc | 1769 MiB | 9.6890 | 0.0304 | 4.42% | 90.2% |
|
| 109 |
+
| Nano-27pc | 1593 MiB | 9.9084 | 0.0499 | 5.75% | 88.1% |
|
| 110 |
|
| 111 |
+
Dense ladder at Quality-36: KLD 0.0095 (4B) β 0.0163 (3B) β 0.0555 (1B);
|
| 112 |
+
at Nano-27 the tied-readout rule (Charter L7) holds every family inside
|
| 113 |
+
the solid band β SmolLM3-arch models pick up the Q6_K token_embd floor
|
| 114 |
+
automatically, at zero footprint cost.
|
| 115 |
|
| 116 |
**MiniCPM5-1B (dense llama-arch)**
|
| 117 |
|
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# ASHQ1-Remix User Manual & Workflow Guide
|
| 2 |
|
| 3 |
Practical guide for turning checkpoints into production-ready ASHQ1 GGUFs
|
| 4 |
-
(release `2.1.
|
| 5 |
|
| 6 |
---
|
| 7 |
|
|
@@ -104,6 +104,12 @@ probes are allowed to change.
|
|
| 104 |
|
| 105 |
Stock-baseline rule (Ornith-9B sweep): at 36β48% on large models, compare against stock Q6_K/Q8_0 first β ASHQ1's advantage concentrates at β€33%, where size-matched stocks trail by 30β52% KLD.
|
| 106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
Distillates specifically: budget extra margin at the entry tier (measured
|
| 108 |
global degradation runs higher than dense equivalents at equal ratio).
|
| 109 |
|
|
@@ -117,6 +123,7 @@ global degradation runs higher than dense equivalents at equal ratio).
|
|
| 117 |
| Monotonic chunk KLD drift | Recurrent-state accumulation error. | Do not ship that tier/family pair. |
|
| 118 |
| First-chunk KLD spike, then flat | Embedding/lm_head cold start. | Harmless. |
|
| 119 |
| `Embedding N MiB > 15% of target β disabling free-embd` | Budget realism toggle. | Informational. |
|
|
|
|
| 120 |
| `ASHQ1_INCLUDE_NANO/QUALITY/FIDELITY` | Opt-ins (int4: NANO/QUALITY/FIDELITY Β· plain: FIDELITY) | After validation only. |
|
| 121 |
| `ASHQ1_LINEAGE=auto|autoround|plain` | Force tagging when provenance absent. | β |
|
| 122 |
| `LLAMA_CPP_DIR`, `LLAMA_*_PATH` | Binary resolution. | β |
|
|
|
|
| 1 |
# ASHQ1-Remix User Manual & Workflow Guide
|
| 2 |
|
| 3 |
Practical guide for turning checkpoints into production-ready ASHQ1 GGUFs
|
| 4 |
+
(release `2.1.1`).
|
| 5 |
|
| 6 |
---
|
| 7 |
|
|
|
|
| 104 |
|
| 105 |
Stock-baseline rule (Ornith-9B sweep): at 36β48% on large models, compare against stock Q6_K/Q8_0 first β ASHQ1's advantage concentrates at β€33%, where size-matched stocks trail by 30β52% KLD.
|
| 106 |
|
| 107 |
+
Tied-readout models (token_embd doubles as lm_head β SmolLM3 family):
|
| 108 |
+
Nano stays fully usable β the engine pins token_embd β₯ Q6_K automatically
|
| 109 |
+
(law L7; measured on TwIL-LM3 at 27%: KLD 0.1232 β 0.0499 at unchanged
|
| 110 |
+
footprint). Engine reports print `"tied_readout": true/false`, so candidate
|
| 111 |
+
families declare their topology during the Step-4 audit pass.
|
| 112 |
+
|
| 113 |
Distillates specifically: budget extra margin at the entry tier (measured
|
| 114 |
global degradation runs higher than dense equivalents at equal ratio).
|
| 115 |
|
|
|
|
| 123 |
| Monotonic chunk KLD drift | Recurrent-state accumulation error. | Do not ship that tier/family pair. |
|
| 124 |
| First-chunk KLD spike, then flat | Embedding/lm_head cold start. | Harmless. |
|
| 125 |
| `Embedding N MiB > 15% of target β disabling free-embd` | Budget realism toggle. | Informational. |
|
| 126 |
+
| `Features: "tied_readout": true` | Tied lm_head detected β embd floor rides output criticality (L7). | None β handled automatically. |
|
| 127 |
| `ASHQ1_INCLUDE_NANO/QUALITY/FIDELITY` | Opt-ins (int4: NANO/QUALITY/FIDELITY Β· plain: FIDELITY) | After validation only. |
|
| 128 |
| `ASHQ1_LINEAGE=auto|autoround|plain` | Force tagging when provenance absent. | β |
|
| 129 |
| `LLAMA_CPP_DIR`, `LLAMA_*_PATH` | Binary resolution. | β |
|