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

Using candle-vllm as crate in rust? #62

Open
gkvoelkl opened this issue Jul 20, 2024 · 2 comments
Open

Using candle-vllm as crate in rust? #62

gkvoelkl opened this issue Jul 20, 2024 · 2 comments

Comments

@gkvoelkl
Copy link

Hi Eric, great rust programm.

I am looking for a crate so I can use a chatbot function within my rust programm. I tried to to that with candle. I hope it will be more documented in den future.

Will it be possible to call a function of candle-vllm without starting an explicit server? So I can use candle-vllm within my programm.

Thanks

Best regards Gerhard

@EricLBuehler
Copy link
Owner

EricLBuehler commented Jul 24, 2024

Hi @gkvoelkl! Candle-vllm is a great option: you can see an example of how to build such a chatbot here in pure Rust: openai_server.rs.

I would also recommend that you check out mistral.rs as it not only has PagedAttention but Metal, Cpu, vision model, adapter models, quantization, and a plethora of other features including a crate which is meant for usage in an application (docs, examples).

@francis2tm
Copy link

Hello @EricLBuehler!
How would you compare mistral.rs vs candle-vllm? Specially when it comes to features and which use-cases one is better than the other

Amazing work btw

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