feat: Support vLLM as llm backend
In scenarios with high concurrency, where multiple user requests occur simultaneously, it is difficult for Ollama to handle all of them. Supporting vLLM as the llm backend may be a good choice.
Hi, we are working on vllm integration and it will be supported in later releases ^.^
The llm and embedding I deployed using vllm can run the demo normally
"llm": { "backend": "openai", "config": { "api_base": "vllm llm url/v1/", "api_key": "api key", "model_name_or_path": "your model name", "temperature": 0.0, "remove_think_prefix": false, "max_tokens": 8192 } }, "embedder": { "backend": "universal_api", "config": { "provider": "openai", "api_key": "EMPTY", "model_name_or_path": "embedding", "base_url": "vllm embedding url/v1/" } }, "chunker": { "backend": "sentence", "config": { "chunk_size": 512, "chunk_overlap": 128, "min_sentences_per_chunk": 1 } }
Hi @luoyi1hao, I would like to know if you have tested the change in vllm inference speed after integrating memOS
We're delighted to annouce that vLLM is officially supported by MemOS in our very latest version. Handling details can be find in example: examples/mem_os/simple_vllm_memos.py
Hey @fopdoodle8! Thanks for the contribution — already solved the issue, thanks for helping us to improve our project! 📈
Btw if you enjoyed contributing and want to stay connected with the project, we run a Discord server for contributors, a chill space to discuss features, ask questions, or pick up new issues 👉🏻 MemOS Discord Server (Contributor Exclusive)
Thanks again for shipping this, and happy MemOSing 🧠✨