ViuAI commited on
Commit
2d4e89e
Β·
verified Β·
1 Parent(s): 14924c4

Upgrade to Frontier Viu-Transformer (MLA + 1218 MoE + Softcapping) docs/PROGRESS.md

Browse files
Files changed (1) hide show
  1. docs/PROGRESS.md +29 -25
docs/PROGRESS.md CHANGED
@@ -1,23 +1,28 @@
1
  # Viu-1.5B-MoE: Development Progress & Milestones
2
 
3
- Sovereign Indian Large Language Model with **42-Layer Ultra-Deep Mixture of Experts (MoE)** Architecture.
4
- Total Parameters: **1,563,122,688 (1.563 Billion)** | Active Parameters: **197,827,584 (~198 Million)**.
 
5
 
6
  ---
7
 
8
  ## 🎯 Architectural Specifications
9
 
10
- - **Total Layers**: 42 Transformer Layers (Gemma-2 Style Hierarchical Reasoning Depth).
11
- - **Hidden Dimension**: 768 ($d_{\text{head}}=64$, 12 Query Heads, 2 Key/Value Heads with Grouped Query Attention).
12
- - **MoE Topology**: 28 Micro-Experts per layer (`expert_div: 4`, $h=576$), Top-2 dynamic routing.
13
- - **Total Network Experts**: $42 \times 28 = \mathbf{1,176\text{ Micro-Experts}}$ arranged in 4 abstraction tiers:
14
- - *Tier 1 (Layers 1–10, 280 Experts)*: Devanagari script, subwords & transliteration.
15
- - *Tier 2 (Layers 11–22, 336 Experts)*: Multilingual grammar & cross-lingual semantic alignment.
16
- - *Tier 3 (Layers 23–32, 280 Experts)*: Indian cultural knowledge, facts & code syntax.
17
- - *Tier 4 (Layers 33–42, 280 Experts)*: Multi-step logical reasoning, mathematics & synthesis.
18
- - **Multi-Token Prediction**: 1-Head MTP for forward planning.
19
- - **RoPE Base Theta**: 500,000.0 (Extended Context Ready).
20
- - **Sliding Window / Full Attention**: 28 Sliding Window (512w) + 14 Full Attention blocks.
 
 
 
 
21
 
22
  ---
23
 
@@ -26,12 +31,9 @@ Total Parameters: **1,563,122,688 (1.563 Billion)** | Active Parameters: **197,8
26
  - [x] 2026-09-25 STANDALONE REPOSITORY INITIALIZATION:
27
  - Created independent standalone project directory `Viu-1.5B-MoE` alongside `ViuMini-MoE-242M`.
28
  - Migrated custom 48,000-vocabulary BPE tokenizer (`tokenizer.json`, 4.25 MB binary).
29
- - Created `model/configs/model_config.yaml` specifying the verified 42-layer 1.563B architecture.
30
- - Created `model/scripts/verify_arch.py`: Parameter audit validated (1,563,122,688 total / 197,827,584 active, 1,176 experts, exit 0).
31
  - Implemented 8-bit AdamW (`PagedAdamW8bit`) and Gradient Checkpointing support in `model/scripts/train.py`.
32
- - Created hardware training profiles:
33
- - `model/configs/train_rtx4090.yaml`: Batch 4, Accum 32 (131k tokens/step), PagedAdamW8bit, Grad Checkpointing (~18.5 GB VRAM).
34
- - `model/configs/train_rtx5090.yaml`: Batch 4, Accum 32 (131k tokens/step), PagedAdamW8bit (~21.5 GB VRAM).
35
 
36
  - [x] 2026-09-25 MANDATORY DEVELOPMENT PROTOCOL LOCKED:
37
  - Enshrined strict 3-step development policy:
@@ -46,14 +48,16 @@ Total Parameters: **1,563,122,688 (1.563 Billion)** | Active Parameters: **197,8
46
 
47
  - [x] 2026-09-26 SOVEREIGN VIU-TRANSFORMER SPECIFICATION LOCKED:
48
  - Authored official formal design document: `docs/VIU_ARCHITECTURE_SPEC.md`
49
- - Defined 4-tier Hierarchical Cognitive Routing (HCR) across 42 layers:
50
- - Tier 1 (L1-10, 280 Experts): Phonetic & Morphological Routing
51
- - Tier 2 (L11-22, 336 Experts): Semantic Cross-Lingual Synthesizer
52
- - Tier 3 (L23-32, 280 Experts): Factual & Relational Knowledge Engine
53
- - Tier 4 (L33-42, 280 Experts): Deep Deductive Reasoning & Synthesis
54
- - Defined custom mathematical formulations: Viu-Attention (GQA + Dual QK-Norm + Multi-Scale Sliding Window), Viu-MoE Router (Entropy-Regulated Balance Loss), and Viu-Lookahead (MTP 2-step forecasting).
55
 
56
  - [x] 2026-09-26 1-CLICK CLOUD RUNNER NOTEBOOK LAUNCHED:
57
  - Created `RUN_ON_CLOUD.ipynb` for 1-click cloud pretraining on RunPod / Vast.ai / Lambda / GPU Cloud.
58
- - Automatically audits active GPU, clones/pulls `ViuAI/Viu-1.5B-MoE`, verifies 4.25 MB binary tokenizer, runs `verify_arch.py`, and launches `train.py` with automatic hardware profile detection (RTX 5090 vs RTX 4090).
59
  - Synced live to `https://huggingface.co/ViuAI/Viu-1.5B-MoE/blob/main/RUN_ON_CLOUD.ipynb`.
 
 
 
 
 
 
 
 
1
  # Viu-1.5B-MoE: Development Progress & Milestones
2
 
3
+ Sovereign Indian Large Language Model with **42-Layer Ultra-Deep Frontier Mixture of Experts (MoE)** Architecture.
4
+ Total Parameters: **1,632,817,152 (~1.633 Billion with MTP / ~1.596 Billion Base)** | Active Parameters: **267,522,048 (~267.5 Million per token)**.
5
+ Active Sparsity: **16.38%** (Full 1.6B knowledge capacity at mobile-edge 267M active inference latency).
6
 
7
  ---
8
 
9
  ## 🎯 Architectural Specifications
10
 
11
+ - **Total Layers**: 42 Transformer Layers (Hierarchical Reasoning Depth matching Gemma-2 9B).
12
+ - **Attention Engine**: Multi-Head Latent Attention (MLA) β€” DeepSeek-V3/V4 style low-rank KV compression & decoupled RoPE:
13
+ - $c_Q = 256$, $c_{KV} = 256$, $d_{\text{rope}} = 64$.
14
+ - 12 Latent Query Heads ($d_{\text{head}} = 64$).
15
+ - Dual QK-Norm + 80% KV-Cache compression during generation.
16
+ - **MoE Topology**: 1 Permanent Shared Expert + 28 Fine-Grained Routed Experts per layer (`expert_div: 4`, $h=528$), Top-2 dynamic routing.
17
+ - **Total Network Experts**: $42 \times (1 + 28) = \mathbf{1,218\text{ Micro-Experts}}$ arranged in 4 abstraction tiers:
18
+ - *Tier 1 (Layers 1–10, 290 Experts)*: Devanagari script, subwords & transliteration.
19
+ - *Tier 2 (Layers 11–22, 348 Experts)*: Multilingual grammar & cross-lingual semantic alignment.
20
+ - *Tier 3 (Layers 23–32, 290 Experts)*: Indian cultural knowledge, facts & code syntax.
21
+ - *Tier 4 (Layers 33–42, 290 Experts)*: Multi-step logical reasoning, mathematics & synthesis.
22
+ - **Frontier Stability**: Logit Soft-Capping (Gemma-2 style $\tanh$-capping at 50.0 for attention logits and 30.0 for unembedding logits).
23
+ - **Multi-Token Prediction**: 1-Head MTP for speculative lookahead and multi-token forward planning.
24
+ - **RoPE Base Theta**: 500,000.0 (YaRN ready for context extension).
25
+ - **Sliding Window / Full Attention**: 28 Sliding Window (512w) + 14 Full Attention blocks (hybrid ratio 3).
26
 
27
  ---
28
 
 
31
  - [x] 2026-09-25 STANDALONE REPOSITORY INITIALIZATION:
32
  - Created independent standalone project directory `Viu-1.5B-MoE` alongside `ViuMini-MoE-242M`.
33
  - Migrated custom 48,000-vocabulary BPE tokenizer (`tokenizer.json`, 4.25 MB binary).
34
+ - Created initial 42-layer configuration and verified parameter math.
 
35
  - Implemented 8-bit AdamW (`PagedAdamW8bit`) and Gradient Checkpointing support in `model/scripts/train.py`.
36
+ - Created hardware training profiles for RTX 4090 and RTX 5090.
 
 
37
 
38
  - [x] 2026-09-25 MANDATORY DEVELOPMENT PROTOCOL LOCKED:
39
  - Enshrined strict 3-step development policy:
 
48
 
49
  - [x] 2026-09-26 SOVEREIGN VIU-TRANSFORMER SPECIFICATION LOCKED:
50
  - Authored official formal design document: `docs/VIU_ARCHITECTURE_SPEC.md`
51
+ - Defined 4-tier Hierarchical Cognitive Routing (HCR) across 42 layers.
 
 
 
 
 
52
 
53
  - [x] 2026-09-26 1-CLICK CLOUD RUNNER NOTEBOOK LAUNCHED:
54
  - Created `RUN_ON_CLOUD.ipynb` for 1-click cloud pretraining on RunPod / Vast.ai / Lambda / GPU Cloud.
55
+ - Automatically audits active GPU, clones/pulls `ViuAI/Viu-1.5B-MoE`, verifies 4.25 MB binary tokenizer, runs `verify_arch.py`, and launches `train.py`.
56
  - Synced live to `https://huggingface.co/ViuAI/Viu-1.5B-MoE/blob/main/RUN_ON_CLOUD.ipynb`.
57
+
58
+ - [x] 2026-09-27 FRONTIER VIU-TRANSFORMER ARCHITECTURE UPGRADE:
59
+ - Upgraded core attention mechanism to **Multi-Head Latent Attention (MLA)** (DeepSeek-V3/V4 style low-rank query/KV compression with decoupled RoPE).
60
+ - Expanded MoE to **1 Permanent Shared Expert + 28 Routed Experts** across 42 layers = **1,218 Total Micro-Experts**.
61
+ - Integrated **Logit Soft-Capping** (Gemma-2 style $\tanh$-capping at 50.0 for attention and 30.0 for output head) to eradicate NaN/Inf loss spikes.
62
+ - Parameter Audit verified via `verify_arch.py`: **1,632,817,152 Total (~1.633B)** | **267,522,048 Active (~267.5M)** | **16.38% Active Sparsity** (Exit Code 0).
63
+ - End-to-end pretraining verification via `train.py --smoke`: 3 steps completed on CPU (loss 5.45, exit code 0).