[Cleanup]Migrate model validation to adapters and clean up serving_speech.py (#4833)
Signed-off-by: boatman <109857087+sphinxkkkbc@users.noreply.github.com> Co-authored-by: Yueqian Lin <70319226+linyueqian@users.noreply.github.com>
This commit is contained in:
1 parent
10d3a25916
commit
32dddfcef4
16 files changed
+547
-550
No files matched your search
@@ -104,6 +104,10 @@ class TTSModelAdapter(ABC):
|
||||
#: Serving backend: ``"ar"`` (engine_client) or ``"diffusion"``.
|
||||
backend: ClassVar[str] = "ar"
|
||||
|
||||
max_new_tokens_min = 1
|
||||
|
||||
max_new_tokens_max = 4096
|
||||
|
||||
def __init__(self, ctx: SpeechServingContext) -> None:
|
||||
self.ctx = ctx
|
||||
|
||||
|
||||
Reference in new issue
Block a user