fix: propagate revision/code_revision pins to all artifact boundaries (#42616)

Signed-off-by: jperezde <jperezde@redhat.com>
Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
This commit is contained in:
Juan Pérez de Algaba
2026-05-15 02:31:54 -07:00
committed by GitHub
co-authored by Cyrus Leung
parent d735968f6d
commit d26a28ab03
6 changed files with 17 additions and 5 deletions
@@ -57,7 +57,12 @@ class GGUFModelLoader(BaseModelLoader):
# repo id/filename.gguf
if "/" in model_name_or_path and model_name_or_path.endswith(".gguf"):
repo_id, filename = model_name_or_path.rsplit("/", 1)
return hf_hub_download(repo_id=repo_id, filename=filename)
return hf_hub_download(
repo_id=repo_id,
filename=filename,
revision=model_config.revision,
cache_dir=self.load_config.download_dir,
)
# repo_id:quant_type
elif "/" in model_name_or_path and ":" in model_name_or_path:
repo_id, quant_type = model_name_or_path.rsplit(":", 1)