add extract token run_mode

This commit is contained in:
志浩 2024-09-24 17:20:33 +08:00
parent ce5b79d234
commit bc0608d380

View File

@ -1992,8 +1992,6 @@ class SenseVoiceL(nn.Module):
frontend=None,
**kwargs,
):
if kwargs.get("batch_size", 1) > 1:
raise NotImplementedError("batch decoding is not implemented")
if frontend is None and not hasattr(self, "frontend"):
frontend_class = tables.frontend_classes.get("WhisperFrontend")