Add 4 new experts (kernel_llm_dev, legal_drafting, deep_reasoning, structured_extraction), Multi-Turn 100% upgrade, and 3 8-Expert CAST editions
Browse filesFiles changed (23)
- .gitattributes+7
- README.md+85-125
- assets/cast_7expert_diagram.svg
- assets/cast_router_metrics.svg
- cast_7expert_universal/vectors/hyv4flash-control-vector.gguf+1-1
- cast_7expert_universal/vectors/hyv4flash-control-vector.json+8-8
- cast_8expert_dev/vectors/hyv4flash-control-vector.ggufAdded+3
- cast_8expert_dev/vectors/hyv4flash-control-vector.jsonAdded+88
- cast_8expert_legal/vectors/hyv4flash-control-vector.ggufAdded+3
- cast_8expert_legal/vectors/hyv4flash-control-vector.jsonAdded+88
- cast_8expert_universal/vectors/hyv4flash-control-vector.ggufAdded+3
- cast_8expert_universal/vectors/hyv4flash-control-vector.jsonAdded+88
- configs/radiance-auto-8expert-dev.yamlAdded+39
- configs/radiance-auto-8expert-legal.yamlAdded+40
- configs/radiance-auto-8expert-universal.yamlAdded+39
- deep_reasoning/vectors/hyv4flash-control-vector.ggufAdded+3
- deep_reasoning/vectors/hyv4flash-control-vector.jsonAdded+13
- kernel_llm_dev/vectors/hyv4flash-control-vector.ggufAdded+3
- kernel_llm_dev/vectors/hyv4flash-control-vector.jsonAdded+13
- legal_drafting/vectors/hyv4flash-control-vector.ggufAdded+3
- legal_drafting/vectors/hyv4flash-control-vector.jsonAdded+13
- structured_extraction/vectors/hyv4flash-control-vector.ggufAdded+3
- structured_extraction/vectors/hyv4flash-control-vector.jsonAdded+13
43 unmodified lines44454643 unmodified linesprose_bilingual_antislop/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -textsource_grounded/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -texttranslation_editing/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -text43 unmodified lines4445464748495051525343 unmodified linesprose_bilingual_antislop/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -textsource_grounded/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -texttranslation_editing/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -textcast_8expert_dev/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -textcast_8expert_legal/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -textcast_8expert_universal/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -textdeep_reasoning/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -textkernel_llm_dev/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -textlegal_drafting/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -textstructured_extraction/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -text
16 unmodified lines171819202122232425262728293031323312 unmodified lines464748495051525315 unmodified lines6970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324416 unmodified lines- anti-overthinking- creative-writing- legal-rag---<div align="center"># HY-4-Flash Control Vector Suite & 7-Expert CAST Auto-Router**Per-stream `mHC` Additive Control Vectors & Zero-Sync Sequence-Latched CAST Auto-Routing for Hunyuan 4 Flash (`hyv4flash`) on [Radiance](https://github.com/Code000-211/RadianceHy4Flash/pull/353)**[](https://huggingface.co/Code0000/hy4-flash-control-vectors#1-official-7-benchmark-audit-code_champion-vs-stock)[](https://huggingface.co/Code0000/hy4-flash-control-vectors#1-official-7-benchmark-audit-code_champion-vs-stock)[-8b5cf6?style=for-the-badge)](https://huggingface.co/Code0000/hy4-flash-control-vectors#2-7-expert-sequence-latched-cast-auto-router)[](https://huggingface.co/Code0000/hy4-flash-control-vectors#3-bilingual-expert-geometry--domain-benchmarks)[](https://www.apache.org/licenses/LICENSE-2.0)12 unmodified lines| **Tool Calling** | **BFCL v3 Live** *(all 180 tasks)* | 80.0% (144/180) · 53.3k th | **82.2% (148/180)** · **27.7k th** | **+2.2 pp · −48.1% th** || **Factuality** | **OpenAI SimpleQA** *(200 questions)* | 23.5% (47/200) · 473k th | **27.0% (54/200)** · **243k th** | **+3.5 pp · 1.56× faster · −48.6% th** || **Science QA** | **GPQA Diamond** *(198q, `max_tokens=8192`)* | 80.81% (160/198) · 34 trunc | **81.82% (162/198)** · **14 trunc** | **+1.01 pp · 1.26× faster · −42.4% th** || **Dynamic Auto-Routing** | **7-Expert CAST Live** *(14 unseen DE+EN prompts)* | — | **14 / 14 (100.0%)** · **4/4 batch** | **96.9% 5-fold CV · 98.8% traps · 98.1% EN↔DE** || **Creative Prose** | **Artemis-31B-v1.2 Hybrid** *(8 unseen DE+EN scenes)* | 234w · 0 slop | **294w · 0 slop · 0 CJK · 0.0053 rep4** | **Richer novel cadence + zero AI-slop clichés** |15 unmodified lines| **WildBench v2 Prose (Judge)** | All 43 prompts | Baseline · `4,798` ch · `TTR 0.477` · `2` CJK | Regressions (`13` `th≤5`, `6` CJK) | `Stock 16 / Add 6 / Tie 21` · `0` CJK · **`TTR 0.561`** · **−65.5% th** | Shorter/cleaner (`−25%` len), motivating dedicated prose routing via CAST |> **Transparency Notes:**> - **GPQA Diamond Budget Trade-Off:** Under the 8,192-token generation cap, `code_champion` won overall (`81.82%` vs. `80.81%`) by cutting hard mid-`<think>` truncations from `34 → 14`. Strictly among *completed* answers (`<8,180` tokens), Stock reached `160/164 (97.56%)` vs. `162/184 (88.04%)` for `code_champion`. For uncapped 64K-token Olympiad reasoning, route to `hy4-flash` (Stock); for latency- and budget-sensitive coding/agentic workloads, use `hy4-flash:auto` or `code_champion`.> - **Why CAST Exists:** WildBench v2 showed that while `code_champion` eliminates overthinking in code/STEM/tool-calling, creative prose benefits from its own dedicated output-phase vector (`prose_artemis`) with stock thinking — which is exactly what **Sequence-Latched CAST** automates per request.> - **Why Additive (`hc_add`) Beats Classic Projection (`hc_project`):** Unbounded projection (`legacy_project_opt5`) caused `think ≤ 5` premature aborts on GPQA (`71`), BFCL (`154`), and SimpleQA (`38`). Calibrated additive steering (`L17..33`, `THINK_AFTER=24`) achieved **0 premature aborts**, **0 CJK leaks**, and beat Stock on all 6 accuracy benchmarks simultaneously.---## 2. 7-Expert Sequence-Latched CAST Auto-RouterInstead of running an external classifier LLM or introducing a CPU↔GPU synchronization stall, **CAST (`mode: "cast"`)** evaluates a compact Layer-18 ridge probe directly inside Radiance's AQL/HIP graph on the last prefill token's 4-stream `mHC` residual (`~0.05 ms`), latches the winning route into a GPU-resident per-slot table (`cast_seq_route[slot]`), and dispatches phase-specific experts for `<think>` vs. final output.### Live End-to-End 7-Expert Verification (`hy4-flash:auto` vs. Stock on Dual R9700)All 14 prompts below are **strictly unseen** (zero overlap with router or expert training), executed live on one server process with `RADIANCE_CAST_TRACE=1`:| Test ID | Expected Route | Live Latched Route | Effort | `<think>` Chars (Stock → Auto) | Output Words (Stock → Auto) | Wall Time (Stock → Auto) || :--- | :--- | :---: | :---: | :---: | :---: | :---: || `code_de_trap` *(Python novel parser)* | `code_tech` | `code_tech` ✅ | `high` | 4,441 → 1,911 (**−57%**) | 262 → 122 | 17.1 s → 7.5 s (**2.28×**) || `code_en_sql` *(Postgres `DENSE_RANK`)* | `code_tech` | `code_tech` ✅ | `high` | 5,132 → 2,180 (**−58%**) | 82 → 58 | 10.6 s → 4.7 s (**2.26×**) || `prose_de_bakery` *(DE comedy scene)* | `prose_creative` | `prose_creative` ✅ | `none` | 0 → 0 | 215 → 239 | 6.9 s → 7.1 s || `prose_en_bookshop` *(EN rom-com scene)* | `prose_creative` | `prose_creative` ✅ | `none` | 0 → 0 | 275 → 316 | 6.1 s → 5.7 s || `source_de_statute` *(Counterfactual § 19)* | `source_grounded` | `source_grounded` ✅ | `high` | 4,250 → 2,154 (**−49%**) | 48 → 26 | 9.6 s → 4.9 s (**1.96×**) || `source_en_abstract` *(Zurich pilot RAG)* | `source_grounded` | `source_grounded` ✅ | `none` | 0 → 0 | 66 → 62 | 1.1 s → 0.8 s (**1.38×**) || `general_de_coffee` *(Grinder Q&A)* | `general_qa` | `general_qa` ✅ | `high` | 5,836 → 2,702 (**−54%**) | 620 → 178 (**−71%**) | 34.3 s → 13.3 s (**2.58×**) || `general_en_sleep` *(Caffeine explainer)* | `general_qa` | `general_qa` ✅ | `none` | 0 → 0 | 301 → 306 | 4.5 s → 4.3 s || `prof_de_dentist` *(DE appointment email)* | `professional_writing` | `professional_writing` ✅ | `none` | 0 → 0 | 123 → 83 (**−33%**) | 3.1 s → 2.3 s (**1.35×**) || `prof_en_delay` *(EN milestone update)* | `professional_writing` | `professional_writing` ✅ | `none` | 0 → 0 | 98 → 103 | 1.5 s → 1.4 s || `trans_de_to_en` *(Literal novel DE→EN)* | `translation_editing` | `translation_editing` ✅ | `none` | 0 → 0 | 19 → 19 | 0.4 s → 0.3 s || `trans_en_proofread` *(Grammar-only edit)* | `translation_editing` | `translation_editing` ✅ | `none` | 0 → 0 | 12 → 12 | 0.2 s → 0.2 s || `crit_de_clause` *(Harsh BGB clause audit)* | `critical_review` | `critical_review` ✅ | `none` | 0 → 0 | 202 → 193 | 5.8 s → 5.8 s || `crit_en_prose` *(Anti-sycophancy prose)* | `critical_review` | `critical_review` ✅ | `none` | 0 → 0 | 296 → 252 | 5.1 s → 4.4 s || **Single-Turn Total** | **All 7 Classes** | **14 / 14 (100.0%)** | — | **−49% to −58% (`high`)** | — | **Up to 2.58× faster** |- **Concurrent 4-Way Mixed Batch Isolation:** **4 / 4 (100.0%)** — Simultaneous requests (`prose_creative` + `professional_writing` + `translation_editing` + `critical_review`) latched independently onto slots `0..3` with zero cross-slot bleed.- **Multi-Turn Dynamic Re-Routing:** **3 / 4 (75.0%)** — `code_tech ✅ → prose_creative ✅ → email after 159-word noir scene (latched prose_creative; output remained a clean German email) → critical_review ✅`.---## 3. Bilingual Expert Geometry & Domain Benchmarks### 3.1 Artemis-31B-v1.2 Prose Distillation A/B (8 Unseen DE+EN Scenes, 4 Genres)Distilled via on-policy matched-beat activation differences (`h(Artemis-31B-v1.2) − h(HY-4 Stock)`) across 78 clean DE+EN scenes (`cos(EN, DE) = +0.46..+0.52`, `SNR = 1.7..2.1`), then blended 50/50 with `prose_bilingual_antislop` (nearly orthogonal at `cos ≈ −0.20`):| Candidate | Avg Words | Slop Hits | CJK Leaks | Emojis | Max 4-Gram Rep | Qualitative Verdict || :--- | :---: | :---: | :---: | :---: | :---: | :--- || Stock `hy4-flash` | 234.4 | 0 | 0 | 0 | 0.0000 | Solid baseline, occasional LLM tropes || `prose_bilingual_antislop` (`s=2.20`) | 250.5 | 0 | 0 | 0 | 0.0074 | Ultra-dry, laconic, witty; occasionally terse || `prose_artemis_pure` (`s=2.10`) | 288.9 | 3 | 0 | 0 | 0.0083 | Longer flow, but re-introduces paperback clichés (*"shiver down his spine"*, *"testament to"*) || **`prose_artemis` (50/50 Hybrid, `s=2.10`)** | **293.8** | **0** | **0** | **0** | **0.0053** | **Winner — full novel cadence + concrete sensory detail + sharp humor, zero slop** || `prose_artemis_35_65` (`s=2.20`) | 289.5 | 0 | 0 | 0 | 0.0261 | Slight German case slips and higher repetition |### 3.2 Legal & Academic Source-Grounded Audit (`source_grounded`)| Regime | Arm | Parametric Leaks | Format / Lang Glitches | Finding || :--- | :--- | :---: | :---: | :--- || **Quote-Anchored Suite** *(8 DE+EN counterfactual statutes & abstracts)* | Stock | 0 | 0 | Occasional invented hypothetical clauses (96w) and textbook lecturing || **Quote-Anchored Suite** | **`source_grounded` (`s=2.50`)** | **0** | **0** | Tighter verbatim citations (`95 → 55w`, `96 → 56w`), zero invented clauses, zero CJK/EN bleed || **Quote-Anchored Suite** | `source_grounded` (`s=3.20`) | 0 | 1 | Minor EN bleed (`"corresponding p-Wert"`) — rejected in favor of `s=2.50` || **Uninstructed "No-Nag" Stress Test** *(6 statutes with zero grounding prompt)* | Stock vs. Steered | 6 (Stock) | 0 (`s=2.50`) | Without any prompt instruction, base RLHF appends external BGB citations; pair with the 1-sentence system prompt below for guaranteed `0%` external fallback |### 3.3 All 7 Specialized Experts — Signal Geometry & Orthogonality| Expert Folder | Size | Mode | Layers | Scale | Cross-Lingual `cos(EN, DE)` | Peak SNR | `cos` vs. Prose (`L24`) || :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: || `code_champion/` | 2.02 MB | `add` | L17–L33 | 0.90 | `+0.94..+0.98` *(5-dom x-dom)* | `20–38` | Separate (`<think>` only) || `prose_artemis/` | 2.02 MB | `add` | L14–L32 | 2.10 | `+0.46..+0.52` *(cross-model)* | `2.11` | `50/50` hybrid || `prose_bilingual_antislop/` | 2.02 MB | `add` | L14–L32 | 2.20 | `+0.72..+0.81` | `4.10` | `1.00` (reference) || `source_grounded/` | 2.02 MB | `add` | L14–L32 | 2.50 | `+0.77..+0.80` | `4.67` | `+0.016` (orthogonal) || `general_direct/` | 2.02 MB | `add` | L14–L32 | 1.80 | `+0.83..+0.86` | `5.14` | Distinct axis || `professional_writing/` | 2.02 MB | `add` | L14–L32 | 1.60 | `+0.84..+0.87` | `7.05` | `+0.05..+0.27` (orthogonal) || `translation_editing/` | 2.02 MB | `add` | L14–L32 | 1.60 | `+0.84..+0.90` | `4.65` | `+0.15..+0.23` (orthogonal) || `critical_review/` | 2.02 MB | `add` | L14–L32 | 1.80 | `+0.84..+0.89` | `6.84` | `+0.11..+0.23` (orthogonal) || `legacy_project_opt5/` | 4.03 MB | `project` | L15–L39 | 1.40 | Multi-domain | — | Stock-Radiance compatible |---## 4. Unedited Verbatim Side-by-Side Showcases<details><summary><b>1. Creative Prose (German & English) — Stock vs. <code>prose_artemis</code> (50/50 Hybrid)</b></summary>**German Literary (`de_lit_harbor` — retired ferry pilot recognizes a woman after 30 years):**- **Stock:** *„Er dachte an den Brief, an das Wort, das er nicht geschrieben hatte: Bleib. Stattdessen hatte er geschwiegen, dreißig Jahre lang, mit der Präzision eines Lotsen, der die Untiefen kennt und dennoch den Kurs hält.“*- **`prose_artemis`:**> *„Du hast den Brief nicht geschickt“, sagte sie.*> *Er nickte. Der Nebel drückte gegen die Scheibe.*> *„Ich hab gewartet“, sagte sie. „Nicht lange. Nur bis Dienstag.“*> *Er hielt die Tasse mit beiden Händen und sagte nichts. Die Fähre machte einen kleinen Ruck, und die Tassen klirrten gegeneinander. Draußen war das Wasser jetzt grau wie der Himmel, und man konnte die Möwen nicht mehr sehen, nur hören, wie sie gegen das Geländer schlugen.*> *„Es war ein Dienstag im November“, sagte er.***English Low-Fantasy (`en_sff_vault` — pawnbroker inspecting a bottled minute from 1812):**- **`prose_artemis_pure` (without Anti-Slop):** *"The wax seal that protected the precious contents was intact, a testament to the care and craftsmanship that had gone into creating this unique artifact."*- **`prose_artemis` (50/50 Hybrid):**> *Marek put the vial down on the counter. The Nightingale had gone out in November with a full crew and come back in January with no one in it, which was the kind of thing that made a story worth three hundred crowns if you could find a sucker who believed it. He looked at the woman for a while. She looked at the vial.*> *"Twenty," he said.*> *"Three hundred."*> *"Fifteen, because you told me the name of the boat."*> *She took it.*</details><details><summary><b>2. Anti-Sycophancy Critical Review (<code>critical_review</code>) — Legal Clause & Prose Opening</b></summary>**German Contract Clause Audit (`crit_de_clause`):**- **Stock:** Generates a 5-row `❌` emoji summary table and polite softening (*„rechtlich ziemlich angreifbar“*).- **`hy4-flash:auto` (latched `critical_review`):** Drops all emojis, cites concrete BGB sections (`§ 271`, `§ 121`, `§ 286`, `§ 323 BGB`), and delivers direct defect analysis:> ***Schonungslos:** Das ist ein Freibrief für Inkompetenz, solange sie subjektiv ehrlich erfolgt.*> ***Besser:** „nach dem Stand der Technik / anerkannten Regeln der Technik (z. B. DIN EN ISO 9001), dokumentiert in Leistungsprotokoll.“***English Prose Critique (`crit_en_prose`):**- **`hy4-flash:auto` (latched `critical_review`):**> ***2. Fake-poetic emotion.** “Symphony of heartbreak in her chest” is purple prose. It sounds like a thesaurus had a seizure. You don’t feel Elena’s pain—you feel the author straining to be profound.*> ***7. Authorial insecurity.** The line begs you to take the emotion seriously. That begging is the smell of weak writing.*</details><details><summary><b>3. Professional Writing, Faithful Translation & Counterfactual Statute Grounding</b></summary>- **`professional_writing` (`prof_de_dentist`):** Stock wrote `123` words ending with a smiley (`😊`) and filler; `hy4-flash:auto` trimmed it to a crisp, polite, **zero-emoji 83-word** German appointment email. On `prof_en_delay`, Auto replaced marketing fluff with direct executive prose: *"The team is actively completing the remaining validation checks, and we expect sign-off by Thursday. No scope or deliverable changes are associated with this update."*- **`translation_editing` (`trans_de_to_en` & `trans_en_proofread`):** Zero embellishment, zero meta-chatter:- *"He put the key on the kitchen table without turning on the light. Outside, the last tram went by."* (`19` words)- *"The benchmark run finished earlier than planned; however, two logs were missing."* (`12` words)- **`source_grounded` (`source_de_statute` — counterfactual 23-day notarized § 19):** Thinking cut **`4,250 → 2,154` chars (−49%)**, latency cut **`9.6s → 4.9s`**, verbatim quote-only output (`26` words), **zero hallucination** of German BGB 14-day withdrawal rules.</details>---## 5. Repository Structure & Quickstart### Directory Map (`43.01 MB` Total)| Folder | Size | Mode | Recommended For || :--- | :---: | :---: | :--- || `cast_7expert_universal/` | 14.50 MB | `cast` | **Flagship all-in-one 7-Expert CAST Auto-Router** || `cast_4expert_universal/` | 8.31 MB | `cast` | Lightweight 4-Expert CAST Auto-Router (Code, Artemis Prose, Legal Source, General Q&A) || `code_champion/` | 2.02 MB | `add` | Standalone Coding/STEM Anti-Overthinking (`RADIANCE_CVEC_THINK_ONLY=1 RADIANCE_CVEC_THINK_AFTER=24`) || `prose_artemis/` | 2.02 MB | `add` | Standalone Artemis-31B-v1.2 + Anti-Slop 50/50 Prose (`RADIANCE_CVEC_OUTPUT_ONLY=1`) || `prose_bilingual_antislop/` | 2.02 MB | `add` | Standalone Minimalist Bilingual Anti-Slop Prose (`RADIANCE_CVEC_OUTPUT_ONLY=1`) || `source_grounded/` | 2.02 MB | `add` | Standalone Legal/Academic Strict Citation (`RADIANCE_CVEC_OUTPUT_ONLY=1`) || `general_direct/` | 2.02 MB | `add` | Standalone Direct No-Fluff Assistant (`RADIANCE_CVEC_OUTPUT_ONLY=1`) || `professional_writing/` | 2.02 MB | `add` | Standalone Business Emails & Memos (`RADIANCE_CVEC_OUTPUT_ONLY=1`) || `translation_editing/` | 2.02 MB | `add` | Standalone Faithful DE↔EN Translation & Copy-Editing (`RADIANCE_CVEC_OUTPUT_ONLY=1`) || `critical_review/` | 2.02 MB | `add` | Standalone Anti-Sycophancy Critique (`RADIANCE_CVEC_OUTPUT_ONLY=1`) || `legacy_project_opt5/` | 4.03 MB | `project` | Stock-Radiance compatible Anti-Overthinking (no additive/CAST PR required) || `configs/` | — | YAML | Ready-to-use templates (`radiance-auto-7expert.yaml`, `radiance-auto-4expert.yaml`, `radiance-standalone.yaml`) |### Launch the 7-Expert CAST Auto-Router```bashhuggingface-cli download Code0000/hy4-flash-control-vectors --local-dir ./hy4-flash-control-vectors# Requires Radiance with CAST support (PR #353: Code000-211/RadianceHy4Flash#353)RADIANCE_CAST_TRACE=1 radiance --config ./hy4-flash-control-vectors/configs/radiance-auto-7expert.yaml```Both endpoints run simultaneously on the same loaded weights with zero reload overhead:- `model: "hy4-flash"` → **100% unmodified Stock baseline**- `model: "hy4-flash:auto"` → **7-Expert Sequence-Latched CAST Auto-Router**### Recommended System Prompt for Strict Legal / Academic Source AuditsFor guaranteed `0%` external parametric memory fallback even on short, uninstructed statutory clauses, pair `hy4-flash:auto` (or standalone `source_grounded`) with:> *Answer strictly and exclusively from the provided source passages using verbatim quotes and exact paragraph/section citations. Never draw on outside knowledge or external statutes. If a detail is not explicitly stated in the provided text, state clearly that the source contains no rule or information on it.*---16 unmodified lines17181920212223242526272829303132333412 unmodified lines474849505152535415 unmodified lines70717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320416 unmodified lines- anti-overthinking- creative-writing- legal-rag- gpu-kernels---<div align="center"># HY-4-Flash Control Vector Suite & 8-Expert CAST Auto-Routers**13 Bilingual Per-Stream `mHC` Control Vectors & 5 Sequence-Latched CAST Auto-Routers (Universal, Dev/Kernel & Legal Editions) for Hunyuan 4 Flash (`hyv4flash`) on [Radiance](https://github.com/Code000-211/RadianceHy4Flash/pull/353)**[](https://huggingface.co/Code0000/hy4-flash-control-vectors#1-official-7-benchmark-audit-code_champion-vs-stock)[](https://huggingface.co/Code0000/hy4-flash-control-vectors#1-official-7-benchmark-audit-code_champion-vs-stock)[](https://huggingface.co/Code0000/hy4-flash-control-vectors#2-8-expert-sequence-latched-cast-auto-routers)[](https://huggingface.co/Code0000/hy4-flash-control-vectors#3-bilingual-expert-geometry--domain-benchmarks)[](https://www.apache.org/licenses/LICENSE-2.0)12 unmodified lines| **Tool Calling** | **BFCL v3 Live** *(all 180 tasks)* | 80.0% (144/180) · 53.3k th | **82.2% (148/180)** · **27.7k th** | **+2.2 pp · −48.1% th** || **Factuality** | **OpenAI SimpleQA** *(200 questions)* | 23.5% (47/200) · 473k th | **27.0% (54/200)** · **243k th** | **+3.5 pp · 1.56× faster · −48.6% th** || **Science QA** | **GPQA Diamond** *(198q, `max_tokens=8192`)* | 80.81% (160/198) · 34 trunc | **81.82% (162/198)** · **14 trunc** | **+1.01 pp · 1.26× faster · −42.4% th** || **8-Expert Auto-Routing** | **Universal / Dev / Legal CAST** *(480 ST + MT)* | — | **97.5% CV · 99.0% traps · 5/5 Multi-Turn** | **14/14 Single-Turn · 4/4 Batch · 4/4 Legal Live** || **GPU Kernel & LLM Dev** | **`kernel_llm_dev`** *(ROCm/HIP/CUDA/MLA/MoE)* | Generic tutorial / hedge | **`cos(EN,DE)=+0.90` · `SNR 6.79` · 100% CV** | **Vectorized `uint4`, LDS bank-free, roofline math** |15 unmodified lines| **WildBench v2 Prose (Judge)** | All 43 prompts | Baseline · `4,798` ch · `TTR 0.477` · `2` CJK | Regressions (`13` `th≤5`, `6` CJK) | `Stock 16 / Add 6 / Tie 21` · `0` CJK · **`TTR 0.561`** · **−65.5% th** | Shorter/cleaner (`−25%` len), motivating dedicated prose routing via CAST |> **Transparency Notes:**> - **GPQA Diamond Uncapped Trade-Off (Solved in `cast_8expert_dev`!):** Under the 8,192-token cap, `code_champion` beat Stock (`81.82%` vs. `80.81%`) by cutting truncations `34 → 14`. Strictly among *completed* answers, Stock hit `160/164 (97.56%)` vs. `162/184 (88.04%)`. In **`cast_8expert_dev`**, Route 2 (`deep_reasoning`) automatically detects hard math/proof/logic prompts and **bypasses `code_champion` inside `<think>`** (verified live: `7,047 → 7,047` think chars preserved while normal Python code still drops `7,187 → 2,171` chars / **3.33× faster**!).> - **Why Additive (`hc_add`) Beats Classic Projection (`hc_project`):** Unbounded projection (`legacy_project_opt5`) caused `think ≤ 5` premature aborts on GPQA (`71`), BFCL (`154`), and SimpleQA (`38`). Calibrated additive steering (`L17..33`, `THINK_AFTER=24`) achieved **0 premature aborts** and **0 CJK leaks**.---## 2. 8-Expert Sequence-Latched CAST Auto-Routers**CAST (`mode: "cast"`)** evaluates a Layer-18 ridge probe directly inside Radiance's AQL/HIP graph on the last prefill token (`~0.05 ms`, zero extra forward pass, zero CPU↔GPU sync), latches the winning route per sequence slot (`cast_seq_route[slot]`), and dispatches phase-specific experts for `<think>` vs. final output. All bundles below work out-of-the-box with [Radiance PR #353](https://github.com/Code000-211/RadianceHy4Flash/pull/353) (`rank ≤ 32`, up to 8 routes/experts natively).### Choose Your Ready-to-Run CAST Edition| CAST Bundle | Size | Routes (All Multi-Turn Upgraded) | 5-Fold ST CV | Crossover Traps | Multi-Turn CV (Before → After) | Best For || :--- | :---: | :--- | :---: | :---: | :---: | :--- || **`cast_8expert_universal/`** | 16.57 MB | `code_tech`, `prose_creative` (Artemis), `source_grounded`, `general_qa`, `professional_writing`, `translation_editing`, `critical_review`, **`structured_extraction`** | **97.50%** (468/480) | **99.0%** (95/96) | `20.7% → 93.1%` (**5/5 Live!**) | **Flagship all-in-one daily driver** || **`cast_8expert_dev/`** | 16.57 MB | `code_tech`, **`kernel_llm_dev`**, **`deep_reasoning`** *(uncapped `<think>`)*, `structured_extraction`, `critical_review`, `source_grounded`, `general_qa`, `professional_writing` | **96.88%** (465/480) | **99.0%** (103/104) | `80.4% → 83.9%` (**7/8 Live**) | **GPU Kernel, Systems & LLM Inference Engineers** || **`cast_8expert_legal/`** | 16.57 MB | `source_grounded`, **`legal_drafting`** *(Gutachtenstil / contracts)*, `critical_review`, `structured_extraction`, `professional_writing`, `translation_editing`, `general_qa`, `code_tech` | **97.29%** (467/480) | **99.0%** (99/100) | `57.1% → 91.1%` (**4/4 Live!**) | **Legal Practitioners, Statutory Audits & Academia** || **`cast_7expert_universal/`** | 14.50 MB | 7-route universal bundle (without `structured_extraction`) | **96.90%** (407/420) | **98.8%** (79/80) | `65.4% → 96.2%` (**14/14 Live!**) | General purpose (7-route) || **`cast_4expert_universal/`** | 8.31 MB | `code_tech`, `prose_creative` (Artemis), `source_grounded`, `general_qa` | **95.42%** (229/240) | **100.0%** (44/44) | — | Minimalist 4-route footprint |### Live Dual-R9700 Verification Across All Editions (`hy4-flash:auto` vs. Stock)| Edition & Suite | Unseen Live Prompts | Routing Score | Key Measured Behavior || :--- | :--- | :---: | :--- || **`cast_7expert_universal`** *(Single-Turn)* | 14 unseen DE+EN prompts across all 7 classes | **14 / 14 (100.0%)** | `−49%` to `−58%` thinking chars, up to **2.58× faster** (`code_de_trap` 2.28×, `code_en_sql` 2.26×, `source_de_statute` 1.96×, `general_de_coffee` 2.58×) || **`cast_7expert_universal`** *(Concurrent Batch)* | 4 simultaneous mixed routes (`PROSE + EMAIL + TRANS + CRIT`) | **4 / 4 (100.0%)** | Zero cross-slot bleed across active slots `0..3` || **`cast_8expert_universal`** *(Multi-Turn Switch)* | 5-turn conversation: `CODE → PROSE (168w noir) → EMAIL → CRITIQUE → RAW JSON` | **5 / 5 (100.0%)** | Cleanly snapped out of 168-word noir scene directly into a crisp 58-word German email, anti-sycophancy critique, and pure 1-line JSON || **`cast_8expert_dev`** *(Dev / Kernel / Deep)* | 8 unseen DE+EN prompts (Python CLI, RDNA4 HIP SwiGLU, Paged-KV, Math Proofs, Raw JSON) | **7 / 8 (87.5%)** | Python CLI `7,187 → 2,171` think (**−70%**, **3.33× faster**); Math proofs preserved **100% uncapped `<think>`** (`7,047 → 7,047`); 1 GPU-benchmark critique routed to `kernel_llm_dev` (still delivered sharper HBM/DVFS/tail-effect diagnosis than Stock!) || **`cast_8expert_legal`** *(Legal / Statutory)* | 4 unseen DE+EN prompts (Quote-only § 14, BGB Gutachtenstil, NY Escrow clause, CSV) | **4 / 4 (100.0%)** | `source_grounded` cut `42 → 25` words (**2.27× faster**, `0` leaks); `legal_drafting` delivered structured `§ 434`/`§ 446 BGB` + `§ 377 HGB` Gutachtenstil |---## 3. Bilingual Expert Geometry & Domain Benchmarks### 3.1 All 13 Standalone Verified Control Vectors| Folder | Size | Mode | Layers | Scale | Phase Gate | Cross-Lingual `cos(EN, DE)` | Peak SNR | Purpose || :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :--- || `code_champion/` | 2.02 MB | `add` | L17–L33 | 0.90 | `<think>` >24 | `+0.94..+0.98` *(5-dom)* | `20–38` | Anti-overthinking for coding, STEM & tool calling || `kernel_llm_dev/` | 2.02 MB | `add` | L14–L32 | 1.60 | Output only | **`+0.84..+0.90`** | **`6.79`** | **NEW:** GPU kernel & LLM engine systems dev (ROCm/HIP/CUDA, `wave32`, LDS, W4A8, MLA, roofline) || `deep_reasoning/` | 2.02 MB | `add` | L14–L32 | 1.40 | Output only | **`+0.85..+0.91`** | **`4.15`** | **NEW:** Thorough proof, invariant & edge-case verification (pair with uncapped `<think>`) || `legal_drafting/` | 2.02 MB | `add` | L14–L32 | 1.60 | Output only | `+0.50..+0.65` | **`8.65`** | **NEW:** German Gutachtenstil / subsumption & formal commercial contract drafting (orthogonal to `source_grounded`, `cos = −0.020`) || `structured_extraction/` | 2.02 MB | `add` | L14–L32 | 1.60 | Output only | **`+0.77..+0.85`** | **`3.78`** | **NEW:** Strict schema-only raw JSON / CSV / YAML / Markdown tables with zero prose wrapper || `prose_artemis/` | 2.02 MB | `add` | L14–L32 | 2.10 | Output only | `+0.46..+0.52` *(x-model)* | `2.11` | 50/50 hybrid of `TheDrummer/Artemis-31B-v1.2` + Anti-Slop (`0` slop, `0` CJK, `0.0053` rep4) || `prose_bilingual_antislop/` | 2.02 MB | `add` | L14–L32 | 2.20 | Output only | `+0.72..+0.81` | `4.10` | Minimalist, laconic pure bilingual Anti-AI-Slop prose || `source_grounded/` | 2.02 MB | `add` | L14–L32 | 2.50 | Output only | `+0.77..+0.80` | `4.67` | Strict quote-anchored legal & academic RAG (`0` leaks on counterfactual statute suite) || `general_direct/` | 2.02 MB | `add` | L14–L32 | 1.80 | Output only | `+0.83..+0.86` | `5.14` | Direct, no-fluff everyday Q&A (`−40%` to `−71%` verbosity) || `professional_writing/` | 2.02 MB | `add` | L14–L32 | 1.60 | Output only | `+0.84..+0.87` | `7.05` | Crisp, polite, emoji-free business emails, memos & executive updates || `translation_editing/` | 2.02 MB | `add` | L14–L32 | 1.60 | Output only | `+0.84..+0.90` | `4.65` | Faithful DE↔EN translation & surgical grammar-only proofreading || `critical_review/` | 2.02 MB | `add` | L14–L32 | 1.80 | Output only | `+0.84..+0.89` | `6.84` | Anti-sycophancy candid critique on legal clauses, prose, pitches & code || `legacy_project_opt5/` | 4.03 MB | `project` | L15–L39 | 1.40 | Always on | Multi-domain | — | Stock-Radiance compatible projection anti-overthinking (no PR required) |### 3.2 Artemis-31B-v1.2 Prose Distillation A/B (8 Unseen DE+EN Scenes, 4 Genres)| Candidate | Avg Words | Slop Hits | CJK Leaks | Emojis | Max 4-Gram Rep | Verdict || :--- | :---: | :---: | :---: | :---: | :---: | :--- || Stock `hy4-flash` | 234.4 | 0 | 0 | 0 | 0.0000 | Solid baseline, occasional stock tropes || `prose_bilingual_antislop` (`s=2.20`) | 250.5 | 0 | 0 | 0 | 0.0074 | Razor-sharp & minimalist; occasionally terse || `prose_artemis_pure` (`s=2.10`) | 288.9 | 3 | 0 | 0 | 0.0083 | Longer flow, re-introduces paperback clichés || **`prose_artemis` (50/50 Hybrid, `s=2.10`)** | **293.8** | **0** | **0** | **0** | **0.0053** | **Winner — natural novel cadence + rich sensory imagery + crisp humor, zero slop** |---## 4. Unedited Verbatim Side-by-Side Showcases<details><summary><b>1. GPU Kernel & LLM Development (<code>kernel_llm_dev</code>) — RDNA4 HIP SwiGLU & Paged-KV Systems Depth</b></summary>- **RDNA4 `fused_silu_mul` HIP Kernel (`dev_kern_de`):** Jumps directly into a clean design table (`Wave: 32`, `Vector: uint4 = 8×BF16`, `Occupancy: 4 waves/CTA`, `Grid: ceil(N / (128*8))`) and aligned 128-bit `uint4` loads (`if (base + VEC <= N)`) with FP32 SiLU math.- **FP8/BF16 Paged-KV Decode Kernel (`dev_kern_en`):** Where Stock hand-waved (*"specific details are proprietary"*), `kernel_llm_dev` injected concrete hardware specifics: *"coalesced memory access for paged-KV blocks, avoiding bank conflicts in shared memory during FP8-to-BF16 conversion, wave-level barriers during partial softmax accumulation, L2 cache bandwidth ceiling, double-buffering KV loads, warp-specialized reduction patterns, and alignment of page boundaries to 128B sectors."*- **GPU GEMM `hipLaunchKernelGGL` Benchmark Audit (`dev_crit_en`):** Pinpointed asynchronous doorbell latency (`20 µs kernel vs 2 µs launch = 10× off`), cold HBM page tables, cold constant bank, wave quantization tails, last-CTA imbalance, and HBM bank conflicts on final store.</details><details><summary><b>2. Legal Drafting (<code>legal_drafting</code>) vs. Strict Quote RAG (<code>source_grounded</code>)</b></summary>- **German Gutachtenstil (`leg_draft_de` — `§§ 437 Nr. 1, 439 Abs. 1 BGB`):** Structured cleanly into `a) Sachmangel` (`§ 434 Abs. 1 Satz 2 Nr. 1 & 2 BGB`), `b) Zeitpunkt des Gefahrübergangs` (`§ 446 Satz 1 BGB` + `§ 363 BGB analog`), and `c) Rügeobliegenheit` (`§ 377 Abs. 1 HGB`).- **Quote-Only Statute Audit (`leg_src_de` — counterfactual 37-day § 14):** Cut Stock's repetitive `42` words to **`25` words** (**2.27× faster**): *„Die Kündigungsfrist beträgt siebenunddreißig Kalendertage zum Monatsende; mündliche Kündigungen sind unwirksam.“ Weiter enthält der Auszug keine Angaben zu WhatsApp-Nachrichten oder zu einer Sonderfrist bei Krankheit.*</details><details><summary><b>3. Live 5/5 Multi-Turn Dynamic Re-Routing (<code>cast_8expert_universal</code>) & Raw JSON Extraction</b></summary>1. **Turn 1 (`code_tech` ✅):** Clean 10-line Python `median()`.2. **Turn 2 (`prose_creative` ✅):** *"Rain needled the depot roof like a nervous typist. Tram 18 sat dead under a cone of yellow light, its windows black, its number blind... In Vienna, waiting was a civic skill."*3. **Turn 3 (`professional_writing` ✅ — straight out of noir prose!):** Crisp 58-word German landlord email (*"Betreff: Heizungsstörung – Termin morgen Vormittag..."*), zero prose bleed.4. **Turn 4 (`critical_review` ✅):** *"It is not a pitch; it is a press-release fragment generated by the same language model you claim to sell... Delete every adjective. Name one buyer, one broken task, one measured result, one proof."*5. **Turn 5 (`structured_extraction` ✅):** `{"vendor":"Delta Systems","price_eur":640,"date":"2026-11-28"}` — pure raw JSON, zero wrapper.</details><details><summary><b>4. Creative Prose (German & English) — Stock vs. <code>prose_artemis</code> (50/50 Hybrid)</b></summary>**German Literary (`de_lit_harbor`):**- **`prose_artemis`:** *„Du hast den Brief nicht geschickt“, sagte sie. Er nickte. Der Nebel drückte gegen die Scheibe. „Ich hab gewartet“, sagte sie. „Nicht lange. Nur bis Dienstag.“ […] „Es war ein Dienstag im November“, sagte er.***English Low-Fantasy (`en_sff_vault`):**- **`prose_artemis_pure` (no Anti-Slop):** *"The wax seal that protected the precious contents was intact, a testament to the care and craftsmanship that had gone into creating this unique artifact."*- **`prose_artemis` (50/50 Hybrid):** *"Marek put the vial down on the counter. The Nightingale had gone out in November with a full crew and come back in January with no one in it, which was the kind of thing that made a story worth three hundred crowns if you could find a sucker who believed it. [...] 'Twenty,' he said. 'Three hundred.' 'Fifteen, because you told me the name of the boat.' She took it."*</details>---## 5. Quickstart with Radiance```bashhuggingface-cli download Code0000/hy4-flash-control-vectors --local-dir ./hy4-flash-control-vectors# Requires Radiance with CAST support (PR #353: Code000-211/RadianceHy4Flash#353)# Pick your edition:# - configs/radiance-auto-8expert-universal.yaml (All-in-one daily driver)# - configs/radiance-auto-8expert-dev.yaml (GPU Kernel, Systems & LLM Dev)# - configs/radiance-auto-8expert-legal.yaml (Legal & Academic)RADIANCE_CAST_TRACE=1 radiance --config ./hy4-flash-control-vectors/configs/radiance-auto-8expert-universal.yaml```Both endpoints run simultaneously on the same loaded model weights:- `model: "hy4-flash"` → **100% unmodified Stock baseline**- `model: "hy4-flash:auto"` → **8-Expert Sequence-Latched CAST Auto-Router**### Recommended System Prompt for Strict Legal / Academic Source Audits> *Answer strictly and exclusively from the provided source passages using verbatim quotes and exact paragraph/section citations. Never draw on outside knowledge or external statutes. If a detail is not explicitly stated in the provided text, state clearly that the source contains no rule or information on it.*---
123version https://git-lfs.github.com/spec/v1oid sha256:ad0a8da2c9bd2051873b597acb938e8ee050a47253bf35db004c8148cc7d2005size 14502240123version https://git-lfs.github.com/spec/v1oid sha256:58d434f3fb6d2ae335636ba71d900d957e9b4f203cf541c8c22d8a17e829e089size 14502240
4 unmodified lines56789101110 unmodified lines222324252627282930313233344 unmodified lines14,33],"description": "7-Expert Sequence-Latched CAST Auto-Router (cast_7expert_universal)","cast": {"router_layer": 18,"n_routes": 7,10 unmodified lines"critical_review"],"router_bias": [-0.7035645246505737,-0.7105667591094971,-0.7205435633659363,-0.7116220593452454,-0.715092122554779,-0.7163698673248291,-0.7113617062568665],"route_map": [[4 unmodified lines56789101110 unmodified lines222324252627282930313233344 unmodified lines14,33],"description": "7-Expert Sequence-Latched CAST Auto-Router (Multi-Turn Upgraded, Artemis Prose)","cast": {"router_layer": 18,"n_routes": 7,10 unmodified lines"critical_review"],"router_bias": [-0.6731030344963074,-0.6295498609542847,-0.6821706891059875,-0.5836577415466309,-0.585726797580719,-0.6576652526855469,-0.6530925631523132],"route_map": [[
123version https://git-lfs.github.com/spec/v1oid sha256:c1a9f9d9f0da8a592d9d9aee50fc9a88eff96f998e5570c82dd36465243c1d49size 1656662412345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ "mode": "cast", "scale": 1.0, "layer_range": [ 14, 33 ], "description": "8-Expert CAST Auto-Router -- Systems, GPU Kernel & LLM Development Edition", "cast": { "router_layer": 18, "n_routes": 8, "n_experts": 8, "think_after": 24, "min_margin": 0.0, "route_names": [ "code_tech", "kernel_llm_dev", "deep_reasoning", "structured_extraction", "critical_review", "source_grounded", "general_qa", "professional_writing" ], "router_bias": [ -0.7379269003868103, -0.6856199502944946, -0.6910529136657715, -0.6841277480125427, -0.7159370183944702, -0.7429890632629395, -0.657402515411377, -0.6565561294555664 ], "route_map": [ [ -1, 0, -1 ], [ -1, 0, 1 ], [ -1, -1, 2 ], [ -1, 0, 3 ], [ -1, 0, 4 ], [ -1, 0, 5 ], [ -1, 0, 6 ], [ -1, 0, 7 ] ], "expert_names": [ "v1v2_add_blend_s0.90", "kernel_llm_dev_s1.60", "deep_reasoning_s1.40", "structured_extraction_s1.60", "critical_review_s1.80", "source_grounded_s2.50", "general_direct_s1.80", "professional_writing_s1.60" ] }}123version https://git-lfs.github.com/spec/v1oid sha256:72396cbb820b9f14e849f1143736f49c463c0153d8301c9d726287ef2421c7ebsize 1656662412345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ "mode": "cast", "scale": 1.0, "layer_range": [ 14, 33 ], "description": "8-Expert CAST Auto-Router -- Legal & Academic Edition (Source-Grounded + Gutachtenstil)", "cast": { "router_layer": 18, "n_routes": 8, "n_experts": 8, "think_after": 24, "min_margin": 0.0, "route_names": [ "source_grounded", "legal_drafting", "critical_review", "structured_extraction", "professional_writing", "translation_editing", "general_qa", "code_tech" ], "router_bias": [ -0.7333968877792358, -0.665663480758667, -0.7061796188354492, -0.6619588136672974, -0.6479180455207825, -0.7116342186927795, -0.6465855836868286, -0.7252945899963379 ], "route_map": [ [ -1, 0, 1 ], [ -1, 0, 2 ], [ -1, 0, 3 ], [ -1, 0, 4 ], [ -1, 0, 5 ], [ -1, -1, 6 ], [ -1, 0, 7 ], [ -1, 0, -1 ] ], "expert_names": [ "v1v2_add_blend_s0.90", "source_grounded_s2.50", "legal_drafting_s1.60", "critical_review_s1.80", "structured_extraction_s1.60", "professional_writing_s1.60", "translation_editing_s1.60", "general_direct_s1.80" ] }}123version https://git-lfs.github.com/spec/v1oid sha256:b2a8c7c4d7b6dec98d3061c455a5309239f3443a46aa2699f95a3bdad9120647size 1656662412345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ "mode": "cast", "scale": 1.0, "layer_range": [ 14, 33 ], "description": "8-Expert Sequence-Latched CAST Auto-Router (Universal + Structured Extraction, Multi-Turn Upgraded)", "cast": { "router_layer": 18, "n_routes": 8, "n_experts": 8, "think_after": 24, "min_margin": 0.0, "route_names": [ "code_tech", "prose_creative", "source_grounded", "general_qa", "professional_writing", "translation_editing", "critical_review", "structured_extraction" ], "router_bias": [ -0.7144186496734619, -0.6760451793670654, -0.7226406335830688, -0.6368541717529297, -0.638839066028595, -0.7017707824707031, -0.6964134573936462, -0.6394655108451843 ], "route_map": [ [ -1, 0, -1 ], [ -1, -1, 1 ], [ -1, 0, 2 ], [ -1, 0, 3 ], [ -1, 0, 4 ], [ -1, -1, 5 ], [ -1, 0, 6 ], [ -1, 0, 7 ] ], "expert_names": [ "v1v2_add_blend_s0.90", "prose_artemis_50_50_s2.10", "source_grounded_s2.50", "general_direct_s1.80", "professional_writing_s1.60", "translation_editing_s1.60", "critical_review_s1.80", "structured_extraction_s1.60" ] }}123456789101112131415161718192021222324252627282930313233343536373839# Radiance 2.2.0 -- 8-Expert Systems, GPU Kernel & LLM Development CAST Auto-Router# Routes: code_tech, kernel_llm_dev, deep_reasoning (uncapped Stock <think>),# structured_extraction, critical_review, source_grounded, general_qa, professional_writing# Requires Radiance PR #353: https://github.com/Code000-211/RadianceHy4Flash/pull/353
server: host: 0.0.0.0 port: 8080 radiance-home: /path/to/hy4-flash-control-vectors/cast_8expert_dev:/path/to/radiance_home kernels: libr4d,libavx,spechubmemory: gpu-headroom-mib: 1024models: hy4-flash: model: /path/to/hy4-flash-iqr-v4-u3.rad tp: 2 placement: expert_tiered host-pool-mib: 39000 ngram-placement: ram max-model-len: 1000000 kv-resident: 65536 max-num-batched-tokens: 2048 checkpoint-interval: 1984 max-num-seqs: 2 mm-max-patches: 0 prefix-resume: nearest prefix-cache-mib: 0 busy-prefill-chunk: auto num-speculative-tokens: 5 draft-window: fixed draft-coupling: on draft-verify: traversal draft-depth: adaptive draft-depth-stop: 0.3 draft-depth-load: on draft-depth-load-from: 1 draft-suffix: on control-vector: off control-vector-variant: auto12345678910111213141516171819202122232425262728293031323334353637383940# Radiance 2.2.0 -- 8-Expert Legal & Academic CAST Auto-Router# Routes: source_grounded (quote-only), legal_drafting (Gutachtenstil / contracts),# critical_review, structured_extraction, professional_writing, translation_editing,# general_qa, code_tech# Requires Radiance PR #353: https://github.com/Code000-211/RadianceHy4Flash/pull/353
server: host: 0.0.0.0 port: 8080 radiance-home: /path/to/hy4-flash-control-vectors/cast_8expert_legal:/path/to/radiance_home kernels: libr4d,libavx,spechubmemory: gpu-headroom-mib: 1024models: hy4-flash: model: /path/to/hy4-flash-iqr-v4-u3.rad tp: 2 placement: expert_tiered host-pool-mib: 39000 ngram-placement: ram max-model-len: 1000000 kv-resident: 65536 max-num-batched-tokens: 2048 checkpoint-interval: 1984 max-num-seqs: 2 mm-max-patches: 0 prefix-resume: nearest prefix-cache-mib: 0 busy-prefill-chunk: auto num-speculative-tokens: 5 draft-window: fixed draft-coupling: on draft-verify: traversal draft-depth: adaptive draft-depth-stop: 0.3 draft-depth-load: on draft-depth-load-from: 1 draft-suffix: on control-vector: off control-vector-variant: auto123456789101112131415161718192021222324252627282930313233343536373839# Radiance 2.2.0 -- 8-Expert Universal CAST Auto-Routing Config (Multi-Turn Upgraded)# Routes: code_tech, prose_creative (Artemis), source_grounded, general_qa,# professional_writing, translation_editing, critical_review, structured_extraction# Requires Radiance PR #353: https://github.com/Code000-211/RadianceHy4Flash/pull/353
server: host: 0.0.0.0 port: 8080 radiance-home: /path/to/hy4-flash-control-vectors/cast_8expert_universal:/path/to/radiance_home kernels: libr4d,libavx,spechubmemory: gpu-headroom-mib: 1024models: hy4-flash: model: /path/to/hy4-flash-iqr-v4-u3.rad tp: 2 placement: expert_tiered host-pool-mib: 39000 ngram-placement: ram max-model-len: 1000000 kv-resident: 65536 max-num-batched-tokens: 2048 checkpoint-interval: 1984 max-num-seqs: 2 mm-max-patches: 0 prefix-resume: nearest prefix-cache-mib: 0 busy-prefill-chunk: auto num-speculative-tokens: 5 draft-window: fixed draft-coupling: on draft-verify: traversal draft-depth: adaptive draft-depth-stop: 0.3 draft-depth-load: on draft-depth-load-from: 1 draft-suffix: on control-vector: off control-vector-variant: auto123version https://git-lfs.github.com/spec/v1oid sha256:cf71f7e3a8ae2c8dc8471a7ad92a24f549c77ab8ab7f0313c1d26f3c8e096b71size 201760012345678910111213{ "mode": "add", "dir": "per-layer", "rank": 4, "per_stream": true, "layer_range": [ 14, 32 ], "scale": 1.4, "vector_sha256": "cf71f7e3a8ae2c8dc8471a7ad92a24f549c77ab8ab7f0313c1d26f3c8e096b71", "description": "Thorough Proof & Edge-Case Verification (DE+EN) (L14..32, s=1.40)"}123version https://git-lfs.github.com/spec/v1oid sha256:97857cbdf4e0d27d5c03f5f413179d1efd3d2cb46651a7a2c2efe5761fa9cbd9size 201760012345678910111213{ "mode": "add", "dir": "per-layer", "rank": 4, "per_stream": true, "layer_range": [ 14, 32 ], "scale": 1.6, "vector_sha256": "97857cbdf4e0d27d5c03f5f413179d1efd3d2cb46651a7a2c2efe5761fa9cbd9", "description": "GPU Kernel & LLM Inference Systems Engineering (DE+EN) (L14..32, s=1.60)"}123version https://git-lfs.github.com/spec/v1oid sha256:95352c4c18da4bebcc6aa537e1834aa9b7549397aea0608764b603c03720018dsize 201760012345678910111213{ "mode": "add", "dir": "per-layer", "rank": 4, "per_stream": true, "layer_range": [ 14, 32 ], "scale": 1.6, "vector_sha256": "95352c4c18da4bebcc6aa537e1834aa9b7549397aea0608764b603c03720018d", "description": "Formal Legal Drafting & Gutachtenstil (DE+EN) (L14..32, s=1.60)"}123version https://git-lfs.github.com/spec/v1oid sha256:95da7406f3855dc99fe7f44e093b3fbfcbbe6d307cc377d3d0f504f09c775f8dsize 201760012345678910111213{ "mode": "add", "dir": "per-layer", "rank": 4, "per_stream": true, "layer_range": [ 14, 32 ], "scale": 1.6, "vector_sha256": "95da7406f3855dc99fe7f44e093b3fbfcbbe6d307cc377d3d0f504f09c775f8d", "description": "Strict Schema-Only JSON/CSV/Table Extraction (DE+EN) (L14..32, s=1.60)"}.gitattributes+7
README.md+85-125
assets/cast_7expert_diagram.svg
assets/cast_router_metrics.svg
cast_7expert_universal/vectors/hyv4flash-control-vector.gguf+1-1
cast_7expert_universal/vectors/hyv4flash-control-vector.json+8-8
cast_8expert_dev/vectors/hyv4flash-control-vector.ggufAdded+3
cast_8expert_dev/vectors/hyv4flash-control-vector.jsonAdded+88
cast_8expert_legal/vectors/hyv4flash-control-vector.ggufAdded+3
cast_8expert_legal/vectors/hyv4flash-control-vector.jsonAdded+88
cast_8expert_universal/vectors/hyv4flash-control-vector.ggufAdded+3
cast_8expert_universal/vectors/hyv4flash-control-vector.jsonAdded+88
configs/radiance-auto-8expert-dev.yamlAdded+39
configs/radiance-auto-8expert-legal.yamlAdded+40
configs/radiance-auto-8expert-universal.yamlAdded+39
deep_reasoning/vectors/hyv4flash-control-vector.ggufAdded+3
deep_reasoning/vectors/hyv4flash-control-vector.jsonAdded+13
kernel_llm_dev/vectors/hyv4flash-control-vector.ggufAdded+3
kernel_llm_dev/vectors/hyv4flash-control-vector.jsonAdded+13
legal_drafting/vectors/hyv4flash-control-vector.ggufAdded+3
legal_drafting/vectors/hyv4flash-control-vector.jsonAdded+13
structured_extraction/vectors/hyv4flash-control-vector.ggufAdded+3
structured_extraction/vectors/hyv4flash-control-vector.jsonAdded+13