Skip to content

Commit

Permalink
wrong device issue #1196 (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubitium authored Feb 1, 2025
1 parent 9e4129c commit f095cb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gptqmodel/models/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def get_model_local_path(pretrained_model_id_or_path, **kwargs):
if is_local:
return pretrained_model_id_or_path
else:
# hf_transfer does not accept max_memory arg
kwargs.pop('max_memory', None)
return snapshot_download(pretrained_model_id_or_path, **kwargs)

def get_tokenizer(model_id_or_path, config, trust_remote_code: bool = False):
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ device-smi==0.3.3
sentencepiece>=0.2.0
protobuf>=5.29.1
pillow>=10.4.0
hf_transfer>=0.1.9

0 comments on commit f095cb0

Please sign in to comment.