[Model] Fix missing maybe_prefix (#42280)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2026-05-11 09:04:06 +00:00
committed by GitHub
parent b1b59720b2
commit 9efdddca28
25 changed files with 49 additions and 29 deletions
+3 -2
View File
@@ -64,7 +64,7 @@ from .interfaces import (
SupportsMultiModal,
SupportsTranscription,
)
from .utils import AutoWeightsLoader, WeightsMapper, make_layers
from .utils import AutoWeightsLoader, WeightsMapper, make_layers, maybe_prefix
logger = init_logger(__name__)
@@ -1717,7 +1717,8 @@ class CohereASRModel(nn.Module):
self.encoder = ConformerEncoder(vllm_config=vllm_config)
self.decoder = CohereASRDecoder(
vllm_config=vllm_config, prefix=f"{prefix}.decoder"
vllm_config=vllm_config,
prefix=maybe_prefix(prefix, "decoder"),
)
if self.encoder.d_model != self.decoder.hidden_size: