We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 748a9c7 commit 6152c90Copy full SHA for 6152c90
setup.py
@@ -17,6 +17,10 @@
17
18
TORCH_CUDA_ARCH_LIST = os.environ.get("TORCH_CUDA_ARCH_LIST")
19
20
+if TORCH_CUDA_ARCH_LIST:
21
+ arch_list = [arch for arch in TORCH_CUDA_ARCH_LIST.split() if float(arch.split('+')[0]) >= 6.0]
22
+ os.environ["TORCH_CUDA_ARCH_LIST"] = " ".join(arch_list)
23
+
24
version_vars = {}
25
exec("exec(open('gptqmodel/version.py').read()); version=__version__", {}, version_vars)
26
gptqmodel_version = version_vars['version']
@@ -109,6 +113,7 @@ def get_version_tag(is_cuda_release: bool = True) -> str:
109
113
if got_cuda_between_v6_and_v8:
110
114
FORCE_BUILD = True
111
115
116
112
117
if BUILD_CUDA_EXT:
118
if CUDA_RELEASE == "1":
119
common_setup_kwargs["version"] += f"+{get_version_tag(True)}"
0 commit comments