[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:
@@ -950,6 +950,10 @@ class FunASRForConditionalGeneration(
|
|||||||
)
|
)
|
||||||
self.logits_processor = LogitsProcessor(config.vocab_size, scale=logit_scale)
|
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(
|
def forward(
|
||||||
self,
|
self,
|
||||||
input_ids: torch.Tensor,
|
input_ids: torch.Tensor,
|
||||||
|
|||||||
Reference in New Issue
Block a user