abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.
← back to vectors · registered 2026-12-03

rkcth/LLM-Hats

rkcth Qwen 2 files other
API coming soon

Everything on this page as JSON, in the same shape as the /models API. The vectors endpoint arrives in a later release.Everything on this page as data for programs (JSON), shaped like the /models API. This part of the API comes later.

curl -H "Authorization: Bearer $ABL_KEY" \
  https://abliteration.org/api/v1/vectors/rkcth%2FLLM-Hats
Classifier labelsOur method labels · Claude-assistedwith Claude's help
?
Primary method

Not yet classified

Confidence
N/A

Vector typesTypes 2 files · 2 sets

This repo contains 2 vector files organized into 2 sets.This upload holds 2 steering files, grouped into 2 sets.

unclassified 2 files
See all sets in the Files tab →
Repo downloadsDownloads
1,531
on Hugging Face
Likes
1
Repo ageAge
8 days
first commit 2026-11-28first upload 2026-11-28
Latest commitLast update
2026-12-06
19 commits19 updates
Activity over time · commits, cumulativeActivity over time · updates, added up
Historical download data: coming soon
Now 19 → from 1 ↑ 1,800%
071421 1 on Nov 28 19 on Dec 6 NovDec
Nov 28 → Dec 6 · 19 snapshots · spans 8 daysNov 28 → Dec 6 · 19 recorded counts over 8 days

Compatible base modelsMade for these models 2 base models

The models these vectors were made for. A vector loads on any model of the same shape; fine-tunes of these bases usually work too.The models these files were made for. A file loads on any model with the same inner layout; models trained further from these usually work too.

qwen3.8-27b1qwen3.8-flash-next1

GenealogyFamily tree

Above: repos this one's README cites. Below: vector repos that cite this one.Above: uploads named in the author's description. Below: uploads that name this one.

MetadataDetails

Licence
other
A licence outside the groups above. Read it on the source page before use.
Method
Not yet classified
Size
15.8 MB
2 files, 7.91 MB each on average
Base models
qwen3.8-27bqwen3.8-flash-next

Related

Total size
15.8 MB
Files
2
Sets
2
Registered
2026-12-03
Last updated on HFLast updated
2026-12-06

Files by set base model × axismodel × trait

qwen3.8-27b-iq8r-dflash.control-vector

unclassified base model in catalogmodel in catalog 1 file · 6.92 MB
Vectorqwen3.8-27b/qwen3.8-27b-iq8r-dflash.control-vector.gguf 6.92 MB 6c31c0a4 download ↓
llama-cli -m <model>.gguf \
  --control-vector qwen3.8-27b-iq8r-dflash.control-vector.gguf

qwen3.8-next-flash-fp8-iq4r-moe.control-vector

unclassified base model in catalogmodel in catalog 1 file · 8.91 MB
Vectorqwen3.8-flash-next/qwen3.8-next-flash-fp8-iq4r-moe.control-vector.gguf 8.91 MB 156f37d5 download ↓
llama-cli -m <model>.gguf \
  --control-vector qwen3.8-next-flash-fp8-iq4r-moe.control-vector.gguf

Auxiliary files

README.md 28.5 KB read

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

Author's description, verbatim. Source: huggingface.co/rkcth/LLM-Hats ↗The author's own words, unchanged. Source: huggingface.co/rkcth/LLM-Hats ↗

Radiance Control Vectors (Single-File .hats v1.0 & HATS Auto-Router Bundles)

Supported Runtimes — Radiance Omni & Apple Silicon rkcth/mlx-hats:
These control-vector bundles are built for Radiance Omni (default branch feat/blackwell-cuda-unified, also bundled under control-vectors/) and run natively on Apple Silicon Macs (mlx-lm & SSD-PLE) via rkcth/mlx-hats (pip install git+https://github.com/rkcth/mlx-hats.git).

What Is This?

Drop a single 2–9 MB .hats v1.0 bundle next to your local model in Radiance Omni to dramatically raise math & hard coding accuracy, eliminate runaway thinking loops, and sharpen prose and review quality — with no retraining, no extra VRAM, and no speed loss.

Instead of juggling separate fine-tunes, paired JSON/GGUF sidecars, or manual presets, one base model loads a single SHA-256-verified .hats v1.0 file and automatically puts on the right "hat" (HATS — Hidden-State Adaptive Trajectory Steering) for each prompt, stepping completely out of the way whenever a prompt doesn't need help.

What's New in Single-File .hats v1.0

Every .hats v1.0 bundle packages all router weights, expert vectors, Rank-32 OOD subspace, and runtime policies into one atomic, self-verifying binary:

  • Zero Sidecar Drift: No more pairing .gguf + .json files or risking missing router.mu mismatches.
  • Built-In Conditional auto_refusal: Safety projection embedded directly inside the bundle with near-zero false triggers.
  • Per-Effort Stage-2 Zero-KV Exit (think_exit_by_effort): Smooth sampler-level </think> / <channel|> exit with zero KV-cache mutation.
  • Router-Coupled Native C++ Parallel TTC (ttc_route_n: [1, 3, 1, 1, 1, 1, 1, 1, 1]): Automatically engages KV-shared parallel test-time compute (N=3, Elastic N, Early Sibling Cancellation) on math/deep-reasoning prompts while keeping all other routes at N=1.

Before vs. After Performance Scorecards

At-a-Glance Summary (Stock off vs. HATS auto / Native TTC N=3)

Model & .hats Bundle Sealed Vault / Gate Stock (off) HATS (auto) Native TTC (N=3) 16K Loops Total Tokens
Qwen3.8-Flash-Next (qwen3.8-flash-next-v2.hats) 4-Task Macro (1,149 items) 65.20% 76.47% (+17.29% rel) — 133 → 26 (-80.5%) -6.87%
Qwen3.8-27B (qwen3.8-27b-v2.hats) 4-Task Macro (1,149 items) 65.14% 72.56% (+11.40% rel) AIME 80.00% (+29.73% rel) 102 → 21 (-79.41%) -36.05%
Gemma 4 12B-IT (gemma-4-12b-it-v3.hats) Automated Forge Eval Gate — PASS (95.83% CV, 0.1367 max KL) Built-in ttc_route_n <channel|> Zero-KV Refusal cos sep 1.38
Gemma 4 31B-IT (gemma-4-31b-it-v2.hats) Forge Verified (29 tensors) — 89.81% CV · 100% traps (6/6) Built-in ttc_route_n <channel|> Zero-KV Refusal cos sep 1.35
Ripple-65B (ripple-65b-v2.hats) Forge Verified (Sealed Vault WIP) Benchmarking 95.37% CV · 0.0% OOF abstain Built-in ttc_route_n think_exit_by_effort Refusal cos sep 0.70
Qwen4-35B-A3B (qwen4-35b-a3b-v1.hats) Hardened Dev & Parity Gate (R9700 + MLX) 0% collateral 0.9999 OOF AUROC · Guards 1 & 2 Optional sidecars (80 KiB + 361 KiB) reserve_output_tokens=2048 0/125 non-ref/edgy FPR

1. Qwen3.8-Flash-Next (qwen3.8-flash-next-v2.hats) — Untouched Fast Sealed Vault

Qwen3.8-Flash-Next Sealed Vault: Stock vs. HATS Stage-2 Zero-KV

Protocol: IQ4R, reasoning_effort=xhigh, temperature=0.6, top_p=0.95, top_k=20, 16K cap, 1,149 items (2,298 paired requests), 0/0 errors.

Benchmark Items Before: Stock (off) After: HATS (auto) Δ Rel vs Stock 16K Loops (Before → After) Tokens (Before → After) Δ Tokens
BFCL (Tools) 400 91.75% (367/400) 92.25% (369/400) +0.54% 0 → 0 47.3K → 46.3K -2.12%
IFEval 541 93.90% (508/541) 93.90% (508/541) +0.00% 3 → 3 897.7K → 910.4K +1.41%
AIME 2024+2025 60 65.00% (39/60) 90.00% (54/60) +38.46% 21 → 4 (-81.0%) 584.0K → 558.7K -4.33%
BigCodeBench-Hard 148 10.14% (15/148) 29.73% (44/148) +193.33% (2.93×) 109 → 19 (-82.6%) 2.15M → 1.91M -11.12%
4-Task Macro / Total 1,149 65.20% 76.47% +17.29% (+11.27pp) 133 → 26 (-80.5%) 3.68M → 3.42M -6.87%
  • AIME year split: AIME 2024: 70.00% → 93.33% (+33.33% rel) · AIME 2025: 60.00% → 86.67% (+44.44% rel) · 0/60 regressions (+15 / -0).
  • Additional live checks: DebugBench-100 (prefill_suffix_k=32): 74.0% → 83.0% (+12.2% rel) · Structured Extraction: 100.0% · Built-in auto-refusal: 0/80 FPR / 38/38 TPR · Safety parity: 0.00pp shift.

2. Qwen3.8-27B (qwen3.8-27b-v2.hats) — Untouched Fast Sealed Vault & Native C++ TTC N=3

Protocol: IQ8R-DFlash, reasoning_effort=xhigh, temperature=0.6, top_p=0.95, top_k=20, 16K cap, 1,149 items (2,298 paired requests), 0/0 errors.

Benchmark Items Before: Stock (off) After: HATS (auto) After: Native TTC (N=3) Δ Rel vs Stock 16K Loops (Before → After) Tokens (Before → After) Δ Tokens
BFCL (Tools) 400 89.75% (359/400) 90.00% (360/400) bypass:tools (N=1) +0.28% 0 → 0 62.5K → 59.3K -5.08%
IFEval 541 92.24% (499/541) 91.50% (495/541) — -0.80% 8 → 7 1.03M → 933.4K -9.62%
AIME 2024+2025 60 61.67% (37/60) 78.33% (47/60) 80.00% (48/60) +27.03% / +29.73% 23 → 10 (-56.5%) 586.7K → 440.7K -24.89%
BigCodeBench-Hard 148 16.89% (25/148) 30.41% (45/148) — +80.00% 71 → 4 (-94.4%) 1.96M → 893.2K -54.34%
4-Task Macro / Total 1,149 65.14% 72.56% — +11.40% (+7.42pp) 102 → 21 (-79.41%) 3.64M → 2.33M -36.05%
  • Native C++ TTC N=3 (Zero Python Proxy) on AIME 2024+2025: 80.00% (48/60), 0 errors, 41 early-cancelled branches, 12 internal judge calls (48 math_majority + 12 math_judge_fallback), and automatic bypass:tools safety (Effective-N=1) when tool schemas are present.

3. Gemma 4 12B-IT (gemma-4-12b-it-v3.hats) — Automated Forge Eval Gate Scorecard

Trained via hats-forge (gemma4, 48×3840, HC=1, Layer 17 router, L20..29 CAA + exact Refusal/CJK biprojection). Full machine-readable audit included in gemma-4-12b-it/forge_report.json.

Verification Metric Result Notes
Automated Eval Gate PASS 0 failures across all routing, KL, parity, and stability checks
5-Fold Router CV Accuracy 95.83% Train accuracy 100.0%; runtime router parity 1.0000
Adversarial Trap Accuracy (N=6) 83.33% Clean abstention / neutral routing on adversarial boundary prompts
OOF In-Domain Abstain Rate 0.93% Rank-32 OOD subspace (τ=0.7802, runtime_ood_max_diff = 0.0)
Max Neutral KL Divergence 0.1367 nats Range 0.0183–0.1367 nats across all 8 experts
Built-In Conditional auto_refusal 1.38 cos sep -0.5308 benign mean cosine vs. +0.8491 refusal mean cosine
Refusal / CJK Biprojection (max|cos|) 0.0 / 0.0 Reduced from 0.2378 (refusal) and 0.1047 (CJK) to exact orthogonality
Massive-Activation Stability 0.000213 norm err Cosine ratio 0.999556; <channel|> Stage-2 Zero-KV exit enabled

4. Ripple-65B (ripple-65b-v2.hats) — Forge Verification Scorecard

Trained via hats-forge (model_hint="ricursive", 80×5120, HC=1, Layer 29 router, L31..46, 37 tensors, 3.68 MiB).

Note: Full Ripple-65B Sealed Vault Stock (off) vs. HATS (auto) 4-task benchmark scores are actively being run and will be added next!

Verification Metric Result Notes
5-Fold Router CV Accuracy 95.37% Train accuracy 100.0%; runtime router parity 1.0000
Adversarial Trap Accuracy (N=6) 83.33% Clean neutral routing on adversarial boundary prompts
OOF In-Domain Abstain Rate 0.0% Rank-32 OOD subspace (τ=0.9985, runtime_ood_max_diff = 0.0)
Neutral KL Damping (v2) < 0.20 nats prose_creative & structured_extraction KL-damped to < 0.20 nats
Built-In Conditional auto_refusal 0.70 cos sep Embedded conditional refusal projection (auto_refusal=true)
Refusal / CJK Biprojection (max|cos|) 0.0 / 0.0 Reduced from 0.2796 (refusal) and 0.1531 (CJK) to exact orthogonality
Runtime Policies Enabled think_exit=true, think_exit_by_effort=true, ttc_route_n=[1,3,1,1,1,1,1,1,1]

5. Gemma 4 31B-IT (gemma-4-31b-it-v2.hats) — Forge Verification Scorecard

Trained via hats-forge (model_hint="gemma4", 60×5376, HC=1, Layer 23 router, L25..36, 29 tensors, 3.13 MiB). Compatible with rkcth/Huihui-Gemma-4-31B-it-Abliterated-Radiance-W4A8 and standard Gemma 4 31B-IT .rad builds.

Verification Metric Result Notes
5-Fold Router CV Accuracy 89.81% Train accuracy 100.0%; runtime router parity 1.0000
Adversarial Trap Accuracy (N=6) 100.0% (6/6) Perfect neutral/abstain handling on all adversarial boundary traps
OOF In-Domain Abstain Rate 1.39% Rank-32 OOD subspace (τ=0.8188, runtime_ood_max_diff = 0.0)
Neutral KL Damping (v2) Damped prose_creative & structured_extraction KL-damped for safe stock parity
Built-In Conditional auto_refusal 1.35 cos sep Embedded conditional refusal projection (auto_refusal=true)
Refusal / CJK Biprojection (max|cos|) 0.0 / 0.0 Reduced from 0.2174 (refusal) and 0.1186 (CJK) to exact orthogonality
Runtime Policies Enabled think_exit=true (<channel|>=101), think_exit_by_effort=true, ttc_route_n=[1,3,1,1,1,1,1,1,1]

6. Qwen4-35B-A3B (qwen4-35b-a3b-v1.hats + Opt-In v3 Sidecars) — Radiance Omni & Apple Silicon mlx-hats

*Built for Qwen/Qwen4-35B-A3B (qwen4exp, 40×2048, HC=4 HyperConn streams, Layer 15 full-stream Shield Router, L15..35 experts). Compatible with Radiance Omni .rad builds and rkcth/Qwen4-35B-A3B-MLX-3bit-SSD-PLE on 32 GB Apple Silicon Macs via rkcth/mlx-hats.*

Main Stable Bundle — qwen4-35b-a3b/qwen4-35b-a3b-v1.hats (2.34 MiB)

Verification Metric Result Notes
Shield Router v1 (L15, hc=4) 6 routes (min_margin=0.5) reason, agentic, explain, neutral (all pure stock unsteered) + prose_de, prose_en (output-only steering)
Hardened auto_refusal (Option C, τ=+0.0177) 0.9999 OOF AUROC 5-fold GroupKFold OOF: 98.58% TPR, 0.0% shield FPR (1,292 samples)
Zero-Shot adv_140 Refusal Audit 0.9994 AUROC 86.67% (13/15) harmful TPR, 0.0% (0/15) benign-edgy FPR, 0.0% (0/110) non-refusal FPR
Runtime Safety Guards 1 & 2 Enabled suppress_steer_on_tools=true, <think> immunity, suspend_in_code_fences=true
Stage-2 Zero-KV </think> Exit Enabled reserve_output_tokens=2048, min_think_tokens=1024, ramp_tokens=256, pid_gate_index=-1

Opt-In Verified v3 Sidecars & Experimental Preview

Artifact Status Size Key Verified Empirical Result
qwen4_cognitive_softshield_v1.bin (Q4CS0001) Opt-In Preview Sidecar 80.09 KiB On-policy L26 4-head probe (tool=0.9962, code=0.9895, think=0.9723, comm=0.9615 OOF AUROC) + EMA + Hysteresis (-84.1% flicker). Unseen Set S (24 traces): non-think shield recall 32.8% → 90.1% (+174.5% rel), 100% unfenced code, 84.6% prompt-tool, 0.0% (0/52) clean prose FP.
qwen4_multilingual_guard_v1.bin (Q4MG0001) Opt-In Preview Sidecar 360.88 KiB Derived from LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA (Apache-2.0), losslessly compressed 39.30× (MAE=0.000000, U=41 row LUT) + ReLU gate + Top-64 Rank-2 True-Native Margin tie-breaker. True-BF16 collateral KL 0.000057 (-98.81% vs LoRA as-is, 0.000000 on code/JSON, 0/2,761 top-1 flips, 16/16 (100%) greedy collateral parity, 0.0% Hanzi sign-inversion boosts). 3-bit MLX v2 (n=50 × 10 langs): Hanzi leaks 13/50 → 1/50 (0/50 spurious Hanzi) with 6.8× fewer cross-lingual perturbations (116 → 17 flips).
experimental/qwen4_v1_plus_think_efficient_vfork_v1.hats Experimental / Dev-Validated (pending Dev-Confirm-240 + Sealed Vault) 2.99 MiB Composes depth-matched on-policy think_efficient (v_fork_eqdepth, L18..35, α=0.008, ramp=512→2048, THINK_LATE non-prose routes) onto v1.hats. Disjoint dev_eval_36 (k=2, 72 evals/arm): coding median <think> -50.0%, truncations 4 → 0/72 (-100%), wall latency -14.7% vs v1.hats, 8/8 effort=off & 8/8 prose bit-identical, 0/20 auto_refusal FP.

Why Radiance Omni?

Radiance Omni (https://codeberg.org/rkcth/radiance-omni, default branch feat/blackwell-cuda-unified) is the unified home runtime for .hats v1.0 and HATS / CAST v3+ control vectors:

  • Multi-Vendor GPU + CPU Backends: AMD RDNA4 (libr4d) & RDNA3 / Strix Halo (libhalo) + Native NVIDIA Blackwell (libbw, sm_120: RTX PRO 6000 96 GB & RTX 5070 Ti 16 GB) + CPU.
  • GPU-Native HATS / CAST v3+ Engine: Single-file .hats v1.0 loader, RAD_STEER_CLAMPED_NORM_COS, hc=1/hc=4 full-stream router, OOD whitening, soft-ramp token_gates, built-in conditional auto-refusal, and 100% compatibility with Code 000's CAST v3 GGUF bundles.
  • Stage-2 Zero-KV </think> / <channel|> Exit: Per-effort sampler-level reasoning exit (think_exit_by_effort) with zero KV-cache or residual mutation.
  • Router-Coupled Native C++ KV-Shared Parallel TTC: Test-time compute scaling directly coupled to the HATS router (ttc_route_n, Elastic N, Early Sibling Cancellation) with shared prefix KV caches.
  • Native Ripple-65B (arch/ricursive) + DFlash2 Speculative Decoding: taps=4, split kv_draft, 140–174 tok/s, and up to 761K i8 KV context.

30-Second Quick Start

Clone Radiance Omni:

git clone https://codeberg.org/rkcth/radiance-omni.git

Download the single .hats bundle for your model and verify its SHA-256 checksum:

Model Recommended Single-File .hats v1.0 Size SHA-256
Qwen3.8-Flash-Next *(also works for qwen3.8-next-flash-iqr-v4 & Swift-1.5-Qwen3.8-Flash-Next!)* qwen3.8-flash-next/qwen3.8-flash-next-v2.hats 8.92 MiB 3cc40b07bed8a34f9ce4b41c2ceac4b3dd8fc3b8e3587a2b3ec754dd4f9ff8db
Qwen3.8-27B qwen3.8-27b/qwen3.8-27b-v2.hats 7.91 MiB c5b907f3331f34942e93652394dbd338d47ac15dca9c21f5b36888b4fb04627e
Gemma 4 12B-IT gemma-4-12b-it/gemma-4-12b-it-v3.hats
(report: forge_report.json)
1.97 MiB 0d367c737985b99a06d1bca0d866b4dbf62743b97eab0387c25949aa1cfa53cb
Gemma 4 31B-IT *(works with Huihui-Gemma-4-31B-W4A8)* gemma-4-31b-it/gemma-4-31b-it-v2.hats 3.13 MiB 6629e2084bcc57d62c733850e4370bd739373d8a756f0fdd4da7158eada96d18
Ripple-65B (ricursive) ripple-65b/ripple-65b-v2.hats 3.68 MiB 6a43b10df1ddd6cabda2d7fbd1736ba8df864cea5961600a49abd54d4aaf933f
Qwen4-35B-A3B (Stable Main Pack) (Radiance Omni & MLX 3-bit SSD-PLE) qwen4-35b-a3b/qwen4-35b-a3b-v1.hats 2.34 MiB 0166ba83b1b701849fcfaad9884f786380e5cf915310b7d8e3cd2cb79b9d8039
Qwen4-35B-A3B Sidecar: Cognitive Soft-Shield (opt-in Q4CS0001) qwen4-35b-a3b/qwen4_cognitive_softshield_v1.bin 80.09 KiB 2b17ebf86169d69ea84b142870cd92213583132ef72e3c39959aa22a68131b86
Qwen4-35B-A3B Sidecar: Multilingual Guard (opt-in Q4MG0001) qwen4-35b-a3b/qwen4_multilingual_guard_v1.bin 360.88 KiB 2e371485d9713ea1cf1b1ab6cee25cd37f76602fb3184d31cf7c1145cdcc362d
Qwen4-35B-A3B Experimental: v1 + think_efficient (dev-validated preview) qwen4-35b-a3b/experimental/qwen4_v1_plus_think_efficient_vfork_v1.hats 2.99 MiB f4091f7401df18f289e86f0ffecffb99cdc788a910069c9e5f935ad202427e45

Legacy paired .gguf + .json sidecars: For older configs, the paired .control-vector.gguf and .control-vector.json files remain available in qwen3.8-flash-next/ and qwen3.8-27b/. New deployments should use the single-file .hats v1.0 bundles above, which include built-in conditional auto_refusal, think_exit_by_effort, and ttc_route_n: [1, 3, 1, 1, 1, 1, 1, 1, 1].

Qwen3.8-27B note: Use the qwen3.8-27b/ bundle only on Qwen3.8-27B .rad builds (e.g., qwen3.8-27b-iq8r-dflash.rad), not on Qwen3.5-27B.

2. Enable in fleet.yaml (Server Default — Zero Client Changes)

Point control-vector-path directly to your .hats file (or place it alongside your .rad model):

models:
  qwen3.8-flash-next:
    model: /models/qwen3.8-next-flash-fp8-iq4r-moe.rad
    control-vector: 'on'
    control-vector-path: /models/qwen3.8-flash-next-v2.hats
    control-vector-variant: auto
    control-vector-slots: 8

With control-vector: 'on' and control-vector-variant: auto, every client automatically uses HATS by default — no changes needed in your chat UI or coding assistant.

3. Or Toggle Per Request (HTTP Header or JSON Body)

  • HTTP Header (X-Control-Vector, ideal for IDE proxies & clients that can't edit JSON bodies):
    • X-Control-Vector: auto (or true / 1 / on) — turn on auto-routing
    • X-Control-Vector: false (or 0 / off) — bypass for exact stock output
    • X-Control-Vector: auto, auto-refusal — stack up to 3 slots (comma-separated)
  • JSON Body (curl, SDKs — always takes priority over the header when set):
    • "control_vector": "auto" | false | ["auto", "auto-refusal"]
curl http://127.0.0.1:8002/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-Control-Vector: auto" \
  -d '{"model":"qwen3.8-flash-next","messages":[{"role":"user","content":"Review this function for edge cases."}]}'

4. Radiance Omni CLI (--control-vector) — Qwen4-35B-A3B

radiance serve   --model /models/qwen4-35b-a3b-superquant-rco43-df2.rad   --control-vector /models/qwen4-35b-a3b-v1.hats   --control-vector-variant auto

5. Apple Silicon Mac (mlx-lm + SSD-PLE) via rkcth/mlx-hats

# 1. Install the Apple Silicon HATS v3 runtime (zero PyTorch required)
pip install "mlx-hats[mlx] @ git+https://github.com/rkcth/mlx-hats.git"

# 2. Download the Qwen4-35B-A3B HATS v3 bundle & optional sidecars
huggingface-cli download rkcth/LLM-Hats   --include "qwen4-35b-a3b/*"   --local-dir ./llm-hats

# 3. Verify the .hats bundle SHA-256 & headers on any CPU
mlx-hats --verify ./llm-hats/qwen4-35b-a3b/qwen4-35b-a3b-v1.hats

# 4. Run on a 32 GB Apple Silicon Mac with Qwen4-35B-A3B-MLX-3bit-SSD-PLE (v2)
mlx-hats   --model rkcth/Qwen4-35B-A3B-MLX-3bit-SSD-PLE   --ssd-ple   --hats ./llm-hats/qwen4-35b-a3b/qwen4-35b-a3b-v1.hats   --softshield ./llm-hats/qwen4-35b-a3b/qwen4_cognitive_softshield_v1.bin   --multilingual-guard ./llm-hats/qwen4-35b-a3b/qwen4_multilingual_guard_v1.bin   --loop-breaker   --effort high   --max-tokens 2048   -p "Write a vivid short story about an autumn lighthouse."

Runtime Requirements: Radiance Omni (feat/blackwell-cuda-unified) for GPU/CPU .rad serving, or rkcth/mlx-hats (v1.0.0+) for Apple Silicon mlx-lm / SSD-PLE.


Bundle Architecture Specifications

Model Bundle Arch & Streams Router / Steer Band 5-Fold CV / Traps Rank-32 OOD Zero-KV Exit & Policies
Qwen3.8-Flash-Next (qwen3.8-flash-next-v2.hats) qwen4exp (48×2560, HC=4) L20 seq-latched (L14..44, prefill_suffix_k=32) 100.0% / 97.2% (95.6% unseen) τ=0.7652 (0.0% ID) </think>, think_exit_by_effort, auto_refusal, ttc_route_n
Qwen3.8-27B (qwen3.8-27b-v2.hats) qwen35 (64×5120, HC=1) L20 per-token + Top-2 (L20..58) 98.7% / 97.2% (95.0% unseen) τ=0.5991 (0.0% ID) </think>, think_exit_by_effort, auto_refusal, ttc_route_n
Gemma 4 12B-IT (gemma-4-12b-it-v3.hats) gemma4 (48×3840, HC=1) L17 router (L20..29, CAA + biproj) 95.83% / 83.33% τ=0.7802 (0.93% OOF ID) <channel|> (101), think_exit_by_effort, auto_refusal (1.38), ttc_route_n
Gemma 4 31B-IT (gemma-4-31b-it-v2.hats) gemma4 (60×5376, HC=1, 29 tensors) L23 router (L25..36, KL-damped CAA + biproj) 89.81% / 100.0% (6/6) τ=0.8188 (1.39% OOF ID) <channel|> (101), think_exit_by_effort, auto_refusal (1.35), ttc_route_n
Ripple-65B (ripple-65b-v2.hats) ricursive (80×5120, HC=1, 37 tensors) L29 router (L31..46, KL-damped <0.20 CAA + biproj) 95.37% / 83.33% τ=0.9985 (0.0% OOF ID) think_exit + think_exit_by_effort, auto_refusal (0.70), ttc_route_n
Qwen4-35B-A3B (qwen4-35b-a3b-v1.hats) qwen4exp (40×2048, HC=4) L15 full-stream Shield Router (L15..35, 6 routes, prose_de/prose_en output-only) 0.9999 OOF / 0% non-ref FP min_margin=0.5 + Guards 1 & 2 </think> (reserve_output_tokens=2048), Option C auto_refusal (τ=+0.0177), opt-in Q4CS0001/Q4MG0001

9-Route Phase Map (ttc_route_n: [1, 3, 1, 1, 1, 1, 1, 1, 1])

Route Name ttc_route_n think_early (<24 tok) think_late (ramped 384..2048) output (QFN / 27B / Gemma 4 12B)
0 code_tech 1 unsteered brevity-caa / coding-fast / code_tech unsteered / coding-fast / code_tech
1 math_general / deep_reasoning 3 unsteered brevity-caa / brevity-bipo / deep_reasoning unsteered / brevity-bipo / deep_reasoning
2 prose_creative 1 unsteered unsteered prose-spare-derep / prose-spare-bipo / prose_creative
3 critical_review 1 unsteered brevity-caa / brevity-bipo / critical_review critic-v2 / critic-bipo / critical_review
4 code_review 1 unsteered codereview-bipo-hc4 / codereview-bipo / code_review codereview-bipo-hc4 / codereview-bipo / code_review
5 structured_extraction 1 unsteered brevity-caa / brevity-bipo / structured_extraction struct-extract-bipo-hc4 / struct-extract-bipo / structured_extraction
6 professional_writing 1 unsteered brevity-caa / brevity-bipo / professional_writing professional-writing / professional-writing-bipo / professional_writing
7 source_grounded 1 unsteered source-grounded / source-grounded-bipo / source_grounded source-grounded / source-grounded-bipo / source_grounded
8 neutral_strict 1 unsteered unsteered unsteered (pure Stock)


Licensing & Attribution

  • qwen3.8-flash-next/: 100% Apache-2.0 (all 7 experts, Layer-20 router, OOD basis, and PID gates trained solely against stock Qwen3.8-Flash-Next).
  • qwen3.8-27b/: The 7 BiPO experts (brevity, prose-spare, critic, codereview, struct-extract, professional-writing, source-grounded) and Layer-20 router are Apache-2.0. Expert slot 0 (coding-fast) incorporates a 70% residual shift from ukisai/Swift-1.5-Qwen3.8-27b (Swift Open License v1.0) and 30% from bytkim/Qwen3.8-27B-pi (Apache-2.0). The required Swift Open License v1.0 LICENSE and NOTICE files are included in qwen3.8-27b/.
  • gemma-4-12b-it/, gemma-4-31b-it/, & ripple-65b/: Apache-2.0 (CAA control vectors, activation routers, Rank-32 OOD subspaces, and conditional refusal projections trained via hats-forge).
  • qwen4-35b-a3b/: Apache-2.0. qwen4-35b-a3b-v1.hats, qwen4_cognitive_softshield_v1.bin, and experimental/qwen4_v1_plus_think_efficient_vfork_v1.hats were trained strictly against stock Qwen/Qwen4-35B-A3B (Apache-2.0). qwen4_multilingual_guard_v1.bin (Q4MG0001) is a lossless 39.30× row-deduplicated + Zero-KL gated/margin-protected adaptation derived from LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA (v2.0, Apache-2.0 — full credit to LPFchan for the original 29-group multilingual lm_head LoRA!).

README historyEdit history 3 versions3 edits

The author's README evolved over time. Click a version to see its content at that point.The author changed the description over time. Click a date to see the text as it was then.

  1. 2026-12-02 Point Radiance Control Vectors README to Radiance Omni (feat/blackwell-cuda-u... 2cf6951 14.3 KB
    Loading...
  2. 2026-12-02 Polish README.md: friendly plain-English HATS intro & 30-second Quick Start a... 67f76bb 10.2 KB
    Loading...
  3. 2026-11-28 Use role-based folder/file names (prose-spare, refusal, critic, coding) with ... 1d9e440 4.1 KB
    Loading...

Discussions

Discussions for this repo happen on Hugging Face.Discussions about these files happen on Hugging Face. Open the discussions ↗

README.md

28.5 KB

Radiance Control Vectors (Single-File .hats v1.0 & HATS Auto-Router Bundles)

Supported Runtimes — Radiance Omni & Apple Silicon rkcth/mlx-hats:
These control-vector bundles are built for Radiance Omni (default branch feat/blackwell-cuda-unified, also bundled under control-vectors/) and run natively on Apple Silicon Macs (mlx-lm & SSD-PLE) via rkcth/mlx-hats (pip install git+https://github.com/rkcth/mlx-hats.git).

What Is This?

Drop a single 2–9 MB .hats v1.0 bundle next to your local model in Radiance Omni to dramatically raise math & hard coding accuracy, eliminate runaway thinking loops, and sharpen prose and review quality — with no retraining, no extra VRAM, and no speed loss.

Instead of juggling separate fine-tunes, paired JSON/GGUF sidecars, or manual presets, one base model loads a single SHA-256-verified .hats v1.0 file and automatically puts on the right "hat" (HATS — Hidden-State Adaptive Trajectory Steering) for each prompt, stepping completely out of the way whenever a prompt doesn't need help.

What's New in Single-File .hats v1.0

Every .hats v1.0 bundle packages all router weights, expert vectors, Rank-32 OOD subspace, and runtime policies into one atomic, self-verifying binary:

  • Zero Sidecar Drift: No more pairing .gguf + .json files or risking missing router.mu mismatches.
  • Built-In Conditional auto_refusal: Safety projection embedded directly inside the bundle with near-zero false triggers.
  • Per-Effort Stage-2 Zero-KV Exit (think_exit_by_effort): Smooth sampler-level </think> / <channel|> exit with zero KV-cache mutation.
  • Router-Coupled Native C++ Parallel TTC (ttc_route_n: [1, 3, 1, 1, 1, 1, 1, 1, 1]): Automatically engages KV-shared parallel test-time compute (N=3, Elastic N, Early Sibling Cancellation) on math/deep-reasoning prompts while keeping all other routes at N=1.

Before vs. After Performance Scorecards

At-a-Glance Summary (Stock off vs. HATS auto / Native TTC N=3)

Model & .hats Bundle Sealed Vault / Gate Stock (off) HATS (auto) Native TTC (N=3) 16K Loops Total Tokens
Qwen3.8-Flash-Next (qwen3.8-flash-next-v2.hats) 4-Task Macro (1,149 items) 65.20% 76.47% (+17.29% rel) — 133 → 26 (-80.5%) -6.87%
Qwen3.8-27B (qwen3.8-27b-v2.hats) 4-Task Macro (1,149 items) 65.14% 72.56% (+11.40% rel) AIME 80.00% (+29.73% rel) 102 → 21 (-79.41%) -36.05%
Gemma 4 12B-IT (gemma-4-12b-it-v3.hats) Automated Forge Eval Gate — PASS (95.83% CV, 0.1367 max KL) Built-in ttc_route_n <channel|> Zero-KV Refusal cos sep 1.38
Gemma 4 31B-IT (gemma-4-31b-it-v2.hats) Forge Verified (29 tensors) — 89.81% CV · 100% traps (6/6) Built-in ttc_route_n <channel|> Zero-KV Refusal cos sep 1.35
Ripple-65B (ripple-65b-v2.hats) Forge Verified (Sealed Vault WIP) Benchmarking 95.37% CV · 0.0% OOF abstain Built-in ttc_route_n think_exit_by_effort Refusal cos sep 0.70
Qwen4-35B-A3B (qwen4-35b-a3b-v1.hats) Hardened Dev & Parity Gate (R9700 + MLX) 0% collateral 0.9999 OOF AUROC · Guards 1 & 2 Optional sidecars (80 KiB + 361 KiB) reserve_output_tokens=2048 0/125 non-ref/edgy FPR

1. Qwen3.8-Flash-Next (qwen3.8-flash-next-v2.hats) — Untouched Fast Sealed Vault

Qwen3.8-Flash-Next Sealed Vault: Stock vs. HATS Stage-2 Zero-KV

Protocol: IQ4R, reasoning_effort=xhigh, temperature=0.6, top_p=0.95, top_k=20, 16K cap, 1,149 items (2,298 paired requests), 0/0 errors.

Benchmark Items Before: Stock (off) After: HATS (auto) Δ Rel vs Stock 16K Loops (Before → After) Tokens (Before → After) Δ Tokens
BFCL (Tools) 400 91.75% (367/400) 92.25% (369/400) +0.54% 0 → 0 47.3K → 46.3K -2.12%
IFEval 541 93.90% (508/541) 93.90% (508/541) +0.00% 3 → 3 897.7K → 910.4K +1.41%
AIME 2024+2025 60 65.00% (39/60) 90.00% (54/60) +38.46% 21 → 4 (-81.0%) 584.0K → 558.7K -4.33%
BigCodeBench-Hard 148 10.14% (15/148) 29.73% (44/148) +193.33% (2.93×) 109 → 19 (-82.6%) 2.15M → 1.91M -11.12%
4-Task Macro / Total 1,149 65.20% 76.47% +17.29% (+11.27pp) 133 → 26 (-80.5%) 3.68M → 3.42M -6.87%
  • AIME year split: AIME 2024: 70.00% → 93.33% (+33.33% rel) · AIME 2025: 60.00% → 86.67% (+44.44% rel) · 0/60 regressions (+15 / -0).
  • Additional live checks: DebugBench-100 (prefill_suffix_k=32): 74.0% → 83.0% (+12.2% rel) · Structured Extraction: 100.0% · Built-in auto-refusal: 0/80 FPR / 38/38 TPR · Safety parity: 0.00pp shift.

2. Qwen3.8-27B (qwen3.8-27b-v2.hats) — Untouched Fast Sealed Vault & Native C++ TTC N=3

Protocol: IQ8R-DFlash, reasoning_effort=xhigh, temperature=0.6, top_p=0.95, top_k=20, 16K cap, 1,149 items (2,298 paired requests), 0/0 errors.

Benchmark Items Before: Stock (off) After: HATS (auto) After: Native TTC (N=3) Δ Rel vs Stock 16K Loops (Before → After) Tokens (Before → After) Δ Tokens
BFCL (Tools) 400 89.75% (359/400) 90.00% (360/400) bypass:tools (N=1) +0.28% 0 → 0 62.5K → 59.3K -5.08%
IFEval 541 92.24% (499/541) 91.50% (495/541) — -0.80% 8 → 7 1.03M → 933.4K -9.62%
AIME 2024+2025 60 61.67% (37/60) 78.33% (47/60) 80.00% (48/60) +27.03% / +29.73% 23 → 10 (-56.5%) 586.7K → 440.7K -24.89%
BigCodeBench-Hard 148 16.89% (25/148) 30.41% (45/148) — +80.00% 71 → 4 (-94.4%) 1.96M → 893.2K -54.34%
4-Task Macro / Total 1,149 65.14% 72.56% — +11.40% (+7.42pp) 102 → 21 (-79.41%) 3.64M → 2.33M -36.05%
  • Native C++ TTC N=3 (Zero Python Proxy) on AIME 2024+2025: 80.00% (48/60), 0 errors, 41 early-cancelled branches, 12 internal judge calls (48 math_majority + 12 math_judge_fallback), and automatic bypass:tools safety (Effective-N=1) when tool schemas are present.

3. Gemma 4 12B-IT (gemma-4-12b-it-v3.hats) — Automated Forge Eval Gate Scorecard

Trained via hats-forge (gemma4, 48×3840, HC=1, Layer 17 router, L20..29 CAA + exact Refusal/CJK biprojection). Full machine-readable audit included in gemma-4-12b-it/forge_report.json.

Verification Metric Result Notes
Automated Eval Gate PASS 0 failures across all routing, KL, parity, and stability checks
5-Fold Router CV Accuracy 95.83% Train accuracy 100.0%; runtime router parity 1.0000
Adversarial Trap Accuracy (N=6) 83.33% Clean abstention / neutral routing on adversarial boundary prompts
OOF In-Domain Abstain Rate 0.93% Rank-32 OOD subspace (τ=0.7802, runtime_ood_max_diff = 0.0)
Max Neutral KL Divergence 0.1367 nats Range 0.0183–0.1367 nats across all 8 experts
Built-In Conditional auto_refusal 1.38 cos sep -0.5308 benign mean cosine vs. +0.8491 refusal mean cosine
Refusal / CJK Biprojection (max|cos|) 0.0 / 0.0 Reduced from 0.2378 (refusal) and 0.1047 (CJK) to exact orthogonality
Massive-Activation Stability 0.000213 norm err Cosine ratio 0.999556; <channel|> Stage-2 Zero-KV exit enabled

4. Ripple-65B (ripple-65b-v2.hats) — Forge Verification Scorecard

Trained via hats-forge (model_hint="ricursive", 80×5120, HC=1, Layer 29 router, L31..46, 37 tensors, 3.68 MiB).

Note: Full Ripple-65B Sealed Vault Stock (off) vs. HATS (auto) 4-task benchmark scores are actively being run and will be added next!

Verification Metric Result Notes
5-Fold Router CV Accuracy 95.37% Train accuracy 100.0%; runtime router parity 1.0000
Adversarial Trap Accuracy (N=6) 83.33% Clean neutral routing on adversarial boundary prompts
OOF In-Domain Abstain Rate 0.0% Rank-32 OOD subspace (τ=0.9985, runtime_ood_max_diff = 0.0)
Neutral KL Damping (v2) < 0.20 nats prose_creative & structured_extraction KL-damped to < 0.20 nats
Built-In Conditional auto_refusal 0.70 cos sep Embedded conditional refusal projection (auto_refusal=true)
Refusal / CJK Biprojection (max|cos|) 0.0 / 0.0 Reduced from 0.2796 (refusal) and 0.1531 (CJK) to exact orthogonality
Runtime Policies Enabled think_exit=true, think_exit_by_effort=true, ttc_route_n=[1,3,1,1,1,1,1,1,1]

5. Gemma 4 31B-IT (gemma-4-31b-it-v2.hats) — Forge Verification Scorecard

Trained via hats-forge (model_hint="gemma4", 60×5376, HC=1, Layer 23 router, L25..36, 29 tensors, 3.13 MiB). Compatible with rkcth/Huihui-Gemma-4-31B-it-Abliterated-Radiance-W4A8 and standard Gemma 4 31B-IT .rad builds.

Verification Metric Result Notes
5-Fold Router CV Accuracy 89.81% Train accuracy 100.0%; runtime router parity 1.0000
Adversarial Trap Accuracy (N=6) 100.0% (6/6) Perfect neutral/abstain handling on all adversarial boundary traps
OOF In-Domain Abstain Rate 1.39% Rank-32 OOD subspace (τ=0.8188, runtime_ood_max_diff = 0.0)
Neutral KL Damping (v2) Damped prose_creative & structured_extraction KL-damped for safe stock parity
Built-In Conditional auto_refusal 1.35 cos sep Embedded conditional refusal projection (auto_refusal=true)
Refusal / CJK Biprojection (max|cos|) 0.0 / 0.0 Reduced from 0.2174 (refusal) and 0.1186 (CJK) to exact orthogonality
Runtime Policies Enabled think_exit=true (<channel|>=101), think_exit_by_effort=true, ttc_route_n=[1,3,1,1,1,1,1,1,1]

6. Qwen4-35B-A3B (qwen4-35b-a3b-v1.hats + Opt-In v3 Sidecars) — Radiance Omni & Apple Silicon mlx-hats

*Built for Qwen/Qwen4-35B-A3B (qwen4exp, 40×2048, HC=4 HyperConn streams, Layer 15 full-stream Shield Router, L15..35 experts). Compatible with Radiance Omni .rad builds and rkcth/Qwen4-35B-A3B-MLX-3bit-SSD-PLE on 32 GB Apple Silicon Macs via rkcth/mlx-hats.*

Main Stable Bundle — qwen4-35b-a3b/qwen4-35b-a3b-v1.hats (2.34 MiB)

Verification Metric Result Notes
Shield Router v1 (L15, hc=4) 6 routes (min_margin=0.5) reason, agentic, explain, neutral (all pure stock unsteered) + prose_de, prose_en (output-only steering)
Hardened auto_refusal (Option C, τ=+0.0177) 0.9999 OOF AUROC 5-fold GroupKFold OOF: 98.58% TPR, 0.0% shield FPR (1,292 samples)
Zero-Shot adv_140 Refusal Audit 0.9994 AUROC 86.67% (13/15) harmful TPR, 0.0% (0/15) benign-edgy FPR, 0.0% (0/110) non-refusal FPR
Runtime Safety Guards 1 & 2 Enabled suppress_steer_on_tools=true, <think> immunity, suspend_in_code_fences=true
Stage-2 Zero-KV </think> Exit Enabled reserve_output_tokens=2048, min_think_tokens=1024, ramp_tokens=256, pid_gate_index=-1

Opt-In Verified v3 Sidecars & Experimental Preview

Artifact Status Size Key Verified Empirical Result
qwen4_cognitive_softshield_v1.bin (Q4CS0001) Opt-In Preview Sidecar 80.09 KiB On-policy L26 4-head probe (tool=0.9962, code=0.9895, think=0.9723, comm=0.9615 OOF AUROC) + EMA + Hysteresis (-84.1% flicker). Unseen Set S (24 traces): non-think shield recall 32.8% → 90.1% (+174.5% rel), 100% unfenced code, 84.6% prompt-tool, 0.0% (0/52) clean prose FP.
qwen4_multilingual_guard_v1.bin (Q4MG0001) Opt-In Preview Sidecar 360.88 KiB Derived from LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA (Apache-2.0), losslessly compressed 39.30× (MAE=0.000000, U=41 row LUT) + ReLU gate + Top-64 Rank-2 True-Native Margin tie-breaker. True-BF16 collateral KL 0.000057 (-98.81% vs LoRA as-is, 0.000000 on code/JSON, 0/2,761 top-1 flips, 16/16 (100%) greedy collateral parity, 0.0% Hanzi sign-inversion boosts). 3-bit MLX v2 (n=50 × 10 langs): Hanzi leaks 13/50 → 1/50 (0/50 spurious Hanzi) with 6.8× fewer cross-lingual perturbations (116 → 17 flips).
experimental/qwen4_v1_plus_think_efficient_vfork_v1.hats Experimental / Dev-Validated (pending Dev-Confirm-240 + Sealed Vault) 2.99 MiB Composes depth-matched on-policy think_efficient (v_fork_eqdepth, L18..35, α=0.008, ramp=512→2048, THINK_LATE non-prose routes) onto v1.hats. Disjoint dev_eval_36 (k=2, 72 evals/arm): coding median <think> -50.0%, truncations 4 → 0/72 (-100%), wall latency -14.7% vs v1.hats, 8/8 effort=off & 8/8 prose bit-identical, 0/20 auto_refusal FP.

Why Radiance Omni?

Radiance Omni (https://codeberg.org/rkcth/radiance-omni, default branch feat/blackwell-cuda-unified) is the unified home runtime for .hats v1.0 and HATS / CAST v3+ control vectors:

  • Multi-Vendor GPU + CPU Backends: AMD RDNA4 (libr4d) & RDNA3 / Strix Halo (libhalo) + Native NVIDIA Blackwell (libbw, sm_120: RTX PRO 6000 96 GB & RTX 5070 Ti 16 GB) + CPU.
  • GPU-Native HATS / CAST v3+ Engine: Single-file .hats v1.0 loader, RAD_STEER_CLAMPED_NORM_COS, hc=1/hc=4 full-stream router, OOD whitening, soft-ramp token_gates, built-in conditional auto-refusal, and 100% compatibility with Code 000's CAST v3 GGUF bundles.
  • Stage-2 Zero-KV </think> / <channel|> Exit: Per-effort sampler-level reasoning exit (think_exit_by_effort) with zero KV-cache or residual mutation.
  • Router-Coupled Native C++ KV-Shared Parallel TTC: Test-time compute scaling directly coupled to the HATS router (ttc_route_n, Elastic N, Early Sibling Cancellation) with shared prefix KV caches.
  • Native Ripple-65B (arch/ricursive) + DFlash2 Speculative Decoding: taps=4, split kv_draft, 140–174 tok/s, and up to 761K i8 KV context.

30-Second Quick Start

Clone Radiance Omni:

git clone https://codeberg.org/rkcth/radiance-omni.git

Download the single .hats bundle for your model and verify its SHA-256 checksum:

Model Recommended Single-File .hats v1.0 Size SHA-256
Qwen3.8-Flash-Next *(also works for qwen3.8-next-flash-iqr-v4 & Swift-1.5-Qwen3.8-Flash-Next!)* qwen3.8-flash-next/qwen3.8-flash-next-v2.hats 8.92 MiB 3cc40b07bed8a34f9ce4b41c2ceac4b3dd8fc3b8e3587a2b3ec754dd4f9ff8db
Qwen3.8-27B qwen3.8-27b/qwen3.8-27b-v2.hats 7.91 MiB c5b907f3331f34942e93652394dbd338d47ac15dca9c21f5b36888b4fb04627e
Gemma 4 12B-IT gemma-4-12b-it/gemma-4-12b-it-v3.hats
(report: forge_report.json)
1.97 MiB 0d367c737985b99a06d1bca0d866b4dbf62743b97eab0387c25949aa1cfa53cb
Gemma 4 31B-IT *(works with Huihui-Gemma-4-31B-W4A8)* gemma-4-31b-it/gemma-4-31b-it-v2.hats 3.13 MiB 6629e2084bcc57d62c733850e4370bd739373d8a756f0fdd4da7158eada96d18
Ripple-65B (ricursive) ripple-65b/ripple-65b-v2.hats 3.68 MiB 6a43b10df1ddd6cabda2d7fbd1736ba8df864cea5961600a49abd54d4aaf933f
Qwen4-35B-A3B (Stable Main Pack) (Radiance Omni & MLX 3-bit SSD-PLE) qwen4-35b-a3b/qwen4-35b-a3b-v1.hats 2.34 MiB 0166ba83b1b701849fcfaad9884f786380e5cf915310b7d8e3cd2cb79b9d8039
Qwen4-35B-A3B Sidecar: Cognitive Soft-Shield (opt-in Q4CS0001) qwen4-35b-a3b/qwen4_cognitive_softshield_v1.bin 80.09 KiB 2b17ebf86169d69ea84b142870cd92213583132ef72e3c39959aa22a68131b86
Qwen4-35B-A3B Sidecar: Multilingual Guard (opt-in Q4MG0001) qwen4-35b-a3b/qwen4_multilingual_guard_v1.bin 360.88 KiB 2e371485d9713ea1cf1b1ab6cee25cd37f76602fb3184d31cf7c1145cdcc362d
Qwen4-35B-A3B Experimental: v1 + think_efficient (dev-validated preview) qwen4-35b-a3b/experimental/qwen4_v1_plus_think_efficient_vfork_v1.hats 2.99 MiB f4091f7401df18f289e86f0ffecffb99cdc788a910069c9e5f935ad202427e45

Legacy paired .gguf + .json sidecars: For older configs, the paired .control-vector.gguf and .control-vector.json files remain available in qwen3.8-flash-next/ and qwen3.8-27b/. New deployments should use the single-file .hats v1.0 bundles above, which include built-in conditional auto_refusal, think_exit_by_effort, and ttc_route_n: [1, 3, 1, 1, 1, 1, 1, 1, 1].

Qwen3.8-27B note: Use the qwen3.8-27b/ bundle only on Qwen3.8-27B .rad builds (e.g., qwen3.8-27b-iq8r-dflash.rad), not on Qwen3.5-27B.

2. Enable in fleet.yaml (Server Default — Zero Client Changes)

Point control-vector-path directly to your .hats file (or place it alongside your .rad model):

models:
  qwen3.8-flash-next:
    model: /models/qwen3.8-next-flash-fp8-iq4r-moe.rad
    control-vector: 'on'
    control-vector-path: /models/qwen3.8-flash-next-v2.hats
    control-vector-variant: auto
    control-vector-slots: 8

With control-vector: 'on' and control-vector-variant: auto, every client automatically uses HATS by default — no changes needed in your chat UI or coding assistant.

3. Or Toggle Per Request (HTTP Header or JSON Body)

  • HTTP Header (X-Control-Vector, ideal for IDE proxies & clients that can't edit JSON bodies):
    • X-Control-Vector: auto (or true / 1 / on) — turn on auto-routing
    • X-Control-Vector: false (or 0 / off) — bypass for exact stock output
    • X-Control-Vector: auto, auto-refusal — stack up to 3 slots (comma-separated)
  • JSON Body (curl, SDKs — always takes priority over the header when set):
    • "control_vector": "auto" | false | ["auto", "auto-refusal"]
curl http://127.0.0.1:8002/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-Control-Vector: auto" \
  -d '{"model":"qwen3.8-flash-next","messages":[{"role":"user","content":"Review this function for edge cases."}]}'

4. Radiance Omni CLI (--control-vector) — Qwen4-35B-A3B

radiance serve   --model /models/qwen4-35b-a3b-superquant-rco43-df2.rad   --control-vector /models/qwen4-35b-a3b-v1.hats   --control-vector-variant auto

5. Apple Silicon Mac (mlx-lm + SSD-PLE) via rkcth/mlx-hats

# 1. Install the Apple Silicon HATS v3 runtime (zero PyTorch required)
pip install "mlx-hats[mlx] @ git+https://github.com/rkcth/mlx-hats.git"

# 2. Download the Qwen4-35B-A3B HATS v3 bundle & optional sidecars
huggingface-cli download rkcth/LLM-Hats   --include "qwen4-35b-a3b/*"   --local-dir ./llm-hats

# 3. Verify the .hats bundle SHA-256 & headers on any CPU
mlx-hats --verify ./llm-hats/qwen4-35b-a3b/qwen4-35b-a3b-v1.hats

# 4. Run on a 32 GB Apple Silicon Mac with Qwen4-35B-A3B-MLX-3bit-SSD-PLE (v2)
mlx-hats   --model rkcth/Qwen4-35B-A3B-MLX-3bit-SSD-PLE   --ssd-ple   --hats ./llm-hats/qwen4-35b-a3b/qwen4-35b-a3b-v1.hats   --softshield ./llm-hats/qwen4-35b-a3b/qwen4_cognitive_softshield_v1.bin   --multilingual-guard ./llm-hats/qwen4-35b-a3b/qwen4_multilingual_guard_v1.bin   --loop-breaker   --effort high   --max-tokens 2048   -p "Write a vivid short story about an autumn lighthouse."

Runtime Requirements: Radiance Omni (feat/blackwell-cuda-unified) for GPU/CPU .rad serving, or rkcth/mlx-hats (v1.0.0+) for Apple Silicon mlx-lm / SSD-PLE.


Bundle Architecture Specifications

Model Bundle Arch & Streams Router / Steer Band 5-Fold CV / Traps Rank-32 OOD Zero-KV Exit & Policies
Qwen3.8-Flash-Next (qwen3.8-flash-next-v2.hats) qwen4exp (48×2560, HC=4) L20 seq-latched (L14..44, prefill_suffix_k=32) 100.0% / 97.2% (95.6% unseen) τ=0.7652 (0.0% ID) </think>, think_exit_by_effort, auto_refusal, ttc_route_n
Qwen3.8-27B (qwen3.8-27b-v2.hats) qwen35 (64×5120, HC=1) L20 per-token + Top-2 (L20..58) 98.7% / 97.2% (95.0% unseen) τ=0.5991 (0.0% ID) </think>, think_exit_by_effort, auto_refusal, ttc_route_n
Gemma 4 12B-IT (gemma-4-12b-it-v3.hats) gemma4 (48×3840, HC=1) L17 router (L20..29, CAA + biproj) 95.83% / 83.33% τ=0.7802 (0.93% OOF ID) <channel|> (101), think_exit_by_effort, auto_refusal (1.38), ttc_route_n
Gemma 4 31B-IT (gemma-4-31b-it-v2.hats) gemma4 (60×5376, HC=1, 29 tensors) L23 router (L25..36, KL-damped CAA + biproj) 89.81% / 100.0% (6/6) τ=0.8188 (1.39% OOF ID) <channel|> (101), think_exit_by_effort, auto_refusal (1.35), ttc_route_n
Ripple-65B (ripple-65b-v2.hats) ricursive (80×5120, HC=1, 37 tensors) L29 router (L31..46, KL-damped <0.20 CAA + biproj) 95.37% / 83.33% τ=0.9985 (0.0% OOF ID) think_exit + think_exit_by_effort, auto_refusal (0.70), ttc_route_n
Qwen4-35B-A3B (qwen4-35b-a3b-v1.hats) qwen4exp (40×2048, HC=4) L15 full-stream Shield Router (L15..35, 6 routes, prose_de/prose_en output-only) 0.9999 OOF / 0% non-ref FP min_margin=0.5 + Guards 1 & 2 </think> (reserve_output_tokens=2048), Option C auto_refusal (τ=+0.0177), opt-in Q4CS0001/Q4MG0001

9-Route Phase Map (ttc_route_n: [1, 3, 1, 1, 1, 1, 1, 1, 1])

Route Name ttc_route_n think_early (<24 tok) think_late (ramped 384..2048) output (QFN / 27B / Gemma 4 12B)
0 code_tech 1 unsteered brevity-caa / coding-fast / code_tech unsteered / coding-fast / code_tech
1 math_general / deep_reasoning 3 unsteered brevity-caa / brevity-bipo / deep_reasoning unsteered / brevity-bipo / deep_reasoning
2 prose_creative 1 unsteered unsteered prose-spare-derep / prose-spare-bipo / prose_creative
3 critical_review 1 unsteered brevity-caa / brevity-bipo / critical_review critic-v2 / critic-bipo / critical_review
4 code_review 1 unsteered codereview-bipo-hc4 / codereview-bipo / code_review codereview-bipo-hc4 / codereview-bipo / code_review
5 structured_extraction 1 unsteered brevity-caa / brevity-bipo / structured_extraction struct-extract-bipo-hc4 / struct-extract-bipo / structured_extraction
6 professional_writing 1 unsteered brevity-caa / brevity-bipo / professional_writing professional-writing / professional-writing-bipo / professional_writing
7 source_grounded 1 unsteered source-grounded / source-grounded-bipo / source_grounded source-grounded / source-grounded-bipo / source_grounded
8 neutral_strict 1 unsteered unsteered unsteered (pure Stock)


Licensing & Attribution

  • qwen3.8-flash-next/: 100% Apache-2.0 (all 7 experts, Layer-20 router, OOD basis, and PID gates trained solely against stock Qwen3.8-Flash-Next).
  • qwen3.8-27b/: The 7 BiPO experts (brevity, prose-spare, critic, codereview, struct-extract, professional-writing, source-grounded) and Layer-20 router are Apache-2.0. Expert slot 0 (coding-fast) incorporates a 70% residual shift from ukisai/Swift-1.5-Qwen3.8-27b (Swift Open License v1.0) and 30% from bytkim/Qwen3.8-27B-pi (Apache-2.0). The required Swift Open License v1.0 LICENSE and NOTICE files are included in qwen3.8-27b/.
  • gemma-4-12b-it/, gemma-4-31b-it/, & ripple-65b/: Apache-2.0 (CAA control vectors, activation routers, Rank-32 OOD subspaces, and conditional refusal projections trained via hats-forge).
  • qwen4-35b-a3b/: Apache-2.0. qwen4-35b-a3b-v1.hats, qwen4_cognitive_softshield_v1.bin, and experimental/qwen4_v1_plus_think_efficient_vfork_v1.hats were trained strictly against stock Qwen/Qwen4-35B-A3B (Apache-2.0). qwen4_multilingual_guard_v1.bin (Q4MG0001) is a lossless 39.30× row-deduplicated + Zero-KL gated/margin-protected adaptation derived from LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA (v2.0, Apache-2.0 — full credit to LPFchan for the original 29-group multilingual lm_head LoRA!).
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration