EvanOLeary commited on
Commit
7194328
·
verified ·
1 Parent(s): 2afa69c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +24 -0
README.md CHANGED
@@ -54,6 +54,30 @@ row = next(iter(ds))
54
  prompt, target, ok = row["PyTorch_Code_Module"], row["CUDA_Code"], row["Correct"]
55
  ```
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  ## KernelBench-Lite baseline (this SFT model)
58
  generate → compile (`load_inline`) → correctness vs PyTorch eager → speedup:
59
  - **ReLU:** compiles + correct ✅, **0.93×** vs eager (best-of-4). It produces real, working CUDA.
 
54
  prompt, target, ok = row["PyTorch_Code_Module"], row["CUDA_Code"], row["Correct"]
55
  ```
56
 
57
+ ## Training overview — data, steps, DSLs (graphs)
58
+ ![overview](https://huggingface.co/EvanOLeary/laguna-xs2-dense-k8-cuda-sft/resolve/main/training_overview.png)
59
+
60
+ ### Stages & steps
61
+ | Stage | Steps | Tokens | Data | Trainable |
62
+ |---|---|---|---|---|
63
+ | 0 Warm-start (DO-ACP) | — | — | calibration only | — |
64
+ | 1 Recon V1 (Python) | 2000 | ~8.2M | OpenCodeInstruct | routed_dense |
65
+ | 1 Recon V2 (kernel) | 2000 | ~8.2M | **KernelBook40/OpenCode30/CUDA20/traces10** | routed_dense |
66
+ | 2 SFT (CUDA) | 400 | ~3.5M | SakanaAI CUDA (correct only) | routed_dense+lm_head+norms |
67
+
68
+ ### Data distribution (reconstruction V2 mixture)
69
+ KernelBook (Triton) 40% · OpenCodeInstruct (Python) 30% · **SakanaAI CUDA-C++ 20%** · Triton traces 10% — ≈ **50% kernel / 30% Python / 20% CUDA-C++**.
70
+
71
+ ### DSLs
72
+ - **CUDA** (SFT-trained) — stronger; simple ops compile+correct at pass@k.
73
+ - **Triton** (pretrain-only) — emits valid `@triton.jit` with a Triton prompt, but buggier idioms.
74
+
75
+ ### Reconstruction curves (V2 kernel-mix, 2000 steps)
76
+ ![v2 recon](https://huggingface.co/EvanOLeary/laguna-xs2-dense-k8-kernelmix/resolve/main/v2_training.png)
77
+
78
+ ### SFT curve (CUDA, 400 steps, CE 0.68→0.32)
79
+ ![sft](https://huggingface.co/EvanOLeary/laguna-xs2-dense-k8-cuda-sft/resolve/main/sft_curve.png)
80
+
81
  ## KernelBench-Lite baseline (this SFT model)
82
  generate → compile (`load_inline`) → correctness vs PyTorch eager → speedup:
83
  - **ReLU:** compiles + correct ✅, **0.93×** vs eager (best-of-4). It produces real, working CUDA.