[Bugfix] Use the correct repository revision for secondary artifact loaders (#57461)

Signed-off-by: Clinton Thomas <1033162+KernelClint@users.noreply.github.com> Co-authored-by: Lucas Bourtoule <35483370+dhalf@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

Clinton Thomas committed Sep 28, 2026 at 10:25 UTC cd63bf9996d3fdbe24a3228f970b84310600612f
2 files changed +7 -3
vllm/model_executor/models/funaudiochat.py
+1 -1
@@ -529,7 +529,7 @@ class FunAudioChatProcessingInfo(BaseProcessingInfo):
529 return TokenizersBackend.from_pretrained(
530 self.model_id,
531 subfolder="speech_tokenizer",
532 - revision=self.ctx.model_config.tokenizer_revision,
532 + revision=self.ctx.model_config.revision,
533 )
534
535 def get_feature_extractor(self) -> WhisperFeatureExtractor:
vllm/renderers/hf.py
+6 -2
@@ -277,8 +277,12 @@ def resolve_chat_template(
277 if tools is None:
278 chat_template = _try_get_processor_chat_template(
279 tokenizer,
280 - revision=model_config.revision,
281 - code_revision=model_config.code_revision,
280 + revision=model_config.tokenizer_revision,
281 + code_revision=(
282 + model_config.code_revision
283 + if model_config.tokenizer == model_config.model
284 + else None
285 + ),
286 trust_remote_code=model_config.trust_remote_code,
287 )
288 if chat_template is not None: