Soulfate24 commited on
Commit
76ec71e
·
verified ·
1 Parent(s): 6212a02

## [2.2.0] - 2026-08-25

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.2.0] - 2026-08-25

The sub-Nano campaign: a fifth catalogue ratio with a measured validity
domain, a fifth founding family, and the discovery that under a wall, WHERE
a cut lands matters more than how deep it goes.

### Added
- **Tier Pico-24** (`ASHQ1.py`): floors-carried grid whose sole carrier of
the 27→24 step is `attn_proj` IQ4_XS→IQ3_S — MLP held per L2, ssm_out
parity per L4, gdn_state Q8_0 untouched, effective floors declared as-is
(shexp Q4_K, mtp Q5_K). Catalogued across the CLI (`--tier/--profile
pico`), batch-opt-in only: `ASHQ1_INCLUDE_PICO=1` appends it LAST in
`02_BF16-GGUF-to-ASHQ1.py`; AutoRound int4 lineage additionally requires
`ASHQ1_INCLUDE_NANO=1` (shared double-quantization guard).
- **Law L8 — cut locality beats cut depth** (Charter §2): on mixer-dominant
hybrids the whole nominal sub-Nano cut lands on the scarce attention
band. Raising that band alone (the family's own Nano delta — every other
grid line identical) restores KLD 0.213 from a 0.371 base on
LFM2.5-2.6B, while shielding the ENTIRE unclassified shortconv stack at
IQ4_XS (+35 MiB) recovers only 0.030 of 0.158 available: taxonomy
hygiene does not buy bandwidth. Knockouts KO-A/B/C archived; imatrix
sensitivity ranking validated in direction (in_proj > out_proj), capped
in amplitude.
- **Pico+ readout variant**: embd Q6_K→Q8_0 over the Pico grid — the
cheapest marginal ever measured on this suite (~0.74e-4 KLD/MiB, ~4×
under any other step). TwIL-LM3: 0.0959→0.0914 KLD, 84.3→85.0% top-p
for +60 MiB; kept as documented quality variant, not a new ratio.
- **Entropy-dissolution ceiling estimate (~0.33–0.40 KLD)**: two fully
independent mechanisms corroborate the band — int4 double-quantization
collapse (0.331) and plain floors-famine (MiniCPM5-1B Pico 0.3854 /
top-p 66.3% at 503 MiB, `Cannot reach target`, untied 130k readout pair
already eating 41% of file). Co-trigger: top-p < 70%.
- **Five-family sub-Nano compendium** (full-corpus protocol, 559–580
chunks) introducing **LFM2.5-2.6B** (shortconv-mixer hybrid, 8/30
attention layers, tied readout). Nano→Pico KLD slopes: +16.5% (4B GDN)
· +44% (9B GDN) · +73% (2.6B mixer) · +92% (3B dense tied) · +179%
(1B dense, collapse).

### Changed
- **Law L5 extended downwards**: sub-Nano marginal costs inflate with
shrinking trunks — 3–7e-4 KLD/MiB at the 3B frontier, 4.1e-3/MiB at 1B
(~10×). Constructibility scale series sealed: 9B comfortable @27 ·
3B opens @24 · 1B closed @24.
- **Evaluation doctrine**: on high-entropy/off-domain models, PPL ranking
is formally retired from decisions — three archived inversions
(Compact-LFM 2.6σ BELOW its BF16 base; the least-faithful KO arm printing
the trio's lowest PPL, nine points under base; Pico crossing under Nano
on PPL at strictly-worse KLD on Ornith). KLD/top-p are the sole ranking
columns there; the rule is codified in Charter §4/§5.
- Documentation resealed (Charter §6 hosts the full-corpus compendium
beside the legacy 64-chunk tables; README/USAGE expose the Pico service
policy, the LFM-family minimum (Mini) and the audit path for unclassified
tensor clusters); `ASHQ1.py` ledger comments carry the complete sub-Nano
map.

### Deferred (recorded, deliberate)
- `TENSOR_CLASS` remap `shortconv/in_proj/out_proj → attn_proj`: 44 LFM
tensors currently ride `unknown` through the intermediate-token rule
(`parts[2]` defeats the suffix fallback). Correctness established,
queued for the hygiene train WITH the recorded proof (KO-A) that the
labeling hole is benign for the collapse it was suspected of causing —
no engine change ships mid-campaign (§1.1 discipline).

Files changed (6) hide show
  1. 02_BF16-GGUF-to-ASHQ1.py +15 -6
  2. 03_perplexity_test.py +14 -6
  3. ASHQ1.py +59 -8
  4. CHARTER.md +118 -10
  5. README.md +46 -13
  6. USAGE.md +23 -9
02_BF16-GGUF-to-ASHQ1.py CHANGED
@@ -1,7 +1,7 @@
1
  #!/usr/bin/env python3
2
  r"""02_BF16-GGUF-to-ASHQ1.py — Automated ASHQ1 orchestrator.
3
 
4
- Execution order: modules (mmproj, MTP…) → tiers Mini → Compact → Nano.
5
  On AutoRound int4 lineage (provenance), Fidelity and Quality are skipped by default —
6
  information ceiling reached at Compact (negligible perplexity delta from 1B to 9B) —
7
  and modules use Compact (overrides: ASHQ1_INCLUDE_QUALITY=1, ASHQ1_INCLUDE_FIDELITY=1).
@@ -19,10 +19,12 @@ sys.path.insert(0,SCRIPT_DIR)
19
  sys.path.insert(0,os.path.join(SCRIPT_DIR,"llama-cpp","gguf-py"))
20
  from ASHQ1 import ALL_RATIOS,int4_lineage_of,lineage_tag,resolve_pct,tier_label
21
 
22
- # L6: default batch stops at Quality-36 — above it, size-matched stock Q6_K/Q8_0 win
 
23
  MAIN_TIERS=["mini","compact","quality"]
24
- # Longest running and least used: executed last
25
- LAST_TIER="nano"
 
26
  MODULE_PROFILES={"mtp":"fidelity","dspark":"fidelity"}
27
  INT4_MODULE_PROFILES={"mtp":"compact","dspark":"compact"}
28
 
@@ -201,6 +203,8 @@ def main():
201
  if os.environ.get("ASHQ1_INCLUDE_FIDELITY")!="1":excluded.add("fidelity")
202
  main_tiers=[t for t in MAIN_TIERS if t not in excluded]
203
  module_profiles=MODULE_PROFILES
 
 
204
  # 1) Modules first: mmproj, then standalone MTP/dspark heads
205
  mmproj_processed=process_mmproj(base_dir)
206
  main_has_nextn=_gguf_has_nextn(main_model) if has_main_model else False
@@ -208,8 +212,13 @@ def main():
208
  if has_main_model:
209
  process_optional_modules(base_dir,ashq1_script,imatrix,os.path.basename(main_model).lower(),main_has_nextn,module_profiles)
210
  if not process_model(base_dir,ashq1_script,imatrix,main_model,main_tiers):success=False
211
- if LAST_TIER not in main_tiers:
212
- if not process_model(base_dir,ashq1_script,imatrix,main_model,[LAST_TIER]):success=False
 
 
 
 
 
213
 
214
  print("\n"+"="*60)
215
  if has_main_model:
 
1
  #!/usr/bin/env python3
2
  r"""02_BF16-GGUF-to-ASHQ1.py — Automated ASHQ1 orchestrator.
3
 
4
+ Execution order: modules (mmproj, MTP…) → tiers Mini → Compact → Nano (opt-in Pico 24%: ASHQ1_INCLUDE_PICO=1).
5
  On AutoRound int4 lineage (provenance), Fidelity and Quality are skipped by default —
6
  information ceiling reached at Compact (negligible perplexity delta from 1B to 9B) —
7
  and modules use Compact (overrides: ASHQ1_INCLUDE_QUALITY=1, ASHQ1_INCLUDE_FIDELITY=1).
 
19
  sys.path.insert(0,os.path.join(SCRIPT_DIR,"llama-cpp","gguf-py"))
20
  from ASHQ1 import ALL_RATIOS,int4_lineage_of,lineage_tag,resolve_pct,tier_label
21
 
22
+ # L6: default batch stays above Nano — edge concentrates there; sub-Nano carries a
23
+ # measured price (TwIL-LM3 map) and keeps opt-in entry, mirroring Fidelity/L6
24
  MAIN_TIERS=["mini","compact","quality"]
25
+ # Longest running and least used: executed last. Pico 24% joins only via
26
+ # ASHQ1_INCLUDE_PICO=1 — catalogued trade, never a silent default product
27
+ LAST_TIERS=["nano"]+(["pico"] if os.environ.get("ASHQ1_INCLUDE_PICO")=="1" else [])
28
  MODULE_PROFILES={"mtp":"fidelity","dspark":"fidelity"}
29
  INT4_MODULE_PROFILES={"mtp":"compact","dspark":"compact"}
30
 
 
203
  if os.environ.get("ASHQ1_INCLUDE_FIDELITY")!="1":excluded.add("fidelity")
204
  main_tiers=[t for t in MAIN_TIERS if t not in excluded]
205
  module_profiles=MODULE_PROFILES
206
+ if "pico" in LAST_TIERS:
207
+ print("\n ℹ Pico-24 requested (ASHQ1_INCLUDE_PICO=1) — sub-Nano measured trade: ~−3.8 pts top-p vs Nano for the freed headroom; built for tight-VRAM targets.")
208
  # 1) Modules first: mmproj, then standalone MTP/dspark heads
209
  mmproj_processed=process_mmproj(base_dir)
210
  main_has_nextn=_gguf_has_nextn(main_model) if has_main_model else False
 
212
  if has_main_model:
213
  process_optional_modules(base_dir,ashq1_script,imatrix,os.path.basename(main_model).lower(),main_has_nextn,module_profiles)
214
  if not process_model(base_dir,ashq1_script,imatrix,main_model,main_tiers):success=False
215
+ last=[t for t in LAST_TIERS if t not in main_tiers]
216
+ if int4_lineage and os.environ.get("ASHQ1_INCLUDE_NANO")!="1":
217
+ if "pico" in last:
218
+ print(" ℹ Pico-24 skipped (int4 lineage): pair ASHQ1_INCLUDE_PICO=1 with ASHQ1_INCLUDE_NANO=1 to acknowledge the double-quantization risk.")
219
+ last=[t for t in last if t!="pico"]
220
+ for t in last:
221
+ if not process_model(base_dir,ashq1_script,imatrix,main_model,[t]):success=False
222
 
223
  print("\n"+"="*60)
224
  if has_main_model:
03_perplexity_test.py CHANGED
@@ -287,7 +287,7 @@ def menu(models):
287
  else:
288
  print("\nNo local .gguf models found next to this script.")
289
  while True:
290
- raw=input("Select model(s) or file path [1/a/model.gguf/q]: ").strip()
291
  low=raw.lower()
292
  if low in("q","quit",""):return None
293
  if models and low=="a":return models
@@ -301,11 +301,18 @@ def menu(models):
301
  if not cand.lower().endswith(".gguf"):
302
  for c in(cand+".gguf",target+".gguf"):
303
  if os.path.isfile(c):return [os.path.abspath(c)]
304
- try:
305
- idx=[int(x) for x in re.split(r"[,\s]+",raw) if x]
306
- if idx and models and all(1<=i<=len(models) for i in idx):
307
- return [models[i-1] for i in dict.fromkeys(idx)]
308
- except ValueError:pass
 
 
 
 
 
 
 
309
  print(" Invalid selection or file not found.")
310
 
311
  def parse_output(text):
@@ -495,6 +502,7 @@ def main():
495
  results=[]
496
  for m in sel:
497
  if kld_base and os.path.abspath(m)==os.path.abspath(KLD_REF_MODEL or ""):
 
498
  continue
499
  res=run_ppl(binary,m,corpus,flags,os.path.basename(m),kld_base)
500
  if res:results.append({"name":os.path.basename(m),**res})
 
287
  else:
288
  print("\nNo local .gguf models found next to this script.")
289
  while True:
290
+ raw=input("Select model(s) [1,5,3 · a · path\\model.gguf · q]: ").strip()
291
  low=raw.lower()
292
  if low in("q","quit",""):return None
293
  if models and low=="a":return models
 
301
  if not cand.lower().endswith(".gguf"):
302
  for c in(cand+".gguf",target+".gguf"):
303
  if os.path.isfile(c):return [os.path.abspath(c)]
304
+ digits=[t for t in re.split(r"[,\s]+",raw) if t]
305
+ if digits and all(t.isdigit() for t in digits):
306
+ if not models:
307
+ print(" No numbered entries to select.");continue
308
+ bad=[t for t in dict.fromkeys(digits) if not 1<=int(t)<=len(models)]
309
+ if bad:
310
+ print(f" Index out of range 1-{len(models)}: {', '.join(bad)}");continue
311
+ seen=set();pick=[]
312
+ for t in digits:
313
+ i=int(t)-1
314
+ if i not in seen:seen.add(i);pick.append(i)
315
+ return [models[i] for i in pick]
316
  print(" Invalid selection or file not found.")
317
 
318
  def parse_output(text):
 
502
  results=[]
503
  for m in sel:
504
  if kld_base and os.path.abspath(m)==os.path.abspath(KLD_REF_MODEL or ""):
505
+ print(f" [KL] {os.path.basename(m)} is the reference itself — skipped.")
506
  continue
507
  res=run_ppl(binary,m,corpus,flags,os.path.basename(m),kld_base)
508
  if res:results.append({"name":os.path.basename(m),**res})
ASHQ1.py CHANGED
@@ -131,6 +131,22 @@ ALLOW_LOWER_FLOOR="IQ2_XXS"
131
  DEFAULT_FLOOR="Q4_K"
132
 
133
  TIER_FLOORS={
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  "nano":{
135
  "gate":"Q6_K",
136
  "attn_proj":"IQ4_XS",
@@ -210,7 +226,7 @@ TIER_FLOORS={
210
  }
211
 
212
  # Monotonic tier progression for the speculative draft head
213
- PROFILE_MTP_TIER={"nano":"Q5_K","mini":"Q6_K","compact":"Q8_0"}
214
  MTP_DEPLOY_TIER="Q8_0"
215
 
216
  # Ceilings applied when weights originate from an AutoRound int4 optimization
@@ -294,6 +310,12 @@ TENSOR_CLASS={
294
  "ffn_up_shexp":"shexp",
295
  "ffn_down_shexp":"shexp",
296
  "ffn_gate_inp_shexp":"norms",
 
 
 
 
 
 
297
  }
298
 
299
  ARCH_FEATURES={
@@ -1274,7 +1296,7 @@ def run_quantization(flags:dict,model_in:str,model_out:str)->bool:
1274
  def _get_base_type(model:dict,profile:str="quality")->str:
1275
  if model.get("features",{}).get("is_qat",False):return "IQ4_XS"
1276
  return{
1277
- "nano":"IQ3_XXS","mini":"IQ4_XS","compact":"IQ4_XS","quality":"Q5_K_M",
1278
  "fidelity":"Q6_K",
1279
  }.get(profile,"Q5_K_M")
1280
 
@@ -1284,7 +1306,7 @@ def run_main_cli(args_list=None)->int:
1284
  parser.add_argument("--imatrix",action="append",default=[],help="Imatrix GGUF path (can be specified multiple times)")
1285
  parser.add_argument("--imatrix-method",choices=["max","mean"],default="max",help="How to combine multiple imatrices: max or mean")
1286
  parser.add_argument("--size",type=float,default=6800,help="Target file size in MiB")
1287
- parser.add_argument("--profile",choices=["nano","mini","compact","quality","fidelity"],default="quality",help="Quantization profile")
1288
  parser.add_argument("--lineage",choices=["auto","autoround","plain"],default="auto",help="Force output name lineage tag")
1289
  parser.add_argument("--output",default=None,help="Output GGUF path")
1290
  parser.add_argument("--run",action="store_true",help="Execute quantization")
@@ -1492,7 +1514,35 @@ def _show_floors():
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={
 
1496
  "nano":0.27,
1497
  "mini":0.30,
1498
  "compact":0.33,
@@ -1504,7 +1554,7 @@ def resolve_tier_ratio(tier,lineage):
1504
  return TIER_RATIOS[tier]
1505
 
1506
  ALL_RATIOS=dict(TIER_RATIOS)
1507
- TIER_DISPLAY={"nano":"Nano"}
1508
 
1509
  def tier_label(tier:str)->str:
1510
  return TIER_DISPLAY.get(tier.lower(),tier.capitalize())
@@ -1646,15 +1696,16 @@ def tiers_main(args_list=None):
1646
  if not os.path.isfile(im):
1647
  print(f"ERROR: Imatrix not found: {im}")
1648
  sys.exit(1)
1649
- tiers=["mini","compact","quality","fidelity","nano"] if args.tier=="all" else[args.tier]
1650
  if args.tier=="all" and int4_lineage_of(args.model):
1651
  if os.environ.get("ASHQ1_INCLUDE_FIDELITY")!="1" and "fidelity" in tiers:
1652
  tiers.remove("fidelity")
1653
  if os.environ.get("ASHQ1_INCLUDE_QUALITY")!="1" and "quality" in tiers:
1654
  tiers.remove("quality")
1655
- if os.environ.get("ASHQ1_INCLUDE_NANO")!="1" and "nano" in tiers:
1656
- tiers.remove("nano")
1657
- print(f" ℹ AutoRound int4 lineage — Fidelity & Quality skipped (information ceiling at Compact), Nano skipped (double-quantization collapse). Overrides: ASHQ1_INCLUDE_QUALITY=1, ASHQ1_INCLUDE_FIDELITY=1, ASHQ1_INCLUDE_NANO=1.")
 
1658
  extra_args=[]
1659
  if args.allow_q3_or_lower:extra_args.append("--allow-q3-or-lower")
1660
  extra_args.extend(["--imatrix-method",args.imatrix_method,"--lineage",args.lineage])
 
131
  DEFAULT_FLOOR="Q4_K"
132
 
133
  TIER_FLOORS={
134
+ # Pico: every cut relative to Nano flows through attn_proj (IQ3_S); MLP and
135
+ # readout classes hold the L2/L4 lines, shexp/mtp ride their effective class floors
136
+ "pico":{
137
+ "gate":"Q6_K",
138
+ "attn_proj":"IQ3_S",
139
+ "ffn_gate_up":"IQ3_S",
140
+ "ffn_down":"IQ4_XS",
141
+ "norms":"F16",
142
+ "ssm_params":"F16",
143
+ "gdn_state":"Q8_0",
144
+ "mtp":"Q5_K",
145
+ "ssm_out":"IQ4_XS",
146
+ "embd":"IQ4_XS",
147
+ "shexp":"Q4_K",
148
+ "unknown":"IQ3_S",
149
+ },
150
  "nano":{
151
  "gate":"Q6_K",
152
  "attn_proj":"IQ4_XS",
 
226
  }
227
 
228
  # Monotonic tier progression for the speculative draft head
229
+ PROFILE_MTP_TIER={"pico":"Q5_K","nano":"Q5_K","mini":"Q6_K","compact":"Q8_0"}
230
  MTP_DEPLOY_TIER="Q8_0"
231
 
232
  # Ceilings applied when weights originate from an AutoRound int4 optimization
 
310
  "ffn_up_shexp":"shexp",
311
  "ffn_down_shexp":"shexp",
312
  "ffn_gate_inp_shexp":"norms",
313
+ # LFM2.5 naming: SwiGLU triplets + short-conv mixers (add after L0 audit pass)
314
+ "w1":"ffn_gate_up",
315
+ "w3":"ffn_gate_up",
316
+ "w2":"ffn_down",
317
+ "in_proj":"attn_proj",
318
+ "conv":"gdn_state",
319
  }
320
 
321
  ARCH_FEATURES={
 
1296
  def _get_base_type(model:dict,profile:str="quality")->str:
1297
  if model.get("features",{}).get("is_qat",False):return "IQ4_XS"
1298
  return{
1299
+ "pico":"IQ3_XXS","nano":"IQ3_XXS","mini":"IQ4_XS","compact":"IQ4_XS","quality":"Q5_K_M",
1300
  "fidelity":"Q6_K",
1301
  }.get(profile,"Q5_K_M")
1302
 
 
1306
  parser.add_argument("--imatrix",action="append",default=[],help="Imatrix GGUF path (can be specified multiple times)")
1307
  parser.add_argument("--imatrix-method",choices=["max","mean"],default="max",help="How to combine multiple imatrices: max or mean")
1308
  parser.add_argument("--size",type=float,default=6800,help="Target file size in MiB")
1309
+ parser.add_argument("--profile",choices=["pico","nano","mini","compact","quality","fidelity"],default="quality",help="Quantization profile")
1310
  parser.add_argument("--lineage",choices=["auto","autoround","plain"],default="auto",help="Force output name lineage tag")
1311
  parser.add_argument("--output",default=None,help="Output GGUF path")
1312
  parser.add_argument("--run",action="store_true",help="Execute quantization")
 
1514
  # declaratively: token_embd present ∧ output absent → raise assignment
1515
  # Ratios 27/30/33/36 (+48 opt-in): monotone KLD/RMS/top-p re-validated per
1516
  # family (kld-bf16.dat reference, -fa auto)
1517
+ # Pico family — explicit-invocation only (TwIL-LM3 campaign, FA-symmetric ref):
1518
+ # 24pc floors grid: 1418 MiB eff., KLD 0.0959 / top-p 84.3 — engineered twin ties
1519
+ # (Δ0.0018 < noise) ⇒ allocation inert at constant support. Cheapest measured rung
1520
+ # on the frontier is the embd Q6_K→Q8_0 readout (Pico+, ~25.7%: 0.0914 / 85.0,
1521
+ # 0.7e-4 KLD/MiB — 4x cheaper than any layer-side step). Below it the wall bites:
1522
+ # importance-mixing at 24% regressed to 0.128 (deep IQ2 cuts landed on early
1523
+ # ffn_down — L3 blind spot of the classifier under the wall), ffn_down→IQ3_XXS
1524
+ # uniform 0.145 (4.3e-4/MiB), gate/up→IQ2_S 0.224 (cliff, 7.2e-4/MiB). Keep
1525
+ # --allow-q3-or-lower away from sub-25% grids until disproven on another family;
1526
+ # marginal sensitivities inflate as ratios drop (echoes the 39→36 wall rule).
1527
+ # Scale bound (MiniCPM5-1B, plain lineage): 24% collapses outright — KLD 0.385 /
1528
+ # top-p 66.3 / RMS 14.3 at 503 MiB, past the independent int4-collapse band
1529
+ # (0.33): two separate causes converge ⇒ ~0.33-0.40 is the entropy dissolution
1530
+ # ceiling. Marginal rate 4.1e-3 KLD/MiB at this depth — ~10x the 3B frontier.
1531
+ # Constructibility floor rises as trunks shrink: 9B comfortable @27 · 3B opens
1532
+ # @24 · 1B closed @24. Pico remains a ≥~3B proposal pending the hybrid test.
1533
+ # LFM2.5-2.6B case (mixer-dominant hybrid, 8/30 attention layers): shortconv
1534
+ # probes fell through "unknown" (parts[2] token) — yet taxonomy was NOT the
1535
+ # killer: protecting the whole mixer stack at IQ4_XS recovered only 0.030 KLD
1536
+ # (+35 MiB) while the real Nano (raise applied to the 8-layer attention band,
1537
+ # literally everything else identical) reached 0.213 from the same 0.371 base.
1538
+ # Scarce-but-critical full-attention blocks are untouchable currency there
1539
+ # (cf. attn-full-q6k / L3); blanket attn_proj cuts collapse the family below
1540
+ # Nano regardless of labeling. Measured minimum service tier: Mini. Sub-additive
1541
+ # demolition margins observed (B+C sum > A joint) — mirror image of L3's +2%
1542
+ # promotion additivity. Ranking law tripled: high-entropy models rank on
1543
+ # KLD/top-p only (KO-C: worst KLD, PPL nine points UNDER the BF16 base).
1544
  TIER_RATIOS={
1545
+ "pico":0.24,
1546
  "nano":0.27,
1547
  "mini":0.30,
1548
  "compact":0.33,
 
1554
  return TIER_RATIOS[tier]
1555
 
1556
  ALL_RATIOS=dict(TIER_RATIOS)
1557
+ TIER_DISPLAY={"pico":"Pico","nano":"Nano"}
1558
 
1559
  def tier_label(tier:str)->str:
1560
  return TIER_DISPLAY.get(tier.lower(),tier.capitalize())
 
1696
  if not os.path.isfile(im):
1697
  print(f"ERROR: Imatrix not found: {im}")
1698
  sys.exit(1)
1699
+ tiers=["mini","compact","quality","fidelity","nano","pico"] if args.tier=="all" else[args.tier]
1700
  if args.tier=="all" and int4_lineage_of(args.model):
1701
  if os.environ.get("ASHQ1_INCLUDE_FIDELITY")!="1" and "fidelity" in tiers:
1702
  tiers.remove("fidelity")
1703
  if os.environ.get("ASHQ1_INCLUDE_QUALITY")!="1" and "quality" in tiers:
1704
  tiers.remove("quality")
1705
+ if os.environ.get("ASHQ1_INCLUDE_NANO")!="1":
1706
+ for t in("nano","pico"):
1707
+ if t in tiers:tiers.remove(t)
1708
+ print(f" ℹ AutoRound int4 lineage — Fidelity & Quality skipped (information ceiling at Compact), Nano/Pico skipped (double-quantization collapse). Overrides: ASHQ1_INCLUDE_QUALITY=1, ASHQ1_INCLUDE_FIDELITY=1, ASHQ1_INCLUDE_NANO=1.")
1709
  extra_args=[]
1710
  if args.allow_q3_or_lower:extra_args.append("--allow-q3-or-lower")
1711
  extra_args.extend(["--imatrix-method",args.imatrix_method,"--lineage",args.lineage])
CHARTER.md CHANGED
@@ -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.1`.
6
 
7
  ---
8
 
@@ -37,12 +37,15 @@ inputs (magic-byte verification); KL-divergence dumps are excluded by design.
37
 
38
  ## ⚖️ 2. The Calibration Ledger (Binding Laws)
39
 
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. 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
@@ -73,7 +76,16 @@ ledger lives in `attribution-results.csv` (mix-a27ref…mix-d21ceil).
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
@@ -97,6 +109,23 @@ ledger lives in `attribution-results.csv` (mix-a27ref…mix-d21ceil).
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
@@ -134,6 +163,10 @@ GDN states at `Q8_0`.
134
  +2% across families); fold winners into floors, weights, and caps.
135
  4. Cross-family transfer requires re-running steps 1–3 — see the L0 story
136
  and the L4 discovery, both invisible on the original 4B.
 
 
 
 
137
 
138
  Diagnostic signatures (per-chunk view, `03_perplexity_test.py --detail`):
139
  starter-chunk elevation is embedding/lm_head cold-start (non-cumulative);
@@ -149,6 +182,20 @@ below the BF16 base signals over-confidence — never treat it as improvement.
149
  reports PPL, KLD, RMS Δp, top-p retention, and per-chunk tables. Reading
150
  grid: KLD < 0.02 quasi-lossless · 0.02–0.10 solid · 0.10–0.20 usable.
151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  NTFS storage aid: `compact /c /exe:xpress8k` shrinks KLD logits ~85% and
153
  BF16 GGUFs ~18% with zero effect on measurements.
154
 
@@ -178,8 +225,10 @@ previous generation's Mini while inheriting its metrics — nothing lost.
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
@@ -187,7 +236,15 @@ 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
 
@@ -218,6 +275,46 @@ gap and the minimum-tier policy holds. Ratio sensitivity near the wall scales in
218
 
219
  ---
220
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
221
  ## 🧭 7. Deployment Policy (L5)
222
 
223
  | Parameter class | Minimum recommended tier |
@@ -227,6 +324,17 @@ gap and the minimum-tier policy holds. Ratio sensitivity near the wall scales in
227
  | ~1B | Quality (36%) |
228
  | < 1B / highly specialized | Q8_0 (classical) |
229
 
 
 
 
 
 
 
 
 
 
 
 
230
  Near-lossless archival: prefer stock Q8_0 (L6 zero-crossing before 48%;
231
  effective footprint 54.1%). `ASHQ1_INCLUDE_FIDELITY=1` restores it.
232
  Targets ≳6.9 GB ride token_embd outside the budget (free-embd, Q8_0):
 
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.2.0`.
6
 
7
  ---
8
 
 
37
 
38
  ## ⚖️ 2. The Calibration Ledger (Binding Laws)
39
 
40
+ These laws are validated end-to-end on three hybrid architectures (the
41
+ qwen35 pair Qwen3.8-4B-Distill & Ornith-1.5-9B, and the mixer-dominant
42
+ LFM2.5-2.6B, shortconv 8/30-attention topology) and cross-checked on dense
43
+ archs at two scales (TwIL-LM3 3B, SmolLM3-arch tied; MiniCPM5-1B 1B,
44
+ llama-arch). They live as comments above `TIER_RATIOS` in `ASHQ1.py` and
45
+ bind every future change. L7 additionally binds `read_model`/
46
+ `optimal_classify`; L8's knockout ledger (KO-A/B/C) and the sub-Nano
47
+ compendium rows live in `attribution-results.csv`
48
+ (mix-a27ref…mix-d21ceil · lfm-pico-koa/kob/koc).
49
 
50
  - **L0 — Audit before adoption.** Every candidate family must run the
51
  audit pass (`--show-config` + effective-type inspection) before the
 
76
  under ~2.5B stop differentiating adjacent tiers: floors dominate the
77
  discretionary budget and the Compact↔Quality gap widens disproportionately
78
  (MiniCPM5-1B: KLD 0.030→0.100 crossing 33%). This motivates the
79
+ minimum-tier policy rather than code changes. Sub-Nano extension (2.2.0,
80
+ full-corpus protocol): the wall steepens monotonically as trunks shrink —
81
+ Nano→Pico steps of +16.5/+44% (dispersed-projector hybrids 4B/9B), +92%
82
+ (3B dense tied), +179% (1B dense, outright collapse: KLD 0.3854 /
83
+ top-p 66.3% at 503 MiB with ZERO discretionary mass — floors held the
84
+ entire build). Marginal rates inflate toward the wall (~2e-4 KLD/MiB at
85
+ mid-scale Mini → 4.1e-3/MiB at a 1B Pico, ten times the 3B frontier).
86
+ Two independent mechanisms sit in the same band (int4 double-quantization
87
+ 0.331 · plain floors 0.385): working entropy-dissolution ceiling
88
+ ≈ 0.33–0.40, co-signed by top-p < 70%.
89
 
90
  - **L6 — Allocation alpha decay (stock-baseline law).** Size-matched against
91
  stock quants, ASHQ1's advantage decays as the ratio rises: decisive at
 
109
  never filename-based — L0's lesson reapplied. Dose knee sits at q5_K
110
  (~5 MiB/top-p pt vs ~17 at Q6_K), archived as headroom, not adopted.
111
 
112
+ - **L8 — Cut locality beats cut depth.** Sub-Nano viability is set by the
113
+ effective coupling class a budget lands on, not by average mass. On
114
+ mixer-dominant hybrids (LFM2.5-2.6B: 8/30 full-attention layers carrying
115
+ all cross-context transfer) the Pico `attn_proj` cut lands wholly on
116
+ that band: raising the band alone — the family's own Nano delta, every
117
+ other grid line identical — restores KLD 0.213 from a 0.371 base, while
118
+ shielding the entire unclassified shortconv stack at IQ4_XS (+35 MiB)
119
+ recovers only 0.030. Taxonomy hygiene does not buy bandwidth. Archived
120
+ corollaries: the imatrix ranks sensitivity correctly (in_proj recovers
121
+ more than out_proj despite less mass) yet under-amplitude; demolition
122
+ margins are SUB-additive (split arms recover −0.044 vs joint −0.030) —
123
+ mirror image of L3's +2% composite-additivity on promotions. Dispersed-
124
+ projector hybrids spread the same nominal cut across redundant stacks
125
+ and absorb it (+16…+44%); concentrated hybrids collapse past Mini
126
+ (+73%; family minimum measured: Mini). Before quoting any sub-wall
127
+ price, identify WHERE the cut lands.
128
+
129
  ---
130
 
131
  ## 🛡️ 3. Invariant Precision Guarantees
 
163
  +2% across families); fold winners into floors, weights, and caps.
164
  4. Cross-family transfer requires re-running steps 1–3 — see the L0 story
165
  and the L4 discovery, both invisible on the original 4B.
166
+ 5. Sub-wall claims face a free control first: tier grids differing by
167
+ exactly one band ARE univariate experiments (LFM's Pico↔Nano delta
168
+ isolated the attention band at zero extra builds); spend hand-built
169
+ arms only after exploiting them.
170
 
171
  Diagnostic signatures (per-chunk view, `03_perplexity_test.py --detail`):
172
  starter-chunk elevation is embedding/lm_head cold-start (non-cumulative);
 
182
  reports PPL, KLD, RMS Δp, top-p retention, and per-chunk tables. Reading
183
  grid: KLD < 0.02 quasi-lossless · 0.02–0.10 solid · 0.10–0.20 usable.
184
 
185
+ Ranking under high base entropy: when the BF16 base runs hot and/or
186
+ off-domain, PPL columns DECORRELATE from fidelity — three independent
187
+ instances archived (Compact-LFM measured 2.6σ BELOW its base, 54.69 vs
188
+ 55.97; the least-faithful KO arm printed the trio's lowest PPL, 53.37,
189
+ nine points under base; Pico crossed under Nano on PPL while KLD/RMS/top-p
190
+ stayed strictly ordered on Ornith). In that regime, rank tiers on
191
+ KLD/top-p exclusively; PPL remains a sanity channel only.
192
+
193
+ Protocol comparability: legacy release tables ran 64-chunk windows; the
194
+ 2.2.0 sub-Nano compendium runs full-corpus passes (559–580 chunks).
195
+ Orderings and anchor reproductions agree across protocols; absolute
196
+ PPL/KLD shift a few percent — never mix protocols inside one comparison
197
+ column.
198
+
199
  NTFS storage aid: `compact /c /exe:xpress8k` shrinks KLD logits ~85% and
200
  BF16 GGUFs ~18% with zero effect on measurements.
201
 
 
225
  | Compact-33pc | 1945 MiB | 9.6292 | 0.0235 | 3.94% | 91.2% |
226
  | Mini-30pc | 1769 MiB | 9.6890 | 0.0304 | 4.42% | 90.2% |
227
  | Nano-27pc | 1593 MiB | 9.9084 | 0.0499 | 5.75% | 88.1% |
228
+ | Pico+ 25‡ | 1505 MiB | 10.3429 | 0.0914 | 7.77% | 85.0% |
229
+ | Pico-24 ‡ | 1445 MiB | 10.3800 | 0.0959 | 7.95% | 84.3% |
230
 
231
+ Ladder strictly monotone through Pico with the former Nano cliff healed in
232
  place. Dose-response probes on the tied readout (identical grids, embd
233
  IQ4_XS→q5_K→q6_K→q8_0) measured KLD 0.1213→0.0510→0.0397→0.0346 and
234
  top-p 79.6→87.1→89.1→90.4; the shipped Nano holds the 27% footprint by
 
236
  bands) and clears the pre-registered acceptance on the line itself
237
  (KLD 0.0499 vs ≤0.05, top-p 88.1 vs ≥88%) — a boundary pass, adopted
238
  without retuning per charter discipline. §7 continues to route 3–4B
239
+ deployments to Compact. Stock duels at Nano-27: pending. At the sub-Nano
240
+ edge, an ENGINEERED size-matched twin (1455 MiB, IQ3_S-broad mix, embd
241
+ Q8_0) tied Pico-24 (0.0977 vs 0.0959; Δ0.0018 < noise 0.002) while the
242
+ naive auto grid lost heavily (0.1802 at 1242 MiB): allocation is inert at
243
+ constant codebook support. Cliff map below Nano: ffn_down→IQ3_XXS 0.145
244
+ (4.3e-4/MiB); gate/up→IQ2_S 0.224 (7.2e-4/MiB); the frontier's cheapest
245
+ purchase is the readout rung embd Q6_K→Q8_0 (Pico+, 0.74e-4/MiB).
246
+ ‡ Same column legality: the Pico rows share a regenerated FA-symmetric
247
+ base whose Nano re-anchor reproduced the line above exactly (9.9084/0.0499).
248
 
249
  **Ornith-1.5-9B (hybrid, plain lineage, post L0/L4 fixes)**
250
 
 
275
 
276
  ---
277
 
278
+ ## 📉 6b. Sub-Nano Compendium (release 2.2.0 — full-corpus protocol)
279
+
280
+ One session per model, fresh symmetric base each; orderings replicate the
281
+ legacy tables above, absolutes shift a few percent (§5). The LAW lives in
282
+ the Nano→Pico KLD step per family.
283
+
284
+ | Family | Arch | Step (KLD) | Verdict |
285
+ | :--- | :--- | ---: | :--- |
286
+ | Qwen3.8-4B-Distill | GDN hybrid, dispersed | +16.5% | ✅ shippable (†) |
287
+ | Ornith-1.5-9B | GDN hybrid, dispersed | +44% | ✅ upper-usable |
288
+ | LFM2.5-2.6B | shortconv mixer, concentrated | +73% | ❌ floor = Mini |
289
+ | TwIL-LM3 | dense, tied readout | +92% | ⚠️ priced, allowed |
290
+ | MiniCPM5-1B | dense, untied 130k | +179% | ❌ collapse |
291
+
292
+ **Qwen3.8-4B extension:** Nano 2245 MiB · 9.5957 · KLD 0.0546 · top-p 88.7%
293
+ — Pico 2168 MiB · 9.6579 · 0.0636 · 87.9%. † Module economics (no-mtp
294
+ trunk, carved heads) lift effective coverage to ~27%: the optimistic
295
+ hybrid bound.
296
+
297
+ **Ornith extension:** Nano 4624 MiB · 10.1261 · 0.0907 · 87.8% — Pico
298
+ 4229 MiB · 10.1078 · 0.1309 · 85.0%. PPL inverts under strictly worse
299
+ fidelity: the §5 ranking rule in vivo.
300
+
301
+ **LFM2.5-2.6B — first full ladder (new family):** Quality 1863 MiB ·
302
+ 56.2583 · 0.0516 · 89.5% — Compact 1708 · 54.6921† · 0.0762 · 87.0% —
303
+ Mini 1554 · 56.5119 · 0.1199 · 83.9% — Nano 1399 · 61.1460 · 0.2131 ·
304
+ 78.9% — Pico 1276 · 56.7726† · 0.3707 · 72.7%. † Below-base PPL = damping
305
+ artifact, not gain. Knockout record: whole-shortconv shield at IQ4_XS
306
+ (+35 MiB) reached only 0.3403 — the band doing the damage was the 8-layer
307
+ attention stack (cf. L8). Family minimum: Mini; Compact for quality.
308
+
309
+ **MiniCPM5-1B negative anchor:** Pico 503 MiB · 37.5561 · 0.3854 ·
310
+ 14.27% · 66.3% — floors held 498.2 vs 495.7 MiB requested; constructible
311
+ set ends at Nano on this trunk.
312
+
313
+ Replication pending: Qwen3.8-27B-Ridge — decisive for the dispersed/
314
+ concentrated dichotomy at the top of the scale range.
315
+
316
+ ---
317
+
318
  ## 🧭 7. Deployment Policy (L5)
319
 
320
  | Parameter class | Minimum recommended tier |
 
324
  | ~1B | Quality (36%) |
325
  | < 1B / highly specialized | Q8_0 (classical) |
326
 
327
+ **Pico-24 service tier (2.2.0).** Catalogued, opt-in only:
328
+ `ASHQ1_INCLUDE_PICO=1` (runs last in batch; int4 lineage additionally
329
+ requires `ASHQ1_INCLUDE_NANO=1`). Validity domain measured across five
330
+ families: dispersed-projector hybrids ≥ 4B ship comfortably (Qwen-Pico
331
+ runs at Nano-effective coverage, 87.9% top-p); 9B hybrids land
332
+ upper-usable (85.0%); dense tied-readout at 3B carries a known price
333
+ (84.3%, −3.8 pts vs Nano for ~150 MiB returned to context). STAY ABOVE
334
+ this rung at ~1B (collapses outright) and on mixer-dominant topologies
335
+ (family minimum: Mini). Standing rule: what wins its duels generates
336
+ alone; what carries a known price asks first.
337
+
338
  Near-lossless archival: prefer stock Q8_0 (L6 zero-crossing before 48%;
339
  effective footprint 54.1%). `ASHQ1_INCLUDE_FIDELITY=1` restores it.
340
  Targets ≳6.9 GB ride token_embd outside the budget (free-embd, Q8_0):
README.md CHANGED
@@ -12,7 +12,7 @@ tags:
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
 
@@ -38,8 +38,9 @@ AutoRound lineage supported with explicit saturation bounds.
38
  └────────────┬────────────────────────────────────┘
39
  ▼
40
  ┌──────────────────────────────┐
41
- │ Tiers: Nano 27 · Mini 30 · │
42
- | Compact 33 · Quality 36 (%) │
 
43
  └────────────┬─────────────────┘
44
  ▼
45
  ┌──────────────────────────────────────────────┐
@@ -48,13 +49,15 @@ AutoRound lineage supported with explicit saturation bounds.
48
  └──────────────────────────────────────────────┘
49
  ```
50
 
51
- - **Measurement-backed**: the Calibration Ledger L0–L6 documents six laws,
52
  each rooted in knockout probes archived in `attribution-results.csv`.
53
- - **Four standardized tiers** on the arithmetic 27/30/33/36
54
- ladder (+Fidelity opt-in), strictly monotone in KLD/RMS/top-p on every
55
- validated family.
56
- - **Cross-family proven**: qwen35 hybrids (4B & 9B) and dense archs
57
- (SmolLM3 3B, llama 1B).
 
 
58
  - **Honest failures**: floors never lie — impossible targets warn instead of
59
  silently degrading safety classes.
60
  - **Stock-defended**: every tier wins its duel against the size-matched
@@ -66,6 +69,7 @@ AutoRound lineage supported with explicit saturation bounds.
66
 
67
  | Tier | Plain ratio | Role |
68
  | :--- | :---: | :--- |
 
69
  | **Nano** | 27% | Edge cases / maximum compression (blocked by default on int4 lineage) |
70
  | **Mini** | 30% | Minimum for ≥9B serving |
71
  | **Compact** | 33% | Minimum for 3–4B; balanced deployment |
@@ -73,9 +77,12 @@ AutoRound lineage supported with explicit saturation bounds.
73
 
74
  **Minimum-tier policy (measured, not folklore — see Charter §7).** Smaller
75
  models hit the constructibility wall sooner: a 1B below 33% stops
76
- differentiating adjacent tiers, while a 9B tolerates 30% comfortably.
77
- AutoRound-int4 lineage: practical ceiling is Compact (information ceiling at
78
- equal size); Nano excluded unless `ASHQ1_INCLUDE_NANO=1` after validation.
 
 
 
79
 
80
  ---
81
 
@@ -124,6 +131,32 @@ automatically, at zero footprint cost.
124
 
125
  ---
126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  ## 🛠️ Suite Components
128
 
129
  | Script | Purpose |
@@ -146,7 +179,7 @@ automatically, at zero footprint cost.
146
  pip install gguf numpy huggingface_hub safetensors # + auto-round/torchvision for step 00
147
  python 00_SAFETENSORS-to-AutoRound-BF16-GGUF.py # create BF16 gguf files from safetensors project, create AutoRound version with `--autoround`
148
  python 01_create-calibration-dataset-and-imatrix.py # imatrix.gguf (plain lineage)
149
- python 02_BF16-GGUF-to-ASHQ1.py # all tiers + mmproj
150
  python 03_perplexity_test.py # evaluate
151
  python 90_attribution-probe.py --list # optional: inspect probes
152
  ```
 
12
 
13
  # AutoRound & ASHQ1-Remix Suite
14
 
15
+ **Version 2.2.0** — 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
 
 
38
  └────────────┬────────────────────────────────────┘
39
  ▼
40
  ┌──────────────────────────────┐
41
+ │ Tiers: Pico 24 · Nano 27 · │
42
+ | Mini 30 · Compact 33 · │
43
+ | Quality 36 (%) │
44
  └────────────┬─────────────────┘
45
  ▼
46
  ┌──────────────────────────────────────────────┐
 
49
  └──────────────────────────────────────────────┘
50
  ```
51
 
52
+ - **Measurement-backed**: the Calibration Ledger L0–L8 documents eight laws,
53
  each rooted in knockout probes archived in `attribution-results.csv`.
54
+ - **Five catalogue ratios** on the arithmetic 24/27/30/33/36 ladder:
55
+ Pico-24 joins as a service tier (opt-in `ASHQ1_INCLUDE_PICO=1`) beside
56
+ the monotone core; Fidelity stays archival opt-in.
57
+ - **Cross-family proven**: qwen35 hybrids (4B & 9B), dense archs
58
+ (SmolLM3 3B tied, llama 1B), and the mixer-dominant LFM2.5-2.6B —
59
+ including a mapped sub-Nano validity domain (where 24% lives, and where
60
+ it must never go).
61
  - **Honest failures**: floors never lie — impossible targets warn instead of
62
  silently degrading safety classes.
63
  - **Stock-defended**: every tier wins its duel against the size-matched
 
69
 
70
  | Tier | Plain ratio | Role |
71
  | :--- | :---: | :--- |
72
+ | **Pico** | 24% | Service tier, opt-in `ASHQ1_INCLUDE_PICO=1` — tight-VRAM serving; validity ≥~4B dispersed hybrids, ≥~3B dense tied (see Charter §7) |
73
  | **Nano** | 27% | Edge cases / maximum compression (blocked by default on int4 lineage) |
74
  | **Mini** | 30% | Minimum for ≥9B serving |
75
  | **Compact** | 33% | Minimum for 3–4B; balanced deployment |
 
77
 
78
  **Minimum-tier policy (measured, not folklore — see Charter §7).** Smaller
79
  models hit the constructibility wall sooner: a 1B below 33% stops
80
+ differentiating adjacent tiers, while a 9B tolerates 30% comfortably and
81
+ rides Pico at upper-usable. Validity is architectural, not merely scalar:
82
+ dispersed-projector hybrids absorb the Pico step, mixer-dominant ones
83
+ (LFM2.5 family) bottom out at Mini (law L8). AutoRound-int4 lineage:
84
+ practical ceiling is Compact; Nano AND Pico are excluded unless
85
+ `ASHQ1_INCLUDE_NANO=1` (shared double-quantization guard).
86
 
87
  ---
88
 
 
131
 
132
  ---
133
 
134
+ ## 📉 Sub-Nano Compendium (full-corpus protocol, v2.2.0)
135
+
136
+ Orderings replicate the tables above; absolutes shift a few percent with
137
+ full 559–580-chunk passes (never mix protocols in one column — Charter §5).
138
+
139
+ | Family | Arch | Nano→Pico KLD step | Pico verdict |
140
+ | :--- | :--- | ---: | :--- |
141
+ | Qwen3.8-4B | GDN hybrid | +16.5% | ✅ 2168 MiB · 0.0636 · top-p 87.9% (effective ~27%†) |
142
+ | Ornith-1.5-9B | GDN hybrid | +44% | ✅ 4229 MiB · 0.1309 · top-p 85.0% |
143
+ | LFM2.5-2.6B | shortconv mixer | +73% | ❌ 0.3707 · 72.7% — floor is **Mini** (L8) |
144
+ | TwIL-LM3 | dense tied | +92% | ⚠️ 1445 MiB · 0.0959 · 84.3% — priced, allowed |
145
+ | MiniCPM5-1B | dense untied | +179% | ❌ 0.3854 · 66.3% — collapse; ends at Nano |
146
+
147
+ † no-mtp trunk + carved heads raise effective coverage to ~27%.
148
+
149
+ Highlights of the campaign behind these rows: the cheapest marginal ever
150
+ measured here is the readout rung embd Q6_K→Q8_0 (Pico+, TwIL
151
+ 0.0959→0.0914 / 85.0% for +60 MiB); a size-matched engineered stock twin
152
+ TIES Pico-24 (ΔKLD 0.0018 < noise) — allocation is inert at constant
153
+ codebook support; and on LFM, raising only the 8 attention layers
154
+ recovers 0.371→0.213 while shielding the whole shortconv stack recovers
155
+ just 0.030 — law **L8: cut locality beats cut depth**. Full per-tier
156
+ tables and KO records: `CHARTER.md §6b` + `attribution-results.csv`.
157
+
158
+ ---
159
+
160
  ## 🛠️ Suite Components
161
 
162
  | Script | Purpose |
 
179
  pip install gguf numpy huggingface_hub safetensors # + auto-round/torchvision for step 00
180
  python 00_SAFETENSORS-to-AutoRound-BF16-GGUF.py # create BF16 gguf files from safetensors project, create AutoRound version with `--autoround`
181
  python 01_create-calibration-dataset-and-imatrix.py # imatrix.gguf (plain lineage)
182
+ python 02_BF16-GGUF-to-ASHQ1.py # batch tiers + mmproj (optional: ASHQ1_INCLUDE_PICO=1 appends Pico-24 last)
183
  python 03_perplexity_test.py # evaluate
184
  python 90_attribution-probe.py --list # optional: inspect probes
185
  ```
USAGE.md CHANGED
@@ -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.1`).
5
 
6
  ---
7
 
@@ -60,9 +60,12 @@ python ASHQ1.py --model … --profile quality --size 2900 --show-config # dry
60
  ```
61
 
62
  Batch behavior: mmproj first (skipped if present), then Mini→Compact→Quality,
63
- Nano last (Fidelity opt-in via ASHQ1_INCLUDE_FIDELITY=1 — L6). Existing outputs are skipped; delete to regenerate.
 
 
64
  Expect an occasional `[converge] Cannot reach target` warning on small models:
65
- floors won. See §4 before reacting.
 
66
 
67
  ### Step 3 — Evaluate
68
 
@@ -97,10 +100,12 @@ probes are allowed to change.
97
 
98
  | Model class | Minimum tier | Rationale |
99
  | :--- | :--- | :--- |
100
- | ≥ 9B | **Mini (30%)** | Hybrids absorb quantization noise well; validated monotone to 27%. |
101
- | 3–4B | **Compact (33%)** | Sweet spot; Mini usable but Compact preserves headroom cheaply. |
102
- | ~1B | **Quality (36%)** | L5 wall sits between Compact/Quality; below it, tiers stop differentiating (MiniCPM5-1B: 0.0555 vs 0.0997). |
103
- | Any | Nano only for edge cases | Default-off on int4 lineage (double-quantization collapse: KLD 0.331, top-p 76.1%). |
 
 
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
 
@@ -113,6 +118,11 @@ families declare their topology during the Step-4 audit pass.
113
  Distillates specifically: budget extra margin at the entry tier (measured
114
  global degradation runs higher than dense equivalents at equal ratio).
115
 
 
 
 
 
 
116
  ---
117
 
118
  ## 🎛️ 4. Warnings & Overrides
@@ -128,6 +138,9 @@ global degradation runs higher than dense equivalents at equal ratio).
128
  | `ASHQ1_LINEAGE=auto|autoround|plain` | Force tagging when provenance absent. | — |
129
  | `LLAMA_CPP_DIR`, `LLAMA_*_PATH` | Binary resolution. | — |
130
  | `--allow-q3-or-lower` | Permit sub-IQ4_XS starts for CAN_Q3 classes. | Violates L2 — measure first. |
 
 
 
131
 
132
  ---
133
 
@@ -172,5 +185,6 @@ python 01b_BF16-GGUF-modules-fusion.py fused-model.gguf model-ASHQ1.gguf mmproj-
172
  3. Re-run Step 3 after touching tiers, lineage, calibration, or embedding
173
  allocation; compare against the family baseline tables in `README.md`.
174
  4. Before adopting any new architecture: run the Step-4 audit pass. The
175
- standard's own history (output.weight, recurrent floor) is the case study
176
- for why.
 
 
1
  # ASHQ1-Remix User Manual & Workflow Guide
2
 
3
  Practical guide for turning checkpoints into production-ready ASHQ1 GGUFs
4
+ (release `2.2.0`).
5
 
6
  ---
7
 
 
60
  ```
61
 
62
  Batch behavior: mmproj first (skipped if present), then Mini→Compact→Quality,
63
+ Nano last, Pico last-of-all (Fidelity opt-in via ASHQ1_INCLUDE_FIDELITY=1 —
64
+ L6; Pico opt-in via ASHQ1_INCLUDE_PICO=1, int4 lineage additionally requires
65
+ ASHQ1_INCLUDE_NANO=1). Existing outputs are skipped; delete to regenerate.
66
  Expect an occasional `[converge] Cannot reach target` warning on small models:
67
+ floors won — on ~1B trunks at Pico this warning MEANS collapse territory
68
+ (measured 0.3854 KLD); take the next tier instead. See §4 before reacting.
69
 
70
  ### Step 3 — Evaluate
71
 
 
100
 
101
  | Model class | Minimum tier | Rationale |
102
  | :--- | :--- | :--- |
103
+ | ≥ 9B | **Mini (30%)** | Hybrids absorb quantization noise well; validated monotone to 27%; Pico rides at upper-usable (85.0%) where VRAM demands it. |
104
+ | Hybrid ≥ 4B, tight VRAM | **Pico (24%)**, opt-in | Service tier — `ASHQ1_INCLUDE_PICO=1`. Qwen4B-Pico: 0.0636 KLD / 87.9% top-p. Not a silent default: known price, known buyer. |
105
+ | Dense tied ≥ 3B, tight VRAM | Pico knowingly | Measured price (TwIL: 84.3%, −3.8 pts vs Nano) for ~150 MiB of context headroom. |
106
+ | Mixer-dominant hybrids (LFM2.5 family) | **Mini (30%)** minimum | L8: 8/30 attention layers carry all cross-context transfer — Nano 0.213 / Pico 0.371; do not descend. |
107
+ | ~1B | **Quality (36%)** | L5 wall sits between Compact/Quality (0.0555 vs 0.0997); Pico collapses outright here (0.3854, top-p 66.3%) — hard floor. |
108
+ | Any | Nano only for edge cases | Default-off on int4 lineage (double-quantization collapse: KLD 0.331, top-p 76.1%); Pico shares that guard. |
109
 
110
  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.
111
 
 
118
  Distillates specifically: budget extra margin at the entry tier (measured
119
  global degradation runs higher than dense equivalents at equal ratio).
120
 
121
+ High-entropy / off-domain models (BF16 base ≳ 25 PPL on wiki.test.raw —
122
+ agentic/code specialits typically): ignore PPL entirely when comparing
123
+ tiers; inversions are expected and archived (three instances). Rank on
124
+ KLD/top-p only — Charter §5.
125
+
126
  ---
127
 
128
  ## 🎛️ 4. Warnings & Overrides
 
138
  | `ASHQ1_LINEAGE=auto|autoround|plain` | Force tagging when provenance absent. | — |
139
  | `LLAMA_CPP_DIR`, `LLAMA_*_PATH` | Binary resolution. | — |
140
  | `--allow-q3-or-lower` | Permit sub-IQ4_XS starts for CAN_Q3 classes. | Violates L2 — measure first. |
141
+ | `Unclassified tensors (floor-driven, N)` | Tokens absent from TENSOR_CLASS ride the generic floor (case on file: LFM `shortconv.*`, 44 tensors). | Run the L0 audit; validate any remap with a knockout FIRST — labeling proved innocent where the collapse was concerned (L8). |
142
+ | `ASHQ1_INCLUDE_PICO=1` | Appends Pico-24 last in batch; int4: pair with `ASHQ1_INCLUDE_NANO=1`. | Service tier with a published price — Charter §7/§6b. |
143
+ | PPL below base / inverted across tiers | Decorrelated metric on high-entropy or off-domain bases. | Re-rank on KLD/top-p; keep PPL as sanity check only. |
144
 
145
  ---
146
 
 
185
  3. Re-run Step 3 after touching tiers, lineage, calibration, or embedding
186
  allocation; compare against the family baseline tables in `README.md`.
187
  4. Before adopting any new architecture: run the Step-4 audit pass. The
188
+ standard's own history (output.weight, recurrent floor, LFM's
189
+ `shortconv.*` cluster) is the case study for why. Audit finds the
190
+ question; only a knockout answers it.