Downloads · 30 days
21
12% of all-time downloads
EvanOLeary/laguna-xs2-dense-k8-cuda-sft-v2
laguna-xs2-dense-k8-cuda-sft-v2 is a text generation model from EvanOLeary. 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.
A ~3.0 B dense CUDA-kernel model — a follow-up SFT on top of laguna-xs2-dense-k8-cuda-sft, trained on more CUDA / C++ kernel code.
Downloads · 30 days
21
12% of all-time downloads
All-time downloads
171
Public
Parameters
3B
6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6 GB · 100%
From the Hugging Face model README
A ~3.0 B dense CUDA-kernel model — a follow-up SFT on top of laguna-xs2-dense-k8-cuda-sft, trained on more CUDA / C++ kernel code.
poolside/Laguna-XS.2 (33B/3B-active MoE, 256 experts)
→ densify (K=8 dense SwiGLU) → DO-ACP warm-start
→ reconstruction-pretrain (kernel mixture, "V2")
→ SFT (SakanaAI CUDA, level_1+2, 400 steps) = laguna-xs2-dense-k8-cuda-sft
→ SFT-extended (level_1+2+3, +500 steps) = THIS MODEL
→ RFT/GRPO (verifiable reward) = next (laguna-xs2-dense-k8-cuda-rft)
The first SFT (400 steps, level_1+2) produced a model that emits working CUDA on simple ops (ReLU/Tanh ~3/4 at pass@k) but showed two gaps:
float4* v = float4* ptr; instead of reinterpret_cast<float4*>(ptr)), so vectorized kernels fail to compile.This follow-up extends the SFT with more CUDA + C++ kernel data (Sakana level_1+2+3, +500
steps from the previous checkpoint) to broaden C++/CUDA coverage before RL. It is the mid checkpoint
in a 3-way comparison: SFT → SFT-extended (this) → SFT-extended-RFT.
| Base | laguna-xs2-dense-k8-cuda-sft (continued, not from scratch) |
| Data | SakanaAI/AI-CUDA-Engineer-Archive level_1,level_2,level_3 (correct kernels), PyTorch→CUDA, chat-formatted, prompt masked |
| Objective | causal-LM cross-entropy on the CUDA completion only |
| Trainable | routed_dense + lm_head + norms (1.19 B) |
| Optimizer | AdamW 1e-5, grad-clip 1.0, grad-accum 8, seq 2048, 500 steps |
Benchmarked 3-way (SFT / SFT-extended / SFT-extended-RFT) on KernelBench-Lite L1 (10 elementwise ops, K=4, subprocess-isolated compile+correctness vs PyTorch eager). Results table: github.com/Tyronita/laguna-dense-cuda-kernels.
Research base for RFT (RL on verified compile+correctness+speedup). Kernels are not verified at generation time — compile & check before use, and isolate execution (a bad kernel corrupts the CUDA context).