duico commited on
Commit
3e5ecef
·
verified ·
1 Parent(s): 78009fd

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -20,7 +20,7 @@ A **~3B dense** model distilled from **[poolside/Laguna-XS.2](https://huggingfac
20
 
21
  Two stages, both distilling from the frozen FP8 XS.2 teacher:
22
 
23
- 1. **Stage 1 — per-layer MoE→dense init** (RADLADS-style). Each of the 39 sparse MoE blocks is replaced by a dense SwiGLU FFN (intermediate 4608) and trained *independently, in parallel* to match the teacher MoE block's output (NMSE on the residual contribution), fed the teacher's own hidden states (no error compounding). ~90M tokens. Result: a dense init with held-out perplexity **~25** (vs teacher **~4.4**) — functional but rough, because cross-layer error compounding is left uncorrected by design.
24
  2. **Stage 2 — synchronous logit-KD** (this model). The stitched ~3B dense student is trained **end-to-end** against the fp8 teacher's full-vocab logits (forward-KL), on a 50/50 code+general corpus. ~14M tokens, one H100, **KL 2.5 → 1.40**.
25
 
26
  Data: 50% [DCLM](https://huggingface.co/datasets/mlfoundations/dclm-baseline-1.0) + 50% [StarCoder2/the-stack-v2-train](https://huggingface.co/datasets/bigcode/the-stack-v2-train-smol-ids).
@@ -58,7 +58,7 @@ print(tok.decode(m.generate(**ids, max_new_tokens=64)[0], skip_special_tokens=Tr
58
  | Model | Params (resident) | Held-out PPL | HumanEval pass@1 |
59
  |---|---|---|---|
60
  | Teacher (Laguna XS.2, fp8) | 33B (3B active) | ~4.4 | _running_ |
61
- | Stage-1 dense | ~3B | ~25 | 0.0% (0/164) |
62
  | **Stage-2 dense (this)** | ~3B | _tbd_ | **0.6%** (1/164) |
63
 
64
  _(HumanEval pass@1 via [evalplus](https://github.com/evalplus/evalplus), greedy. Teacher number being measured; will be filled in.)_
@@ -90,4 +90,4 @@ The MoE keeps all 33B params resident even though only ~3B are active per token;
90
  - **Severely under-trained.** ~14M KD tokens is 20–400× below typical recovery budgets (RADLADS used 250–700M; MoE→dense work ~4B). Expect near-zero on real coding tasks.
91
  - **Next:** extend Stage 2 substantially — ideally with **cached teacher top-K logits** to remove the teacher forward from the loop (3–5× throughput), reaching 50–100M+ tokens. Then run the paper-faithful agentic evals (SWE-bench / Terminal-Bench via Harbor).
92
 
93
- Code: https://github.com/postscarcity-inc/laguna-xs.2-dense · Stage-1 model: `poolside-laguna-hackathon/laguna-xs2-dense-stage1`
 
20
 
21
  Two stages, both distilling from the frozen FP8 XS.2 teacher:
22
 
23
+ 1. **[Stage 1](https://huggingface.co/poolside-laguna-hackathon/laguna-xs2-dense-stage1) — per-layer MoE→dense init** (RADLADS-style). Each of the 39 sparse MoE blocks is replaced by a dense SwiGLU FFN (intermediate 4608) and trained *independently, in parallel* to match the teacher MoE block's output (NMSE on the residual contribution), fed the teacher's own hidden states (no error compounding). ~90M tokens. Result: a dense init with held-out perplexity **~25** (vs teacher **~4.4**) — functional but rough, because cross-layer error compounding is left uncorrected by design.
24
  2. **Stage 2 — synchronous logit-KD** (this model). The stitched ~3B dense student is trained **end-to-end** against the fp8 teacher's full-vocab logits (forward-KL), on a 50/50 code+general corpus. ~14M tokens, one H100, **KL 2.5 → 1.40**.
25
 
26
  Data: 50% [DCLM](https://huggingface.co/datasets/mlfoundations/dclm-baseline-1.0) + 50% [StarCoder2/the-stack-v2-train](https://huggingface.co/datasets/bigcode/the-stack-v2-train-smol-ids).
 
58
  | Model | Params (resident) | Held-out PPL | HumanEval pass@1 |
59
  |---|---|---|---|
60
  | Teacher (Laguna XS.2, fp8) | 33B (3B active) | ~4.4 | _running_ |
61
+ | [Stage-1 dense](https://huggingface.co/poolside-laguna-hackathon/laguna-xs2-dense-stage1) | ~3B | ~25 | 0.0% (0/164) |
62
  | **Stage-2 dense (this)** | ~3B | _tbd_ | **0.6%** (1/164) |
63
 
64
  _(HumanEval pass@1 via [evalplus](https://github.com/evalplus/evalplus), greedy. Teacher number being measured; will be filled in.)_
 
90
  - **Severely under-trained.** ~14M KD tokens is 20–400× below typical recovery budgets (RADLADS used 250–700M; MoE→dense work ~4B). Expect near-zero on real coding tasks.
91
  - **Next:** extend Stage 2 substantially — ideally with **cached teacher top-K logits** to remove the teacher forward from the loop (3–5× throughput), reaching 50–100M+ tokens. Then run the paper-faithful agentic evals (SWE-bench / Terminal-Bench via Harbor).
92
 
93
+ Code: https://github.com/postscarcity-inc/laguna-xs.2-dense · [Stage-1 model](https://huggingface.co/poolside-laguna-hackathon/laguna-xs2-dense-stage1)