Skip to content

Commit

Permalink
call normalize_device()
Browse files Browse the repository at this point in the history
  • Loading branch information
ZX-ModelCloud committed Dec 16, 2024
1 parent 25bde93 commit ce13c09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gptqmodel/models/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ def from_quantized(
verify_hash: Optional[Union[str, List[str]]] = None,
**kwargs,
):
if device is not None:
device = normalize_device(device)

# TODO need to normalize backend and others in a unified api
device = parse_device_map(device, device_map)

Expand Down

0 comments on commit ce13c09

Please sign in to comment.