BlockArtica commited on
Commit
b079e9d
·
verified ·
1 Parent(s): b728097

Aether v7.1-unified: 10-Sephirot adapter on Qwen2.5-7B (+1.66% CE on Aether holdout, 9/9 domains, 0 regressions)

Browse files
Files changed (3) hide show
  1. README.md +91 -0
  2. adapter_config.json +39 -0
  3. adapter_model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: candle
3
+ license: apache-2.0
4
+ base_model: Qwen/Qwen2.5-7B-Instruct
5
+ pipeline_tag: text-generation
6
+ language:
7
+ - en
8
+ tags:
9
+ - qubitcoin
10
+ - aether
11
+ - blockchain
12
+ - quantum
13
+ - native-rust
14
+ - candle
15
+ - sephirot
16
+ - moe-adapter
17
+ - on-chain-ai
18
+ - text-generation
19
+ datasets:
20
+ - QuantumAI-Blockchain/aether-curated-v3
21
+ ---
22
+
23
+ # Aether Mind v7.1 (unified)
24
+
25
+ The **single tracked Aether model**: one in-process (candle) model that generates chat,
26
+ exposes its own attention for the consciousness (HMS-Phi) track, produces the knowledge-fabric
27
+ embeddings, and is the artifact the QBC blockchain attests. v7.1 is the first release of the
28
+ **unified** generation path, replacing the prior split where chat ran through an out-of-process
29
+ Ollama 7B (no attention exposed) while phi was measured on a separate in-process 0.5B model.
30
+
31
+ This repository holds the **Sephirot adapter** that sits on top of a frozen `Qwen2.5-7B-Instruct`
32
+ (served in-process as Q4_K_M via candle). The base is never modified. The adapter is a small
33
+ mixture-of-experts where the 10 experts map 1:1 onto the 10 Sephirot cognitive domains. This is
34
+ the corrected approach after v6: the Sephirot structure is a routing **adapter on a sound base**,
35
+ not a replacement for the base attention (the v6 attention-replacement destroyed base capability).
36
+
37
+ ## What it is
38
+
39
+ - **Architecture:** 10-expert MoE adapter, top-2 routing, LoRA-style low-rank experts
40
+ (`up(gelu(down(x)))`, `up` zero-initialised so the adapter is an exact identity at init).
41
+ - **Trainable params:** 1,182,720 (~2.4 MB BF16). The base 7B stays frozen.
42
+ - **Hidden size:** 3584. **Rank:** 16. **Experts:** 10 (Keter to Malkuth). **Top-k:** 2. **Alpha:** 16.
43
+ - **Runs in-process** in the Aether Mind (Rust + candle), so the same forward pass that generates
44
+ a token also yields the attention tensors the phi track reads.
45
+
46
+ ## Results (full holdout, 500 samples, per-Sephirot-domain)
47
+
48
+ Cross-entropy (nats/token) on the held-out Aether corpus, base vs base+adapter. Lower is better.
49
+ The adapter **improves every active domain with zero regressions.**
50
+
51
+ | Sephirot domain | samples | base CE | v7.1 CE | delta |
52
+ |---|---|---|---|---|
53
+ | 1 Chochmah | 88 | 1.8827 | 1.8539 | -0.0288 |
54
+ | 2 Binah | 64 | 1.9706 | 1.9354 | -0.0352 |
55
+ | 3 Chesed | 18 | 2.3911 | 2.3641 | -0.0269 |
56
+ | 4 Gevurah | 6 | 2.8542 | 2.8255 | -0.0286 |
57
+ | 5 Tiferet | 36 | 2.6339 | 2.5890 | -0.0449 |
58
+ | 6 Netzach | 28 | 2.6454 | 2.6175 | -0.0279 |
59
+ | 7 Hod | 90 | 2.2801 | 2.2364 | -0.0437 |
60
+ | 8 Yesod | 84 | 2.5627 | 2.5198 | -0.0428 |
61
+ | 9 Malkuth | 86 | 2.1066 | 2.0688 | -0.0379 |
62
+ | **Aggregate** | **500** | **2.2450** | **2.2078** | **-0.0373 (-1.66%)** |
63
+
64
+ Domains helped: 9 / 9. Domains hurt: 0. A held-out CE regression guard (ceiling = base + 0.15)
65
+ was active for the whole run and never tripped, so the base capability is provably intact.
66
+
67
+ > Honesty note: these are domain-CE deltas on the Aether holdout, not general-benchmark
68
+ > (MMLU/HumanEval) numbers. The claim is narrow and measured: on the Aether knowledge domains the
69
+ > 10-Sephirot adapter is a consistent, regression-free improvement over the raw 7B base.
70
+
71
+ ## Training
72
+
73
+ - **Objective:** plain cross-entropy domain specialisation (base frozen; no teacher).
74
+ - **Corpus:** `aether-curated-v3` (content-addressed export of the live knowledge fabric).
75
+ - **Steps:** 3000. **Context:** 192. **LR:** 5e-4. **Optimizer:** AdamW. **Precision:** BF16.
76
+ - **Hardware:** single RTX 3080 Ti (12 GB). The 7B trains as Q4 with a CPU-dequantised, frozen
77
+ F32 lm_head so the adapter gradient is differentiable through the final projection while the
78
+ GPU footprint stays inside 12 GB.
79
+
80
+ ## Usage
81
+
82
+ The adapter is loaded by the Aether Mind binary on top of the Q4_K_M 7B base. It is not a PEFT
83
+ adapter and is not meant for `transformers`; it is consumed by the candle `UnifiedModel`
84
+ (base + SephirotAdapter + manifest) in `aether-core`. See `adapter_config.json` for the exact
85
+ shape and the `QuantumAI-Blockchain/qubitcoin-aether` repo for the loader.
86
+
87
+ ## Lineage
88
+
89
+ `aether-v5.2-lora` -> `aether-mind-v6.{0,1,2}` (attention-replacement, retired) ->
90
+ `aether-mind-v7.0` (QLoRA on 7B, Ollama-served) -> **`aether-v7.1-unified`** (this release, the
91
+ first in-process unified generation model the consciousness track and the chain both measure).
adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "sephirot_adapter",
3
+ "adapter_version": "v7.1-unified",
4
+ "framework": "candle",
5
+ "base_model": "Qwen/Qwen2.5-7B-Instruct",
6
+ "base_serve_format": "Q4_K_M GGUF (in-process, candle quantized)",
7
+ "hidden_size": 3584,
8
+ "rank": 16,
9
+ "num_experts": 10,
10
+ "expert_names": [
11
+ "Keter", "Chochmah", "Binah", "Chesed", "Gevurah",
12
+ "Tiferet", "Netzach", "Hod", "Yesod", "Malkuth"
13
+ ],
14
+ "top_k": 2,
15
+ "alpha": 16.0,
16
+ "scale": 1.0,
17
+ "expert_form": "up(gelu(down(x))), up zero-initialised (identity at init)",
18
+ "trainable_params": 1182720,
19
+ "weights_dtype": "bf16",
20
+ "training": {
21
+ "objective": "plain cross-entropy (domain specialisation; base frozen)",
22
+ "corpus": "aether-curated-v3 (content-addressed Aether knowledge fabric export)",
23
+ "holdout": "aether-v6-eval-holdout (500 samples, Sephirot-domain tagged)",
24
+ "steps": 3000,
25
+ "context": 192,
26
+ "lr": 5e-4,
27
+ "optimizer": "AdamW",
28
+ "precision": "bf16",
29
+ "regression_guard": "held-out CE ceiling = base + 0.15 (PASS, base intact)"
30
+ },
31
+ "eval_full_holdout": {
32
+ "base_ce": 2.2450,
33
+ "adapter_ce": 2.2078,
34
+ "delta": -0.0373,
35
+ "relative_improvement": "1.66%",
36
+ "domains_helped": 9,
37
+ "domains_hurt": 0
38
+ }
39
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:564910ef462646a4789cdf4a31d4623cb50d1f3f1bf8374aa0129255df05cae7
3
+ size 2367312