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

Now I use lm-format-forcer+vllm and it takes 10 seconds to generate a json. This speed is not feasible in my current business. Is there any accelerated solution, such as a paper, plan or pr? #139

Open
lwdnxu opened this issue Sep 18, 2024 · 2 comments

Comments

@lwdnxu
Copy link

lwdnxu commented Sep 18, 2024

Now I use lm-format-forcer+vllm and it takes 10 seconds to generate a json. This speed is not feasible in my current business. Is there any accelerated solution, such as a paper, plan or pr?

@noamgat
Copy link
Owner

noamgat commented Sep 19, 2024

This has been discussed, also in the vLLM repo. There are some profiling efforts going on there, it might have to do with copying logit buffers from CPU to GPU memory. There is no clear cut solution yet, if you want to step in to investigate, we will be very grateful :)

@ckhfor
Copy link

ckhfor commented Dec 17, 2024

python -> cpp, python is too slow...
multithreading, python gil...
pre-compute accept/reject/uncertain
... many ways to accelerate

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

3 participants