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)
+2 -1
View File
@@ -92,6 +92,7 @@ class KimiAudioWhisperEncoder(WhisperEncoder):
whisper_config = HFWhisperConfig.from_pretrained(
model_path,
subfolder=KIMIA_WHISPER_SUBFOLDER,
revision=vllm_config.model_config.revision,
)
super().__init__(
@@ -426,7 +427,7 @@ class KimiAudioForConditionalGeneration(
DefaultModelLoader.Source(
model_or_path=vllm_config.model_config.model,
subfolder="whisper-large-v3",
revision=None,
revision=vllm_config.model_config.revision,
)
]
+1
View File
@@ -110,6 +110,7 @@ class KimiK25ProcessingInfo(BaseProcessingInfo):
tokenizer = self.get_tokenizer()
image_processor = cached_get_image_processor(
self.ctx.model_config.model,
revision=self.ctx.model_config.revision,
trust_remote_code=self.ctx.model_config.trust_remote_code,
)
+2
View File
@@ -1064,6 +1064,7 @@ class _ModelRegistry:
module,
model_config.model,
revision=model_config.revision,
code_revision=model_config.code_revision,
trust_remote_code=model_config.trust_remote_code,
warn_on_fail=False,
)
@@ -1077,6 +1078,7 @@ class _ModelRegistry:
module,
model_config.model,
revision=model_config.revision,
code_revision=model_config.code_revision,
trust_remote_code=model_config.trust_remote_code,
warn_on_fail=True,
)
+1 -1
View File
@@ -203,7 +203,7 @@ class BgeM3EmbeddingModel(RobertaEmbeddingModel):
self.secondary_weights = [
DefaultModelLoader.Source(
model_or_path=vllm_config.model_config.model,
revision=None,
revision=vllm_config.model_config.revision,
prefix=prefix,
allow_patterns_overrides=[filename],
)