Skip to content

How to enable concurrency translatation or batch for customTranslate? #697

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

Open
poor-circle opened this issue Apr 20, 2025 · 2 comments
Open

Comments

@poor-circle
Copy link

poor-circle commented Apr 20, 2025

I‘m using a custom LLM translator and found the translatation is very slow because there are many text translating one by one. Once translation's latency is about 3-4s.

How can I enable concurrency translatation? my config is:

[Custom]
Url=http://localhost:6800
EnableShortDelay=True
DisableSpamChecks=True
@poor-circle
Copy link
Author

The readme said: "It will never send out more than 1 request at a time (no concurrency!)."
So there is no concurrency even if i disable spam checks?

@poor-circle poor-circle changed the title How to enable concurrency translatation? How to enable concurrency translatation for customTranslate? Apr 20, 2025
@poor-circle
Copy link
Author

poor-circle commented Apr 20, 2025

It seems that we should overload MaxTranslationsPerRequest and MaxConcurrency in CustomTranslateEndpoint.cs and load it from config?

@poor-circle poor-circle changed the title How to enable concurrency translatation for customTranslate? How to enable concurrency translatation or batch for customTranslate? Apr 20, 2025
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

1 participant