Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch inference for the "text-to-semantic" llm #889

Open
hbwu-ntu opened this issue Jan 16, 2025 · 1 comment
Open

Batch inference for the "text-to-semantic" llm #889

hbwu-ntu opened this issue Jan 16, 2025 · 1 comment

Comments

@hbwu-ntu
Copy link

Is your feature request related to a problem? Please describe.
I'm always frustrated when I would like to synthesis large-scale text-semantic sequence pairs, as the current function:

  • entangled the text-to-semantic function with token-to-wav function
  • only support inference for batch size is 1

Describe the solution you'd like
Disentangle this function (https://github.com/FunAudioLLM/CosyVoice/blob/main/cosyvoice/cli/model.py#L100) and support batch inference:

  • the input is text sequence
  • the output is the corresponding semantic token sequence

Describe alternatives you've considered
Disentangle this function (https://github.com/FunAudioLLM/CosyVoice/blob/main/cosyvoice/cli/model.py#L100) and support batch inference:

  • the input is text sequence
  • the output is the corresponding semantic token sequence

Additional context
N/A

@aluminumbox
Copy link
Collaborator

this is currently not in our plan, you can use multi process or multi thread to speed up inference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants