forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
30 lines (21 loc) · 1.19 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
from jetson_containers import L4T_VERSION
if L4T_VERSION.major >= 34:
# 11/3/23 - removing these due to circular dependency and increased load times of anything using transformers
# if you want to use load_in_8bit/load_in_4bit or AutoGPTQ quantization built-into transformers, use
# the 'bitsandbytes' or 'auto_gptq' containers directly instead of transformers container
#package['depends'].extend(['bitsandbytes', 'auto_gptq'])
# version installed from source
package_git = package.copy()
package_git['name'] = 'transformers:git'
package_git['build_args'] = {
'TRANSFORMERS_PACKAGE': "git+https://github.com/huggingface/transformers",
'TRANSFORMERS_VERSION': "https://api.github.com/repos/huggingface/transformers/git/refs/heads/main"
}
# version with nvgpt support
package_nvgpt = package.copy()
package_nvgpt['name'] = 'transformers:nvgpt'
package_nvgpt['build_args'] = {
'TRANSFORMERS_PACKAGE': "git+https://github.com/ertkonuk/transformers",
'TRANSFORMERS_VERSION': "https://api.github.com/repos/ertkonuk/transformers/git/refs/heads/main"
}
package = [package, package_git, package_nvgpt]