Skip to content

Commit

Permalink
ignore *.pth when download model from model hub (#2426)
Browse files Browse the repository at this point in the history
* ignore *.pth when download model from model hub

* update
  • Loading branch information
lvhan028 authored Sep 5, 2024
1 parent aa44e3d commit 4866410
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lmdeploy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def get_model(pretrained_model_name_or_path: str,
download_kwargs['token'] = token

model_path = snapshot_download(pretrained_model_name_or_path,
ignore_patterns=['*.pth'],
**download_kwargs)
return model_path

Expand Down

0 comments on commit 4866410

Please sign in to comment.