MemOS icon indicating copy to clipboard operation
MemOS copied to clipboard

feat: Support vLLM as llm backend

Open fopdoodle8 opened this issue 1 year ago • 6 comments

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.

fopdoodle8 avatar Jul 08 '25 07:07 fopdoodle8

Hi, we are working on vllm integration and it will be supported in later releases ^.^

spitzblattr avatar Jul 08 '25 10:07 spitzblattr

The llm and embedding I deployed using vllm can run the demo normally

luoyi1hao avatar Jul 24 '25 10:07 luoyi1hao

"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 } }

luoyi1hao avatar Jul 24 '25 10:07 luoyi1hao

Hi @luoyi1hao, I would like to know if you have tested the change in vllm inference speed after integrating memOS

z7d1 avatar Aug 04 '25 06:08 z7d1

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

kakack avatar Aug 04 '25 11:08 kakack

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 🧠✨

angarchie avatar May 19 '26 09:05 angarchie