forked from HazyResearch/ThunderKittens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
48 lines (45 loc) · 1.2 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
### ADD TO THIS TO REGISTER NEW KERNELS
sources = {
'attn_inference': {
'source_files': {
'h100': 'kernels/attn/h100/h100.cu' # define these source files for each GPU target desired. (they can be the same.)
}
},
'attn_training': {
'source_files': {
'h100': 'kernels/attn/h100/h100.cu'
}
},
'hedgehog': {
'source_files': {
'h100': 'kernels/hedgehog/hh.cu'
}
},
'based': {
'source_files': {
'h100': [
'kernels/based/linear_prefill/linear_prefill.cu',
]
}
},
'fused_layernorm': {
'source_files': {
'h100': [
'kernels/fused_layernorm/layer_norm.cu',
]
}
},
'fused_rotary': {
'source_files': {
'h100': [
'kernels/fused_rotary/rotary.cu',
]
}
}
}
### WHICH KERNELS DO WE WANT TO BUILD?
# (oftentimes during development work you don't need to redefine them all.)
# kernels = ['attn_inference', 'attn_training', 'hedgehog', 'fused_rotary']
kernels = ['attn_inference']
### WHICH GPU TARGET DO WE WANT TO BUILD FOR?
target = 'h100'