Skip to content

Commit

Permalink
fix get_best_device() wrong usage (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZX-ModelCloud authored Dec 16, 2024
1 parent aa9934c commit 7b4ae93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptqmodel/models/auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def load(

# TODO fix me...unify device + device_map auto logic
if not device and not device_map or device_map == "auto":
device = get_best_device()
device = get_best_device(backend=backend)

if is_quantized:
return cls.from_quantized(
Expand Down

0 comments on commit 7b4ae93

Please sign in to comment.