From 15436806912d7ad9371c8bcf6a46857590c107d2 Mon Sep 17 00:00:00 2001 From: alexm-nm <59768536+alexm-nm@users.noreply.github.com> Date: Mon, 22 Apr 2024 12:10:48 -0400 Subject: [PATCH] [Bugfix] Ensure download_weights_from_hf(..) inside loader is using the revision parameter (#4217) --- vllm/model_executor/model_loader/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/model_executor/model_loader/loader.py b/vllm/model_executor/model_loader/loader.py index 6c8cb2935f37e..64cd186506bdb 100644 --- a/vllm/model_executor/model_loader/loader.py +++ b/vllm/model_executor/model_loader/loader.py @@ -172,7 +172,7 @@ def _prepare_weights(self, model_name_or_path: str, 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