Reduce AutoWeightsLoader kwargs (#53106)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2026-08-20 15:40:11 +00:00
committed by GitHub
parent 2dd17225c6
commit 1fe3a1571a
84 changed files with 577 additions and 568 deletions
+2 -1
View File
@@ -1189,6 +1189,7 @@ class MiMoV2OmniForCausalLM(nn.Module, SupportsMultiModal, SupportsPP, SupportsQ
# mapping for original checkpoint
"lm_head.": "language_model.lm_head.",
"model.": "language_model.model.",
"audio_tokenizer.": None,
}
)
@@ -1490,6 +1491,6 @@ class MiMoV2OmniForCausalLM(nn.Module, SupportsMultiModal, SupportsPP, SupportsQ
def load_weights(self, weights: Iterable[tuple[str, torch.Tensor]]) -> set[str]:
audio_loaded: set[str] = set()
loader = AutoWeightsLoader(self, skip_prefixes=["audio_tokenizer."])
loader = AutoWeightsLoader(self)
auto_loaded = loader.load_weights(weights, mapper=self.hf_to_vllm_mapper)
return audio_loaded | auto_loaded