Downloads · 30 days
13
8% of all-time downloads
EvanOLeary/laguna-xs2-dense-k8-cuda-rft
laguna-xs2-dense-k8-cuda-rft 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, RL-fine-tuned on a verifiable reward on top of laguna-xs2-dense-k8-cuda-sft-v2.
Downloads · 30 days
13
8% of all-time downloads
All-time downloads
160
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, RL-fine-tuned on a verifiable reward on top of laguna-xs2-dense-k8-cuda-sft-v2.
Laguna-XS.2 MoE → densify → warm-start → recon (kernel mix)
→ SFT (level_1+2) = cuda-sft
→ SFT-extended (level_1+2+3) = cuda-sft-v2
→ RFT / GRPO = THIS MODEL
Per PyTorch prompt, sample G kernels; reward each by actually compiling + running the generated CUDA and comparing to PyTorch eager — isolated in a subprocess so a faulty kernel can't corrupt the trainer's CUDA context.
Reward (~[-0.2, 1.0]): +0.1 parsed · +0.2 compiles · +0.4 numerically correct · +0.3·clip(speedup,0,3)/3.
Algorithm: GRPO + Dr.GRPO (unbiased advantage r−mean, no length/std normalization) +
DAPO dynamic sampling (skip zero-variance groups) + KL-to-SFT anchor (β=0.02). RLVR — reward
is verification, not a learned model.
| Base | cuda-sft-v2 |
| Prompts | verifiable elementwise ops (relu/sigmoid/tanh/gelu/silu/softplus) — auto-checkable vs eager |
| Group size | 6 · steps 24 · lr 1e-6 · KL β 0.02 · temp 0.9 |
| Trainable | routed_dense + lm_head |
3-way on KernelBench-Lite L1 (10 ops, K=4, isolated): SFT → SFT-extended → RFT.
Compile-rate / correctness / speedup lift table:
github.com/Tyronita/laguna-dense-cuda-kernels.
Scope: the verifiable reward covers the elementwise op set (numerically checkable vs eager) — a subset of KernelBench L1. Honest about what RL optimized.