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 620fcf1 commit 95e792fCopy full SHA for 95e792f
gptqmodel/nn_modules/qlinear/marlin.py
@@ -322,8 +322,7 @@ def validate_device(cls, device: DEVICE):
322
if CUDA_VISIBLE_DEVICES is None:
323
has_cuda_v8 = all(torch.cuda.get_device_capability(i)[0] >= 8 for i in range(torch.cuda.device_count()))
324
else:
325
- has_cuda_v8 = all(torch.cuda.get_device_capability(int(i))[0] >= 8 for i in CUDA_VISIBLE_DEVICES.split(","))
326
-
+ has_cuda_v8 = all(torch.cuda.get_device_capability(i)[0] >= 8 for i in range(len(CUDA_VISIBLE_DEVICES.split(","))))
327
if not has_cuda_v8:
328
raise NotImplementedError("Marlin kernel only supports compute capability >= 8.0.")
329
0 commit comments