[Model][Core] Enable async_chunk streaming pipeline for CosyVoice3 (#1703)
Signed-off-by: linyueqian <linyueqian@outlook.com> Signed-off-by: indevn <indevn@outlook.com> Co-authored-by: linyueqian <linyueqian@outlook.com>
This commit is contained in:
1 parent
d92439c155
commit
6fc38e0467
18 files changed
+2094
-131
No files matched your search
@@ -7,7 +7,9 @@ class CosyVoice3Config(PretrainedConfig):
|
||||
model_type = "cosyvoice3"
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# Set speech EOS so vLLM stops generation at the right token
|
||||
# Set primary speech EOS so vLLM stops generation at the right token.
|
||||
# The official CosyVoice3 treats ALL tokens >= speech_token_size
|
||||
# (6561-6760) as stop signals; see stop_token_ids in the YAML configs.
|
||||
kwargs.setdefault("eos_token_id", 6562)
|
||||
super().__init__(**kwargs)
|
||||
self.sample_rate = 24000
|
||||
|
||||
Reference in new issue
Block a user