Downloads · 30 days
10
10% of all-time downloads
poolside-laguna-hackathon/laguna-xs2-dense-stage1
laguna-xs2-dense-stage1 is a text generation model from poolside-laguna-hackathon. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
The Stage-1 init for a dense distillation of 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…
Downloads · 30 days
10
10% of all-time downloads
All-time downloads
97
Public
Parameters
3.9B
12.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.7 GB · 63%
From the Hugging Face model README
The Stage-1 init for a dense distillation of 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.
⚠️ 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 (KD-recovered) as the more capable checkpoint.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
m = AutoModelForCausalLM.from_pretrained("poolside-laguna-hackathon/laguna-xs2-dense-stage1",
trust_remote_code=True, torch_dtype=torch.bfloat16, device_map="cuda")
tok = AutoTokenizer.from_pretrained("poolside-laguna-hackathon/laguna-xs2-dense-stage1", trust_remote_code=True)
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).
See the Stage-2 card for the full method, results, and next steps. Code: https://github.com/postscarcity-inc/laguna-xs.2-dense