Skip to content

Commit c3c2c3a

Browse files
[Fix] Export TORCH_CUDA_ARCH_LIST in install.sh (ModelCloud#133)
* chore: update TORCH_CUDA_ARCH_LIST in install.sh * chore: remove importlib from requirements.txt * chore: Fix multi-gpu environment check in bitblas_target_detector.py * chore: Update logger.info message in qlinear_bitblas.py * Update install.sh We like to not use PTX compilation for now. --------- Co-authored-by: Qubitium-ModelCloud <[email protected]>
1 parent 9a56c81 commit c3c2c3a

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

gptqmodel/nn_modules/qlinear/bitblas_target_detector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_gpu_model_from_nvidia_smi(gpu_id: int = 0):
3737

3838
# for multiple cpus, CUDA_DEVICE_ORDER=PCI_BUS_ID must be set to match nvidia-smi or else gpu_id is
3939
# most likely incorrect and the wrong gpu
40-
if len(gpus) > 0 and os.environ.get("CUDA_DEVICE_ORDER") != "PCI_BUS_ID":
40+
if len(gpus) > 1 and os.environ.get("CUDA_DEVICE_ORDER") != "PCI_BUS_ID":
4141
raise EnvironmentError("Multi-gpu environment must set `CUDA_DEVICE_ORDER=PCI_BUS_ID`.")
4242

4343
if gpu_id >= len(gpus) or gpu_id < 0:

gptqmodel/nn_modules/qlinear/qlinear_bitblas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def import_bitblas():
4242

4343
bitblas.auto_detect_nvidia_target = patched_auto_detect_nvidia_target
4444
BITBLAS_TARGET = bitblas.auto_detect_nvidia_target(int(os.environ.get("CUDA_VISIBLE_DEVICES", "0")))
45-
logger.info("BITBLAS_TARGET", BITBLAS_TARGET)
45+
logger.info(f"BITBLAS_TARGET {BITBLAS_TARGET}")
4646

4747
if BITBLAS_DATABASE_PATH is None:
4848
from bitblas.cache import get_database_path

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
2+
export TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0 7.5 8.0 8.6 8.9 9.0"
33
INSTALL_COMMAND="pip install -vvv --no-build-isolation ."
44

55
check_uv_version() {

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ threadpoolctl>=3.5.0
1313
packaging>=24.1
1414
ninja>=1.11.1.1
1515
bitblas>=0.0.1.dev12
16-
importlib-metadata

0 commit comments

Comments
 (0)