Skip to content

Commit

Permalink
remove device check
Browse files Browse the repository at this point in the history
  • Loading branch information
ZX-ModelCloud committed Dec 16, 2024
1 parent f24603c commit 68837f8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gptqmodel/nn_modules/qlinear/ipex.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ def validate(cls, bits: int, group_size: int, desc_act: bool, sym: bool, infeatu
if sys.platform != "linux":
return False, Exception("IPEX is only available on Linux platform.")

if device not in [DEVICE.CPU, DEVICE.XPU]:
return False, Exception(f"IPEX not supported on device: `{device}`.")

if not HAS_IPEX:
return False, IPEX_ERROR_LOG
return cls._validate(bits=bits, group_size=group_size, desc_act=desc_act, sym=sym, dynamic=dynamic, device=device, trainable=trainable)
Expand Down

0 comments on commit 68837f8

Please sign in to comment.