Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into InternVL2_support
Browse files Browse the repository at this point in the history
  • Loading branch information
ZX-ModelCloud committed Dec 25, 2024
2 parents 0f7cba5 + ebf169a commit ad63498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptqmodel/utils/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def normalize_device_device_map(device: Optional[Union[str, torch.device]], devi
return None
else:
if isinstance(device, str):
return DEVICE(device)
return normalize_device(device)
elif isinstance(device, torch.device):
return DEVICE(device.type)
else:
Expand Down

0 comments on commit ad63498

Please sign in to comment.