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
+10 -9
View File
@@ -2014,7 +2014,15 @@ class CohereAsrForConditionalGeneration(
}
hf_to_vllm_mapper = WeightsMapper(
orig_to_new_substr={".fc1.": ".mlp.fc1.", ".fc2.": ".mlp.fc2."}
orig_to_new_substr={
".fc1.": ".mlp.fc1.",
".fc2.": ".mlp.fc2.",
"model.conv.batch_norm.num_batches_tracked": None,
},
orig_to_new_prefix={
"model.preprocessor.featurizer.fb": None,
"model.preprocessor.featurizer.window": None,
},
)
supports_transcription_only = True
@@ -2273,14 +2281,7 @@ class CohereAsrForConditionalGeneration(
return name, loaded_weight
loader = AutoWeightsLoader(
self,
skip_prefixes=[
"model.preprocessor.featurizer.fb",
"model.preprocessor.featurizer.window",
],
skip_substrs=["model.conv.batch_norm.num_batches_tracked"],
)
loader = AutoWeightsLoader(self)
return loader.load_weights(
map(transform, weights), mapper=self.hf_to_vllm_mapper