-
Add support for optional max concurrency (#643)
发布于
2024-02-28 03:22:53 +00:00 Added optional Semaphore-based concurrency control for #642
As for the default value formax_concurrency, I don't know the ratio
of API users vs. local LLM users, so the proposed default is an
opinionated value of16- I think more people use OpenAI API for now vs. local LLMs, thus
default is not-1(no limit) 16seems to be reasonably fast and doesn't seem to hit throughput
limit in my experience
Tests
Embedding for 1k documents finished in <2min and subsequent Testset
generation fortest_size=1000proceeding without getting stuck:
Co-authored-by: Jithin James jamesjithin97@gmail.com
下载附件
- I think more people use OpenAI API for now vs. local LLMs, thus