kcxain commited on
Commit
27a3f3f
·
verified ·
1 Parent(s): 2b70cd2

Add model card

Browse files
Files changed (1) hide show
  1. README.md +48 -0
README.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: Qwen/Qwen2.5-Coder-7B-Instruct
4
+ library_name: transformers
5
+ pipeline_tag: text-generation
6
+ tags:
7
+ - code
8
+ - cuda
9
+ - gpu-kernels
10
+ - kernel-generation
11
+ - kernelbench
12
+ ---
13
+
14
+ # KernelZero-CUDA-SFT-7B
15
+
16
+ KernelZero-CUDA-SFT-7B is the supervised CUDA kernel generation checkpoint used to initialize the CUDA Coder in KernelZero. It is based on Qwen2.5-Coder-7B-Instruct and trained on 42,454 CUDA code-generation examples.
17
+
18
+ ## KernelBench results
19
+
20
+ The paper reports the following results with 10 sampled candidates per problem.
21
+
22
+ | Benchmark | pass@1 | pass@5 | pass@10 | fast\_1@1 | fast\_1@10 | fast\_2@1 | fast\_2@10 |
23
+ |---|---:|---:|---:|---:|---:|---:|---:|
24
+ | Level 1 | 70.6 | 94.77 | 98.0 | 15.1 | 29.0 | 6.3 | 14.0 |
25
+ | Level 2 | 59.0 | 90.33 | 94.0 | 2.0 | 9.0 | 1.3 | 6.0 |
26
+
27
+ ## Intended use
28
+
29
+ This checkpoint generates CUDA extensions from PyTorch modules. Use the KernelZero CUDA prompt and validation environment for reproducible evaluation.
30
+
31
+ ## Loading
32
+
33
+ ```python
34
+ from transformers import AutoModelForCausalLM, AutoTokenizer
35
+
36
+ model_id = "kcxain/KernelZero-CUDA-SFT-7B"
37
+ tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
38
+ model = AutoModelForCausalLM.from_pretrained(
39
+ model_id,
40
+ torch_dtype="auto",
41
+ device_map="auto",
42
+ trust_remote_code=True,
43
+ )
44
+ ```
45
+
46
+ ## Checkpoint provenance
47
+
48
+ This release contains the merged Hugging Face inference weights from SFT checkpoint 3606. Optimizer states, scheduler state, RNG state, and distributed training artifacts are excluded.