Release CAST v3 (comb_0.60): universal_v3 & dev_v3 bundles, configs, and technical paper (remove legacy v1/v2 vectors)
Browse filesFiles changed (4)
- .gitattributes+2
- README.md+46-32
- assets/before_after.pngAdded
- assets/how_it_works.pngAdded
54 unmodified lines55565754 unmodified linescast_8expert_dev_v3/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -textcast_8expert_universal_v3/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -textcast_v3_techniques.pdf filter=lfs diff=lfs merge=lfs -text54 unmodified lines555657585954 unmodified linescast_8expert_dev_v3/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -textcast_8expert_universal_v3/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -textcast_v3_techniques.pdf filter=lfs diff=lfs merge=lfs -textassets/before_after.png filter=lfs diff=lfs merge=lfs -textassets/how_it_works.png filter=lfs diff=lfs merge=lfs -text
22 unmodified lines232425262728293031323334353637383940414243444546474849505152535455565758596061626364656611 unmodified lines78798081828384858687888990919293941 unmodified line96979822 unmodified lines# HY-4-Flash CAST v3 Control Vectors (`universal_v3` & `dev_v3`)**Geometry-Preserving, Speculative-Rollback-Exact 8-Expert CAST v3 Auto-Routers (`comb_0.60`) for Hunyuan 4 Flash (`hyv4flash`) on Radiance**[](#verified-production-results-comb_060)[](#verified-production-results-comb_060)[](#verified-production-results-comb_060)[](#verified-production-results-comb_060)[](https://www.apache.org/licenses/LICENSE-2.0)</div>---## OverviewThis repository provides the **CAST v3 (`comb_0.60`)** production release bundles for **HY4-Flash** (`hyv4flash`, `hc=4` parallel residual streams, `d=3072`, 41 latent MoE layers, DFly2/MTP speculative decoding). Legacy v1/v2 bundles have been removed in favor of these verified v3 bundles.For full architectural details, proofs, and ablations, see the technical report: **[`cast_v3_techniques.pdf`](cast_v3_techniques.pdf)**.### Available Bundles| Bundle | Size | Best For | Ready-to-Run Config || :--- | :---: | :--- | :--- || **`cast_8expert_universal_v3/`** | `17.45 MB` | All-in-one daily driver (coding, EN/DE long-form prose, RAG, extraction, writing, translation, review, QA) | [`configs/radiance-auto-8expert-universal-v3.yaml`](configs/radiance-auto-8expert-universal-v3.yaml) || **`cast_8expert_dev_v3/`** | `17.45 MB` | Agentic IDE coding, competitive programming, GPU/LLM kernel engineering, ML research, deep reasoning | [`configs/radiance-auto-8expert-dev-v3.yaml`](configs/radiance-auto-8expert-dev-v3.yaml) |### Active CAST v3 Architecture (`comb_0.60`)- **Selective 6-Layer Clamped Geometry:** `clamped_norm_preserving` on `L22..27` (`c* = p50`, `taper_stream_from = 25`) prevents norm inflation and long-horizon prose collapse while keeping per-step decode overhead `<= 0.20%` up to 245K context.- **P0 Hygiene + Dual-Subspace CJK Biprojection:** `P0_no_ortho_n` + `Q_12` orthogonalization (`L14..32`) with combined `mu_zh + mu_bleed` anti-CJK biprojection (`anti_cjk_beta = 0.60` on Experts 1..7, `max_prot_cos <= 1.95e-9`), leaving Expert 0 (`code_champion`) untouched (`additive`, `think_after = 24`).- **Stateless Gate 0 `loop_brake`:** `L18` monitor -> `L18..33` (`tau_lo = 0.055`, `tau_hi = 0.210`, `scale = 1.60`, `phase_mask = 3`) breaks thinking loops without truncating legitimate Olympiad reasoning (`0` false positives).- **L18 Ridge Auto-Router (`E = 8`):** Single-pass prefill routing (`~0.05 ms`, zero extra forward pass). In `dev_v3`, `route_map[3] = [-1, 3, -1]` applies `deep_reasoning` only inside reasoning tokens and leaves final output unsteered.- **Bit-Exact DFly2 Determinism:** Set `draft-suffix-global-mib: 0` in your Radiance config (included in both YAML configs) to eliminate cross-request suffix-table jitter (`max_lp_diff = 0.0`).---## Verified Production Results (`comb_0.60`)All GPU benchmarks were executed on `hy4-flash-iqr-v4-u3.rad` (TP=2 on dual AMD Radeon AI PRO R9700 32 GB `gfx1201`, DFly2 speculative decoding enabled).| Evaluation / Gate | `cast_8expert_universal_v3` | `cast_8expert_dev_v3` || :--- | :--- | :--- |11 unmodified lines| **M3.4 `bench256k` Max Step Overhead** | **`-0.098%`** (`<= 0.3%` target) | **`+0.200%`** (`<= 0.3%` target) || **Engine Selftest & Rollback Gate** | `r4d_selftest` **`653/653`** (`0` fail) · `rollback_gate` **`4/4`** (`0` fail) | `r4d_selftest` **`653/653`** (`0` fail) · `rollback_gate` **`4/4`** (`0` fail) |---## Quickstart1. Download this repo (or just `cast_8expert_universal_v3/` or `cast_8expert_dev_v3/`).2. Point `server.radiance-home` in [`configs/radiance-auto-8expert-universal-v3.yaml`](configs/radiance-auto-8expert-universal-v3.yaml) or [`configs/radiance-auto-8expert-dev-v3.yaml`](configs/radiance-auto-8expert-dev-v3.yaml) to the bundle directory and your `radiance_home`.3. Query model `hy4-flash:auto` for CAST v3 auto-routing, or `hy4-flash` for 100% stock inference on the same server.---## SHA-256 Checksums (`comb_0.60`)```text5d74af94490daf0014622eb76c700219fcbddba73d35f4ceb9f97dfe01386e4e cast_8expert_universal_v3/vectors/hyv4flash-control-vector.gguf1 unmodified line565a44be1c69affbb58a2f26214029eec6a811fab6aa45bd77e9e5c481067507 cast_8expert_dev_v3/vectors/hyv4flash-control-vector.gguf2f97ba012a203b6d21c1c2ddf8e78736c43efeb624b0e02d38a091193e545563 cast_8expert_dev_v3/vectors/hyv4flash-control-vector.json```22 unmodified lines23242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878811 unmodified lines1001011021031041051061 unmodified line10810911011111222 unmodified lines# HY-4-Flash CAST v3 Control Vectors (`universal_v3` & `dev_v3`)**Tiny 17.5 MB runtime "behavior upgrades" for Hunyuan 4 Flash on Radiance — stop endless thinking loops, fix Chinese character leaks, write cleaner code & prose, at full speed.**[](#verified-numbers-for-nerds)[](#verified-numbers-for-nerds)[](#verified-numbers-for-nerds)[](#verified-numbers-for-nerds)[](https://www.apache.org/licenses/LICENSE-2.0)</div>---## What do these vectors actually do?**HY4-Flash** is already a strong model, but out of the box it has a few annoying habits: it sometimes gets stuck **overthinking in endless `<think>` loops**, slips random **Chinese characters** into English or German replies, or turns repetitive on long stories.Instead of fine-tuning or downloading a whole new multi-gigabyte model, a **control vector** is a tiny **17.5 MB file** that gently nudges the model's internal activations **while it generates text**:- **Stops endless thinking loops** — a built-in loop brake catches stuck reasoning and gets the model back on track, without cutting off legitimate deep math or logic.- **Fixes Chinese/CJK leaks in English & German** — removes the accidental Chinese character bleed (`0` CJK leaks across long EN/DE stories and 168-prompt checks).- **Sharper code & stricter instruction following** — rescues **+43 to +45** hard coding problems on LiveCodeBench v6 and hits **95.6%–95.8%** on IFEval with **0** infinite-thinking caps.- **Automatic 8-in-1 switching** — you don't have to pick a mode manually. On every prompt, a tiny built-in router (`0.05 ms`) detects whether you're coding, writing a story, doing RAG/JSON extraction, or solving hard math, and applies the right steering automatically.- **No weight changes & no slowdown** — runs at **~175 tok/s even at 245K context**, and you can switch between 100% stock (`hy4-flash`) and steered (`hy4-flash:auto`) on the exact same server, per request.---## Which of the two files should I pick?Both bundles are **17.5 MB**, support **English & German**, and automatically adapt to your prompt:1. **`cast_8expert_universal_v3/` — Best for everyday all-round use**Pick this if you use HY4-Flash for a bit of everything: coding, long-form creative writing (EN/DE), RAG/summaries, strict JSON extraction, professional writing, translation, and general Q&A.- Config: [`configs/radiance-auto-8expert-universal-v3.yaml`](configs/radiance-auto-8expert-universal-v3.yaml)2. **`cast_8expert_dev_v3/` — Best for heavy coding, kernels & ML research**Pick this if your main focus is agentic IDE coding, competitive programming, GPU/LLM kernel engineering, and deep math/ML reasoning (its `deep_reasoning` route steers only the thinking phase and leaves final output completely untouched).- Config: [`configs/radiance-auto-8expert-dev-v3.yaml`](configs/radiance-auto-8expert-dev-v3.yaml)---## Quickstart (3 Steps)1. Download either `cast_8expert_universal_v3/` or `cast_8expert_dev_v3/` from this repo.2. Open the matching config in [`configs/`](configs/) and set `server.radiance-home` to your downloaded bundle folder + your `radiance_home`. *(Keep `draft-suffix-global-mib: 0` enabled for bit-exact speculative decoding determinism.)*3. Start Radiance and send requests to:- **`hy4-flash:auto`** — CAST v3 auto-steering enabled- **`hy4-flash`** — 100% stock model on the exact same server---## Verified Numbers (For Nerds)Want the full technical report, math, and ablations? Read **[`cast_v3_techniques.pdf`](cast_v3_techniques.pdf)**.<details><summary><b>Click to expand full verified benchmark table & SHA-256 checksums (comb_0.60, dual R9700 TP=2)</b></summary>| Evaluation / Gate | `cast_8expert_universal_v3` | `cast_8expert_dev_v3` || :--- | :--- | :--- |11 unmodified lines| **M3.4 `bench256k` Max Step Overhead** | **`-0.098%`** (`<= 0.3%` target) | **`+0.200%`** (`<= 0.3%` target) || **Engine Selftest & Rollback Gate** | `r4d_selftest` **`653/653`** (`0` fail) · `rollback_gate` **`4/4`** (`0` fail) | `r4d_selftest` **`653/653`** (`0` fail) · `rollback_gate` **`4/4`** (`0` fail) |### SHA-256 Checksums (`comb_0.60`)```text5d74af94490daf0014622eb76c700219fcbddba73d35f4ceb9f97dfe01386e4e cast_8expert_universal_v3/vectors/hyv4flash-control-vector.gguf1 unmodified line565a44be1c69affbb58a2f26214029eec6a811fab6aa45bd77e9e5c481067507 cast_8expert_dev_v3/vectors/hyv4flash-control-vector.gguf2f97ba012a203b6d21c1c2ddf8e78736c43efeb624b0e02d38a091193e545563 cast_8expert_dev_v3/vectors/hyv4flash-control-vector.json```</details>
.gitattributes+2
README.md+46-32
assets/before_after.pngAdded

Large File Pointer Details
- SHA256: ce82fa6e26a0cee6affafcca9222c2e5bd8dfc3f63fd680e8f76e04f7ef5a11b
- Pointer size: 131 Bytes
- Size of remote file: 220 kB
assets/how_it_works.pngAdded

Large File Pointer Details
- SHA256: ca221bc2122e3b6a9b7b288e2f78f1c0cb6c1e7c29e9427c9645ecb7012348c1
- Pointer size: 131 Bytes
- Size of remote file: 279 kB