-
Notifications
You must be signed in to change notification settings - Fork 516
/
Copy pathconfig.py
32 lines (24 loc) · 994 Bytes
/
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
from jetson_containers import update_dependencies, CUDA_ARCHITECTURES
from packaging.version import Version
def AutoAWQ(version, kernels_version, default=False):
pkg = package.copy()
pkg['name'] = f'auto_awq:{version}'
pkg['build_args'] = {
'AUTOAWQ_VERSION': version,
'AUTOAWQ_KERNELS_VERSION': kernels_version,
'COMPUTE_CAPABILITIES': ','.join([str(x) for x in CUDA_ARCHITECTURES]),
}
if Version(str(version)) > Version('0.2.6'):
pkg['depends'] = update_dependencies(pkg['depends'], ['triton'])
builder = pkg.copy()
builder['name'] = f'auto_awq:{version}-builder'
builder['build_args'] = {**pkg['build_args'], **{'FORCE_BUILD': 'on'}}
if default:
pkg['alias'] = 'auto_awq'
builder['alias'] = 'auto_awq:builder'
return pkg, builder
package = [
AutoAWQ('0.2.7.post2', '0.0.9', default=True),
AutoAWQ('0.2.6', '0.0.8', default=False),
AutoAWQ('0.2.4', '0.0.6', default=False),
]