duico commited on
Commit
fc47000
·
verified ·
1 Parent(s): d755f6d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +31 -0
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: poolside/Laguna-XS.2
4
+ tags:
5
+ - code
6
+ - distillation
7
+ - moe-to-dense
8
+ - laguna
9
+ library_name: transformers
10
+ pipeline_tag: text-generation
11
+ ---
12
+
13
+ # Laguna-XS.2-dense (Stage 1)
14
+
15
+ The **Stage-1 init** for a dense distillation of **[poolside/Laguna-XS.2](https://huggingface.co/poolside/Laguna-XS.2)** (33B MoE, ~3B active) into a **~3B dense** model. Each of the 39 sparse MoE blocks is replaced by a single dense SwiGLU FFN (intermediate 4608) and trained **per-layer, in parallel** to match the teacher MoE block's output (RADLADS-style; teacher-fed inputs → no cross-layer error compounding). ~90M tokens.
16
+
17
+ > ⚠️ **Intermediate research artifact.** This is the *rough init* — cross-layer error compounding is deliberately **not** corrected here (that's Stage 2's job). Held-out perplexity ~25 (teacher ~4.4); **HumanEval pass@1 = 0.0%**. Use **[laguna-xs2-dense-stage2](https://huggingface.co/poolside-laguna-hackathon/laguna-xs2-dense-stage2)** (KD-recovered) as the more capable checkpoint.
18
+
19
+ ## Loading
20
+
21
+ ```python
22
+ import torch
23
+ from transformers import AutoModelForCausalLM, AutoTokenizer
24
+ m = AutoModelForCausalLM.from_pretrained("poolside-laguna-hackathon/laguna-xs2-dense-stage1",
25
+ trust_remote_code=True, torch_dtype=torch.bfloat16, device_map="cuda")
26
+ tok = AutoTokenizer.from_pretrained("poolside-laguna-hackathon/laguna-xs2-dense-stage1", trust_remote_code=True)
27
+ ```
28
+
29
+ Dense FFNs (intermediate 4608) are zero-padded to 8192 so the **stock** `modeling_laguna.py` loads it (numerically identical); exported reports ~3.8B, true model ~3.0B. `last.pt` (raw Stage-1 FFN weights) is also in this repo. **Footprint:** ~6 GB bf16 vs ~67 GB for the 33B MoE (~11× less weight VRAM).
30
+
31
+ See the [Stage-2 card](https://huggingface.co/poolside-laguna-hackathon/laguna-xs2-dense-stage2) for the full method, results, and next steps. Code: https://github.com/postscarcity-inc/laguna-xs.2-dense