[Bugfix] Fix FunASR-Nano crash during initialization (#44215)

Signed-off-by: SunskyXH <sunskyxh@gmail.com>
Co-authored-by: Roger Wang <hey@rogerw.io>
This commit is contained in:
SunskyXH
2026-06-07 20:00:02 -07:00
committed by GitHub
co-authored by Roger Wang
parent 2ed0a9627b
commit 6124a98a9b
+4
View File
@@ -950,6 +950,10 @@ class FunASRForConditionalGeneration(
)
self.logits_processor = LogitsProcessor(config.vocab_size, scale=logit_scale)
def get_language_model(self) -> torch.nn.Module:
# Required as part of SupportsMultiModal interface.
return self.model.decoder
def forward(
self,
input_ids: torch.Tensor,