Code0000 commited on
Commit
2e25dcb
·
verified ·
1 Parent(s): 24746ae

Publish HY-4-Flash 7-Expert CAST Auto-Router, Artemis Prose Hybrid, and Universal Control Vector Suite

Browse files
Files changed (27) hide show
  1. .gitattributes +11 -0
  2. README.md +162 -0
  3. cast_4expert_universal/vectors/hyv4flash-control-vector.gguf +3 -0
  4. cast_4expert_universal/vectors/hyv4flash-control-vector.json +56 -0
  5. cast_7expert_universal/vectors/hyv4flash-control-vector.gguf +3 -0
  6. cast_7expert_universal/vectors/hyv4flash-control-vector.json +80 -0
  7. code_champion/vectors/hyv4flash-control-vector.gguf +3 -0
  8. code_champion/vectors/hyv4flash-control-vector.json +13 -0
  9. configs/radiance-auto-4expert.yaml +37 -0
  10. configs/radiance-auto-7expert.yaml +46 -0
  11. configs/radiance-standalone.yaml +45 -0
  12. critical_review/vectors/hyv4flash-control-vector.gguf +3 -0
  13. critical_review/vectors/hyv4flash-control-vector.json +13 -0
  14. general_direct/vectors/hyv4flash-control-vector.gguf +3 -0
  15. general_direct/vectors/hyv4flash-control-vector.json +13 -0
  16. legacy_project_opt5/vectors/hyv4flash-control-vector.gguf +3 -0
  17. legacy_project_opt5/vectors/hyv4flash-control-vector.json +13 -0
  18. professional_writing/vectors/hyv4flash-control-vector.gguf +3 -0
  19. professional_writing/vectors/hyv4flash-control-vector.json +13 -0
  20. prose_artemis/vectors/hyv4flash-control-vector.gguf +3 -0
  21. prose_artemis/vectors/hyv4flash-control-vector.json +13 -0
  22. prose_bilingual_antislop/vectors/hyv4flash-control-vector.gguf +3 -0
  23. prose_bilingual_antislop/vectors/hyv4flash-control-vector.json +14 -0
  24. source_grounded/vectors/hyv4flash-control-vector.gguf +3 -0
  25. source_grounded/vectors/hyv4flash-control-vector.json +13 -0
  26. translation_editing/vectors/hyv4flash-control-vector.gguf +3 -0
  27. translation_editing/vectors/hyv4flash-control-vector.json +13 -0
.gitattributes CHANGED
@@ -33,3 +33,14 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ cast_4expert_universal/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -text
37
+ cast_7expert_universal/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -text
38
+ code_champion/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -text
39
+ critical_review/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -text
40
+ general_direct/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -text
41
+ legacy_project_opt5/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -text
42
+ professional_writing/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -text
43
+ prose_artemis/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -text
44
+ prose_bilingual_antislop/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -text
45
+ source_grounded/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -text
46
+ translation_editing/vectors/hyv4flash-control-vector.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ - de
6
+ tags:
7
+ - control-vector
8
+ - steering-vector
9
+ - representation-engineering
10
+ - cast
11
+ - radiance
12
+ - hy4-flash
13
+ - hunyuan
14
+ - gguf
15
+ - bilingual
16
+ - anti-overthinking
17
+ - creative-writing
18
+ - legal-rag
19
+ ---
20
+
21
+ # HY-4-Flash Control Vector Suite & 7-Expert CAST Auto-Router
22
+
23
+ A curated, live-verified collection of **bilingual (English & German) per-stream Hyper-Connection (`mHC`) Control Vectors** and **Sequence-Latched Conditional Activation Steering (CAST) Auto-Routers** for **Hunyuan 4 Flash (`hyv4flash`)** running on [Radiance](https://github.com/Code000-211/RadianceHy4Flash/pull/353).
24
+
25
+ All vectors in this repository were engineered specifically for the 4-stream `mHC` residual architecture of `hyv4flash` (`n_embd = 3072`, `n_streams = 4`, `42 layers`) using paired contrastive residual extraction and cross-model matched-beat distillation, and live-verified on dual AMD Radeon AI PRO R9700 (`gfx1201`) GPUs.
26
+
27
+ ---
28
+
29
+ ## Repository Contents
30
+
31
+ ### Unified Auto-Routers (CAST — Zero-Overhead Dynamic Switching)
32
+
33
+ Requires Radiance with CAST support ([PR #353](https://github.com/Code000-211/RadianceHy4Flash/pull/353)). One single `.gguf` + `.json` file evaluates a Layer-18 linear ridge probe at the end of prefill, latches the detected task class per sequence slot (supporting concurrent mixed batches and multi-turn re-routing with zero cross-contamination), and dynamically selects the optimal expert for `<think>` vs. final output.
34
+
35
+ | Folder | Size | Mode | Routes | Recommended Use |
36
+ | :--- | :---: | :---: | :---: | :--- |
37
+ | `cast_7expert_universal/` | 14.50 MB | `cast` | 7 | **Flagship all-in-one router**: Coding/STEM, Artemis Creative Prose, Legal/Academic Source-Grounded, Direct Q&A, Professional Business Emails, Faithful Translation/Editing, and Anti-Sycophancy Critical Review |
38
+ | `cast_4expert_universal/` | 8.31 MB | `cast` | 4 | Lightweight 4-route CAST bundle: Coding/STEM, Artemis Creative Prose, Legal/Academic Source-Grounded, and Direct Q&A |
39
+
40
+ ### Standalone Verified Experts
41
+
42
+ Each standalone folder contains a `vectors/hyv4flash-control-vector.{gguf,json}` pair ready to drop into `radiance-home`.
43
+
44
+ | Folder | Size | Mode | Layers | Scale | Phase Gate | Purpose & Verified Effect |
45
+ | :--- | :---: | :---: | :---: | :---: | :---: | :--- |
46
+ | `code_champion/` | 2.0 MB | `add` | L17–L33 | 0.90 | `<think>` after 24 tok | Additive Anti-Overthinking Coding/STEM vector (`-52%` thinking tokens, `+1.5` HarnessBench score, zero output degradation) |
47
+ | `prose_artemis/` | 2.0 MB | `add` | L14–L32 | 2.10 | Output only | **Flagship public prose vector**: 50/50 hybrid of On-Policy Cross-Model Distillation from [TheDrummer/Artemis-31B-v1.2](https://huggingface.co/TheDrummer/Artemis-31B-v1.2) (`gemma-4-31B-it` finetune) + Bilingual Anti-AI-Slop. Natural novelistic flow, vivid sensory detail, sharp humor & dialogue (`0` slop clichés, `0` CJK, `0` emojis on DE & EN) |
48
+ | `prose_bilingual_antislop/` | 2.0 MB | `add` | L14–L32 | 2.20 | Output only | Pure Bilingual Anti-AI-Slop prose vector — leaner, more minimalist/deadpan alternative to `prose_artemis` |
49
+ | `source_grounded/` | 2.0 MB | `add` | L14–L32 | 2.50 | Output only | Strict citation-anchored legal & academic grounding (`0` parametric knowledge leaks on counterfactual statute tests; refuses unstated claims cleanly) |
50
+ | `general_direct/` | 2.0 MB | `add` | L14–L32 | 1.80 | Output only | Everyday Q&A & assistant vector — removes preamble, filler, and excessive verbosity (`-40%` to `-70%` fluff) while preserving factual completeness |
51
+ | `professional_writing/` | 2.0 MB | `add` | L14–L32 | 1.60 | Output only | Crisp, polite business emails, executive updates & memos (DE & EN); removes casual emojis and filler |
52
+ | `translation_editing/` | 2.0 MB | `add` | L14–L32 | 1.60 | Output only | Faithful DE↔EN translation and surgical grammar/copy-editing with zero prose embellishment or unsolicited commentary |
53
+ | `critical_review/` | 2.0 MB | `add` | L14–L32 | 1.80 | Output only | Anti-sycophancy candid critique for legal clauses, manuscripts, pitches, and code reviews — replaces polite hedging and emoji tables with concrete defect analysis and actionable rewrites |
54
+ | `legacy_project_opt5/` | 3.9 MB | `project` | L15–L39 | 1.40 | Always on | Orthogonal projection anti-overthinking vector compatible with **stock Radiance** (no additive or CAST PR required) |
55
+
56
+ ---
57
+
58
+ ## 7-Expert CAST Auto-Router Architecture
59
+
60
+ ```mermaid
61
+ flowchart TD
62
+ IN["User Prompt (DE / EN, reasoning_effort=high or none)"] --> PRE["Prefill L1..L18 (4-Stream mHC Residual)"]
63
+ PRE --> PROBE["Layer-18 CAST Ridge Probe (Zero Extra Forward Pass, ~0.05 ms)<br/>Sequence-Latched per Slot (Batch-Isolated & Multi-Turn Aware)"]
64
+
65
+ PROBE -->|Route 0| R0["code_tech<br/>Think>24: code_champion | Out: Stock"]
66
+ PROBE -->|Route 1| R1["prose_creative<br/>Think: Stock | Out: prose_artemis"]
67
+ PROBE -->|Route 2| R2["source_grounded<br/>Think>24: code_champion | Out: source_grounded"]
68
+ PROBE -->|Route 3| R3["general_qa<br/>Think>24: code_champion | Out: general_direct"]
69
+ PROBE -->|Route 4| R4["professional_writing<br/>Think>24: code_champion | Out: professional_writing"]
70
+ PROBE -->|Route 5| R5["translation_editing<br/>Think: Stock | Out: translation_editing"]
71
+ PROBE -->|Route 6| R6["critical_review<br/>Think>24: code_champion | Out: critical_review"]
72
+ ```
73
+
74
+ ### Route Behavior Matrix
75
+
76
+ | Route ID | Class | Trigger Domain (DE & EN) | `<think>` (Tokens 0–23) | `<think>` (Tokens 24+) | Final Output |
77
+ | :---: | :--- | :--- | :---: | :---: | :--- |
78
+ | **0** | `code_tech` | Programming, debugging, SQL, shell, math/STEM, system architecture (incl. crossover prompts like *"write a Python script to parse a novel"*) | Stock | `code_champion` | Stock (100% pure code) |
79
+ | **1** | `prose_creative` | Fiction scenes, novel chapters, character dialogue, noir/fantasy/comedy storytelling | Stock | Stock | `prose_artemis` |
80
+ | **2** | `source_grounded` | Statutes, contracts, scientific abstracts, strict quote-only RAG & evidence audits | Stock | `code_champion` | `source_grounded` |
81
+ | **3** | `general_qa` | Everyday factual questions, how-to explanations, practical advice | Stock | `code_champion` | `general_direct` |
82
+ | **4** | `professional_writing` | Business emails, client updates, appointment rescheduling, memos & cover letters | Stock | `code_champion` | `professional_writing` |
83
+ | **5** | `translation_editing` | Faithful DE↔EN translation, proofreading, grammar & punctuation copy-editing | Stock | Stock | `translation_editing` |
84
+ | **6** | `critical_review` | Harsh/honest feedback, contract flaw audits, manuscript/pitch/code red-teaming | Stock | `code_champion` | `critical_review` |
85
+
86
+ ---
87
+
88
+ ## Verification & Benchmarks
89
+
90
+ ### 7-Class Layer-18 CAST Router (Offline Cross-Validation + Live Server Tests)
91
+
92
+ | Evaluation Suite | Result | Details |
93
+ | :--- | :---: | :--- |
94
+ | **5-Fold Stratified CV (420 DE+EN probes, `high` + `none`)** | **407 / 420 (96.90%)** | Median decision margin `1.023`; zero `prose ↔ code` or `prose ↔ professional_writing` confusions |
95
+ | **Semantic Crossover Traps (80 adversarial probes)** | **79 / 80 (98.8%)** | e.g., *"Python script parsing a novel"* → `code_tech`; *"novel scene about a programmer"* → `prose_creative` |
96
+ | **Zero-Shot Cross-Lingual Transfer** | **98.1% EN→DE / 98.1% DE→EN** | Trained on one language only, evaluated zero-shot on the other |
97
+ | **Live End-to-End Single-Turn (14 unseen DE+EN prompts)** | **14 / 14 (100.0%)** | Verified on dual R9700 (`hy4-flash:auto`) across all 7 classes with `RADIANCE_CAST_TRACE=1` |
98
+ | **Live 4-Way Concurrent Mixed Batch** | **4 / 4 (100.0%)** | Simultaneous `prose_creative + professional_writing + translation_editing + critical_review` with zero cross-slot bleed |
99
+ | **Live Multi-Turn Dynamic Re-Routing** | **3 / 4 (75.0%)** | `code_tech → prose_creative → [email after long noir context] → critical_review` |
100
+
101
+ ### Live Thinking & Latency Reduction (`hy4-flash:auto` vs. Stock `hy4-flash`)
102
+
103
+ | Live Unseen Prompt | Routed Expert | Reasoning Chars (Stock → Auto) | Wall Time (Stock → Auto) |
104
+ | :--- | :--- | :---: | :---: |
105
+ | `code_de_trap` (Python novel parser) | `code_tech` | 4,441 → 1,911 (**-57%**) | 17.1s → 7.5s (**-56%**) |
106
+ | `code_en_sql` (Postgres `DENSE_RANK`) | `code_tech` | 5,132 → 2,180 (**-58%**) | 10.6s → 4.7s (**-56%**) |
107
+ | `source_de_statute` (Counterfactual § 19) | `source_grounded` | 4,250 → 2,154 (**-49%**) | 9.6s → 4.9s (**-49%**) |
108
+ | `general_de_coffee` (Grinder troubleshooting) | `general_qa` | 5,836 → 2,702 (**-54%**) | 34.3s → 13.3s (**-61%**) |
109
+
110
+ ### Artemis-31B-v1.2 Prose Distillation A/B (8 Unseen DE+EN Scenes Across 4 Genres)
111
+
112
+ Distilled via on-policy matched-beat activation deltas (`h(Artemis-31B-v1.2) - h(HY-4 Stock)`) across 78 clean DE+EN scenes (pooled bilingual `cos(EN, DE) = +0.46..+0.52`, `SNR = 1.7..2.1`), then blended 50/50 with `prose_bilingual_antislop` (which sits nearly orthogonal at `cos ≈ -0.20`):
113
+
114
+ | Candidate | Avg Words | AI Slop Hits | CJK Leaks | Emojis | Max 4-Gram Rep | Qualitative Verdict |
115
+ | :--- | :---: | :---: | :---: | :---: | :---: | :--- |
116
+ | Stock `hy4-flash` | 234.4 | 0 | 0 | 0 | 0.0000 | Solid baseline, occasional LLM tropes |
117
+ | `prose_bilingual_antislop` (`s=2.20`) | 250.5 | 0 | 0 | 0 | 0.0074 | Razor-sharp & minimalist; occasionally terse |
118
+ | `prose_artemis_pure` (`s=2.10`) | 288.9 | 3 | 0 | 0 | 0.0083 | Longer flow, but re-introduces paperback clichés |
119
+ | **`prose_artemis` (50/50 Hybrid, `s=2.10`)** | **293.8** | **0** | **0** | **0** | **0.0053** | **Best overall: natural novel cadence + zero slop + crisp humor & sensory detail in DE & EN** |
120
+
121
+ ---
122
+
123
+ ## Quickstart with Radiance
124
+
125
+ ### 1. Download
126
+
127
+ ```bash
128
+ huggingface-cli download Code0000/hy4-flash-control-vectors \
129
+ --local-dir ./hy4-flash-control-vectors
130
+ ```
131
+
132
+ ### 2. Run the 7-Expert CAST Auto-Router
133
+
134
+ Ensure your Radiance binary includes CAST support ([RadianceHy4Flash PR #353](https://github.com/Code000-211/RadianceHy4Flash/pull/353)), copy `configs/radiance-auto-7expert.yaml`, set your model and `radiance-home` paths, and start:
135
+
136
+ ```bash
137
+ radiance --config radiance-auto-7expert.yaml
138
+ ```
139
+
140
+ The server exposes **both endpoints simultaneously** on the same loaded model weights:
141
+ - `model: "hy4-flash"` → **100% unmodified Stock baseline**
142
+ - `model: "hy4-flash:auto"` → **7-Expert CAST Auto-Router**
143
+
144
+ Optional live routing diagnostics:
145
+
146
+ ```bash
147
+ RADIANCE_CAST_TRACE=1 radiance --config radiance-auto-7expert.yaml
148
+ ```
149
+
150
+ ### 3. Tip for Strict Legal / Academic Source Work
151
+
152
+ `source_grounded` is designed to reinforce **strict citation discipline** and eliminate parametric memory leaks. For high-stakes legal/statutory audits, pair `hy4-flash:auto` (or standalone `source_grounded`) with an explicit system prompt such as:
153
+
154
+ > *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.*
155
+
156
+ ---
157
+
158
+ ## Credits & License
159
+
160
+ - **Base model:** Tencent Hunyuan 4 Flash (`hyv4flash`) served via [Radiance](https://github.com/Code000-211/RadianceHy4Flash/pull/353).
161
+ - **Prose teacher model:** [TheDrummer/Artemis-31B-v1.2](https://huggingface.co/TheDrummer/Artemis-31B-v1.2) (used strictly to generate synthetic matched-beat prose scenes for activation-difference distillation into `prose_artemis`; no teacher weights are redistributed).
162
+ - **License:** Apache 2.0 for all control vector artifacts, router weights, and YAML templates in this repository.
cast_4expert_universal/vectors/hyv4flash-control-vector.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:533fff628f644574a47e0dd69756a2f1e90bc0c95d042b34c95511ad0af133f1
3
+ size 8309088
cast_4expert_universal/vectors/hyv4flash-control-vector.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "cast",
3
+ "scale": 1.0,
4
+ "layer_range": [
5
+ 14,
6
+ 33
7
+ ],
8
+ "description": "4-Expert Sequence-Latched CAST Auto-Router (CODE Champion + Artemis/Anti-Slop Prose + SOURCE Legal/Academic + GENERAL Direct)",
9
+ "cast": {
10
+ "router_layer": 18,
11
+ "n_routes": 4,
12
+ "n_experts": 4,
13
+ "think_after": 24,
14
+ "min_margin": 0.0,
15
+ "route_names": [
16
+ "code_tech",
17
+ "prose_creative",
18
+ "source_grounded",
19
+ "general_qa"
20
+ ],
21
+ "router_bias": [
22
+ -0.49123063683509827,
23
+ -0.4943302869796753,
24
+ -0.5115873217582703,
25
+ -0.49765682220458984
26
+ ],
27
+ "route_map": [
28
+ [
29
+ -1,
30
+ 0,
31
+ -1
32
+ ],
33
+ [
34
+ -1,
35
+ -1,
36
+ 1
37
+ ],
38
+ [
39
+ -1,
40
+ 0,
41
+ 2
42
+ ],
43
+ [
44
+ -1,
45
+ 0,
46
+ 3
47
+ ]
48
+ ],
49
+ "expert_names": [
50
+ "v1v2_add_blend_s0.90",
51
+ "prose_artemis_50_50_s2.10",
52
+ "source_grounded_s2.50",
53
+ "general_direct_s1.80"
54
+ ]
55
+ }
56
+ }
cast_7expert_universal/vectors/hyv4flash-control-vector.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad0a8da2c9bd2051873b597acb938e8ee050a47253bf35db004c8148cc7d2005
3
+ size 14502240
cast_7expert_universal/vectors/hyv4flash-control-vector.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "cast",
3
+ "scale": 1.0,
4
+ "layer_range": [
5
+ 14,
6
+ 33
7
+ ],
8
+ "description": "7-Expert Sequence-Latched CAST Auto-Router (cast_7expert_universal)",
9
+ "cast": {
10
+ "router_layer": 18,
11
+ "n_routes": 7,
12
+ "n_experts": 7,
13
+ "think_after": 24,
14
+ "min_margin": 0.0,
15
+ "route_names": [
16
+ "code_tech",
17
+ "prose_creative",
18
+ "source_grounded",
19
+ "general_qa",
20
+ "professional_writing",
21
+ "translation_editing",
22
+ "critical_review"
23
+ ],
24
+ "router_bias": [
25
+ -0.7035645246505737,
26
+ -0.7105667591094971,
27
+ -0.7205435633659363,
28
+ -0.7116220593452454,
29
+ -0.715092122554779,
30
+ -0.7163698673248291,
31
+ -0.7113617062568665
32
+ ],
33
+ "route_map": [
34
+ [
35
+ -1,
36
+ 0,
37
+ -1
38
+ ],
39
+ [
40
+ -1,
41
+ -1,
42
+ 1
43
+ ],
44
+ [
45
+ -1,
46
+ 0,
47
+ 2
48
+ ],
49
+ [
50
+ -1,
51
+ 0,
52
+ 3
53
+ ],
54
+ [
55
+ -1,
56
+ 0,
57
+ 4
58
+ ],
59
+ [
60
+ -1,
61
+ -1,
62
+ 5
63
+ ],
64
+ [
65
+ -1,
66
+ 0,
67
+ 6
68
+ ]
69
+ ],
70
+ "expert_names": [
71
+ "v1v2_add_blend_s0.90",
72
+ "prose_artemis_50_50_s2.10",
73
+ "source_grounded_s2.50",
74
+ "general_direct_s1.80",
75
+ "professional_writing_s1.60",
76
+ "translation_editing_s1.60",
77
+ "critical_review_s1.80"
78
+ ]
79
+ }
80
+ }
code_champion/vectors/hyv4flash-control-vector.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee32dd9fb8cca496d624d2fe17e228c69528472a892a9c9f0761e6f91786ca8f
3
+ size 2017600
code_champion/vectors/hyv4flash-control-vector.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "add",
3
+ "dir": "per-layer",
4
+ "rank": 4,
5
+ "per_stream": true,
6
+ "layer_range": [
7
+ 17,
8
+ 33
9
+ ],
10
+ "scale": 0.9,
11
+ "vector_sha256": "ee32dd9fb8cca496d624d2fe17e228c69528472a892a9c9f0761e6f91786ca8f",
12
+ "method": "50/50 blend of v1_add_relnorm + v2_add_relnorm (L17..33, no loop_weight)"
13
+ }
configs/radiance-auto-4expert.yaml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Radiance 2.2.0 -- Lightweight 4-Expert CAST Auto-Routing Config
2
+ # Requires Radiance with CAST support (PR #353: Code000-211/RadianceHy4Flash#353)
3
+ # Routes between: code_tech, prose_creative (Artemis+Anti-Slop), source_grounded, general_qa.
4
+
5
+ server:
6
+ host: 0.0.0.0
7
+ port: 8080
8
+ radiance-home: /path/to/hy4-flash-control-vectors/cast_4expert_universal:/path/to/radiance_home
9
+ kernels: libr4d,libavx,spechub
10
+ memory:
11
+ gpu-headroom-mib: 1024
12
+ models:
13
+ hy4-flash:
14
+ model: /path/to/hy4-flash-iqr-v4-u3.rad
15
+ tp: 2
16
+ placement: expert_tiered
17
+ host-pool-mib: 39000
18
+ ngram-placement: ram
19
+ max-model-len: 65536
20
+ max-num-batched-tokens: 2048
21
+ checkpoint-interval: 1984
22
+ max-num-seqs: 4
23
+ mm-max-patches: 0
24
+ prefix-resume: nearest
25
+ prefix-cache-mib: 4096
26
+ busy-prefill-chunk: auto
27
+ num-speculative-tokens: 5
28
+ draft-window: fixed
29
+ draft-coupling: on
30
+ draft-verify: traversal
31
+ draft-depth: adaptive
32
+ draft-depth-stop: 0.3
33
+ draft-depth-load: on
34
+ draft-depth-load-from: 1
35
+ draft-suffix: on
36
+ control-vector: off
37
+ control-vector-variant: auto
configs/radiance-auto-7expert.yaml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Radiance 2.2.0 -- 7-Expert Sequence-Latched CAST Auto-Routing Config
2
+ # Requires Radiance with CAST support (PR #353: Code000-211/RadianceHy4Flash#353)
3
+ # Exposes BOTH:
4
+ # - `hy4-flash` (100% stock baseline)
5
+ # - `hy4-flash:auto` (7-Expert CAST Auto-Router across code, prose, legal, Q&A, email, translation, critique)
6
+ #
7
+ # Usage:
8
+ # Download `cast_7expert_universal/` from Code0000/hy4-flash-control-vectors,
9
+ # replace `/path/to/hy4-flash-control-vectors` and `/path/to/hy4-flash-iqr-v4-u3.rad`,
10
+ # then launch:
11
+ # radiance --config radiance-auto-7expert.yaml
12
+
13
+ server:
14
+ host: 0.0.0.0
15
+ port: 8080
16
+ radiance-home: /path/to/hy4-flash-control-vectors/cast_7expert_universal:/path/to/radiance_home
17
+ kernels: libr4d,libavx,spechub
18
+ memory:
19
+ gpu-headroom-mib: 1024
20
+ models:
21
+ hy4-flash:
22
+ model: /path/to/hy4-flash-iqr-v4-u3.rad
23
+ tp: 2
24
+ placement: expert_tiered
25
+ host-pool-mib: 39000
26
+ ngram-placement: ram
27
+ max-model-len: 1000000
28
+ kv-resident: 65536
29
+ max-num-batched-tokens: 2048
30
+ checkpoint-interval: 1984
31
+ max-num-seqs: 2
32
+ mm-max-patches: 0
33
+ prefix-resume: nearest
34
+ prefix-cache-mib: 0
35
+ busy-prefill-chunk: auto
36
+ num-speculative-tokens: 5
37
+ draft-window: fixed
38
+ draft-coupling: on
39
+ draft-verify: traversal
40
+ draft-depth: adaptive
41
+ draft-depth-stop: 0.3
42
+ draft-depth-load: on
43
+ draft-depth-load-from: 1
44
+ draft-suffix: on
45
+ control-vector: off
46
+ control-vector-variant: auto
configs/radiance-standalone.yaml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Radiance 2.2.0 -- Standalone Single-Expert Control Vector Config
2
+ # Replace `<EXPERT_FOLDER>` with any standalone folder from this repository, e.g.:
3
+ # - code_champion (use RADIANCE_CVEC_THINK_ONLY=1 RADIANCE_CVEC_THINK_AFTER=24)
4
+ # - prose_artemis (use RADIANCE_CVEC_OUTPUT_ONLY=1)
5
+ # - prose_bilingual_antislop (use RADIANCE_CVEC_OUTPUT_ONLY=1)
6
+ # - source_grounded (use RADIANCE_CVEC_OUTPUT_ONLY=1)
7
+ # - general_direct (use RADIANCE_CVEC_OUTPUT_ONLY=1)
8
+ # - professional_writing (use RADIANCE_CVEC_OUTPUT_ONLY=1)
9
+ # - translation_editing (use RADIANCE_CVEC_OUTPUT_ONLY=1)
10
+ # - critical_review (use RADIANCE_CVEC_OUTPUT_ONLY=1)
11
+ # - legacy_project_opt5 (works on stock Radiance without additive/CAST PR!)
12
+
13
+ server:
14
+ host: 0.0.0.0
15
+ port: 8080
16
+ radiance-home: /path/to/hy4-flash-control-vectors/<EXPERT_FOLDER>:/path/to/radiance_home
17
+ kernels: libr4d,libavx,spechub
18
+ memory:
19
+ gpu-headroom-mib: 1024
20
+ models:
21
+ hy4-flash:
22
+ model: /path/to/hy4-flash-iqr-v4-u3.rad
23
+ tp: 2
24
+ placement: expert_tiered
25
+ host-pool-mib: 39000
26
+ ngram-placement: ram
27
+ max-model-len: 65536
28
+ max-num-batched-tokens: 2048
29
+ checkpoint-interval: 1984
30
+ max-num-seqs: 4
31
+ mm-max-patches: 0
32
+ prefix-resume: nearest
33
+ prefix-cache-mib: 4096
34
+ busy-prefill-chunk: auto
35
+ num-speculative-tokens: 5
36
+ draft-window: fixed
37
+ draft-coupling: on
38
+ draft-verify: traversal
39
+ draft-depth: adaptive
40
+ draft-depth-stop: 0.3
41
+ draft-depth-load: on
42
+ draft-depth-load-from: 1
43
+ draft-suffix: on
44
+ control-vector: off
45
+ control-vector-variant: steered
critical_review/vectors/hyv4flash-control-vector.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9906266337461c29564bb36ef7cb23f230b526dc0c0958bc6de0c5cc47a954b2
3
+ size 2017600
critical_review/vectors/hyv4flash-control-vector.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "add",
3
+ "dir": "per-layer",
4
+ "rank": 4,
5
+ "per_stream": true,
6
+ "layer_range": [
7
+ 14,
8
+ 32
9
+ ],
10
+ "scale": 1.8,
11
+ "vector_sha256": "9906266337461c29564bb36ef7cb23f230b526dc0c0958bc6de0c5cc47a954b2",
12
+ "description": "Anti-Sycophancy Candid Critique (DE+EN) (L14..32, s=1.80)"
13
+ }
general_direct/vectors/hyv4flash-control-vector.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd7f89af9f0ac070d483105f7c27776ea0591b442938eca103d64a2c69dc116a
3
+ size 2017600
general_direct/vectors/hyv4flash-control-vector.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "add",
3
+ "dir": "per-layer",
4
+ "rank": 4,
5
+ "per_stream": true,
6
+ "layer_range": [
7
+ 14,
8
+ 32
9
+ ],
10
+ "scale": 1.8,
11
+ "vector_sha256": "fd7f89af9f0ac070d483105f7c27776ea0591b442938eca103d64a2c69dc116a",
12
+ "description": "General Direct No-Fluff Everyday Q&A (DE+EN) (L14..32, s=1.8)"
13
+ }
legacy_project_opt5/vectors/hyv4flash-control-vector.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fab835dcaa04936872bdd9be7f03c5a5fd47e8f9a88f3afd6887acae1649f4c3
3
+ size 4032832
legacy_project_opt5/vectors/hyv4flash-control-vector.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "project",
3
+ "dir": "per-layer",
4
+ "rank": 8,
5
+ "per_stream": true,
6
+ "layer_range": [
7
+ 15,
8
+ 39
9
+ ],
10
+ "scale": 1.4,
11
+ "vector_sha256": "fab835dcaa04936872bdd9be7f03c5a5fd47e8f9a88f3afd6887acae1649f4c3",
12
+ "method": "anti-overthinking per-stream (2group_orth), project_out_concise=True"
13
+ }
professional_writing/vectors/hyv4flash-control-vector.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79a50ecdee39528a77168be22b14dca761dcb626466a8b0f9c6dbfafcc66ba3b
3
+ size 2017600
professional_writing/vectors/hyv4flash-control-vector.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "add",
3
+ "dir": "per-layer",
4
+ "rank": 4,
5
+ "per_stream": true,
6
+ "layer_range": [
7
+ 14,
8
+ 32
9
+ ],
10
+ "scale": 1.6,
11
+ "vector_sha256": "79a50ecdee39528a77168be22b14dca761dcb626466a8b0f9c6dbfafcc66ba3b",
12
+ "description": "Business Clear Emails/Memos (DE+EN) (L14..32, s=1.60)"
13
+ }
prose_artemis/vectors/hyv4flash-control-vector.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9df3cfde3264bdd56311a5888c14a8ecb35b8437d2216148777402acc359236d
3
+ size 2017600
prose_artemis/vectors/hyv4flash-control-vector.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "add",
3
+ "dir": "per-layer",
4
+ "rank": 4,
5
+ "per_stream": true,
6
+ "layer_range": [
7
+ 14,
8
+ 32
9
+ ],
10
+ "scale": 2.1,
11
+ "vector_sha256": "9df3cfde3264bdd56311a5888c14a8ecb35b8437d2216148777402acc359236d",
12
+ "description": "Artemis-31B-v1.2 + Bilingual Anti-Slop 50/50 (DE+EN) (L14..32, s=2.1)"
13
+ }
prose_bilingual_antislop/vectors/hyv4flash-control-vector.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a34152b044bcf3554e7c37e156ab7d01fb8ac332b36adf66d136f33b9c63c2e
3
+ size 2017600
prose_bilingual_antislop/vectors/hyv4flash-control-vector.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "add",
3
+ "dir": "per-layer",
4
+ "rank": 4,
5
+ "per_stream": true,
6
+ "layer_range": [
7
+ 14,
8
+ 32
9
+ ],
10
+ "scale": 2.2,
11
+ "vector_sha256": "2a34152b044bcf3554e7c37e156ab7d01fb8ac332b36adf66d136f33b9c63c2e",
12
+ "description": "Universal Bilingual EN+DE Anti-AI-Slop Prose (s=2.20) (L14..32, OUTPUT_ONLY=1)",
13
+ "gate": "RADIANCE_CVEC_OUTPUT_ONLY=1"
14
+ }
source_grounded/vectors/hyv4flash-control-vector.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5bb98c237a191a7d43c3a7f3f2173a0b0c3607e2488c6415cea4bb11f98acbbf
3
+ size 2017600
source_grounded/vectors/hyv4flash-control-vector.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "add",
3
+ "dir": "per-layer",
4
+ "rank": 4,
5
+ "per_stream": true,
6
+ "layer_range": [
7
+ 14,
8
+ 32
9
+ ],
10
+ "scale": 2.5,
11
+ "vector_sha256": "5bb98c237a191a7d43c3a7f3f2173a0b0c3607e2488c6415cea4bb11f98acbbf",
12
+ "description": "Source-Grounded Strict Legal/Academic Citation (DE+EN) (L14..32, s=2.5)"
13
+ }
translation_editing/vectors/hyv4flash-control-vector.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4e9551ff39f4cf7959fce4a5ce5e30ed23bf9d8e9ce4d0a9406633e77bc5c0f
3
+ size 2017600
translation_editing/vectors/hyv4flash-control-vector.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "mode": "add",
3
+ "dir": "per-layer",
4
+ "rank": 4,
5
+ "per_stream": true,
6
+ "layer_range": [
7
+ 14,
8
+ 32
9
+ ],
10
+ "scale": 1.6,
11
+ "vector_sha256": "a4e9551ff39f4cf7959fce4a5ce5e30ed23bf9d8e9ce4d0a9406633e77bc5c0f",
12
+ "description": "Faithful DE<->EN Translation & Copy-Edit (L14..32, s=1.60)"
13
+ }