forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
31 lines (20 loc) · 744 Bytes
/
config.py
File metadata and controls
31 lines (20 loc) · 744 Bytes
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
from jetson_containers import CUDA_VERSION
from packaging.version import Version
def block_sparse_attn(version, requires=None, default=False):
pkg = package.copy()
if requires:
pkg['requires'] = requires
pkg['name'] = f'block_sparse_attn:{version}'
pkg['build_args'] = {
'BLOCKSPARSEATTN_VERSION': version,
}
builder = pkg.copy()
builder['name'] = f'block_sparse_attn:{version}-builder'
builder['build_args'] = {**pkg['build_args'], **{'FORCE_BUILD': 'on'}}
if default:
pkg['alias'] = 'block_sparse_attn'
builder['alias'] = 'block_sparse_attn:builder'
return pkg, builder
package = [
block_sparse_attn('0.0.1', default=(CUDA_VERSION >= Version('12.6'))),
]