Resolve revision to commit_hash once per model load, via huggingface_hub's resolve_revision (#49990)
Signed-off-by: Wauplin <lucainp@gmail.com> Signed-off-by: Lucain <lucainp@gmail.com> Signed-off-by: Lucain Pouget <lucain@huggingface.co> Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: OpenAI Codex <codex@openai.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
co-authored by
OpenAI Codex
Claude Opus 5
Harry Mellor
parent
a9b39d6dcb
commit
397094da17
@@ -544,6 +544,8 @@ class UltravoxModel(nn.Module, SupportsMultiModal, SupportsPP, SupportsLoRA):
|
||||
[self.config.audio_token_index],
|
||||
)
|
||||
|
||||
# The towers live in their own Hub repos, so the revision of the
|
||||
# Ultravox repo does not apply to them.
|
||||
self.secondary_weights = []
|
||||
if config.audio_model_id is not None:
|
||||
# this prefix is not for initialization, but for loading weights
|
||||
@@ -551,7 +553,7 @@ class UltravoxModel(nn.Module, SupportsMultiModal, SupportsPP, SupportsLoRA):
|
||||
self.secondary_weights.append(
|
||||
DefaultModelLoader.Source(
|
||||
model_or_path=config.audio_model_id,
|
||||
revision=vllm_config.model_config.revision,
|
||||
revision=None,
|
||||
prefix="audio_tower.",
|
||||
)
|
||||
)
|
||||
@@ -561,7 +563,7 @@ class UltravoxModel(nn.Module, SupportsMultiModal, SupportsPP, SupportsLoRA):
|
||||
self.secondary_weights.append(
|
||||
DefaultModelLoader.Source(
|
||||
model_or_path=config.text_model_id,
|
||||
revision=vllm_config.model_config.revision,
|
||||
revision=None,
|
||||
prefix="language_model.",
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user