[Bugfix] Ensure download_weights_from_hf(..) inside loader is using the revision parameter (#4217)

This commit is contained in:
alexm-nm 2024-04-22 12:10:48 -04:00 committed by GitHub
parent 077f0a2e8a
commit 1543680691
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class DefaultModelLoader(BaseModelLoader):
if not is_local:
hf_folder = download_weights_from_hf(model_name_or_path,
self.load_config.download_dir,
allow_patterns)
allow_patterns, revision)
else:
hf_folder = model_name_or_path