forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
34 lines (25 loc) · 867 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
33
34
from jetson_containers import L4T_VERSION
import os
def exllama(version, branch=None, requires=None, default=False):
pkg = package.copy()
pkg['name'] = f'exllama:{version}'
if requires:
pkg['requires'] = requires
if default:
pkg['alias'] = 'exllama'
if not branch:
branch = version
pkg['build_args'] = {
'EXLLAMA_VERSION': version,
'EXLLAMA_BRANCH': branch,
'FORCE_BUILD': os.environ.get('FORCE_BUILD', 'off'),
}
if L4T_VERSION.major >= 36:
pkg['depends'] = pkg['depends'] + ['flash-attention']
return pkg
package = [
exllama('0.0.14', requires='==35.*', default=True),
exllama('0.0.15', requires='>=36', default=True),
exllama('0.2.3', requires='>=36', default=False),
#exllama('0.0.16', requires=['>=36', '>=cu124']),
]