mirror of
https://github.com/mudler/LocalAI.git
synced 2024-06-07 19:40:48 +00:00
0135e1e3b9
* fix: use vllm AsyncLLMEngine to bring true stream Current vLLM implementation uses the LLMEngine, which was designed for offline batch inference, which results in the streaming mode outputing all blobs at once at the end of the inference. This PR reworks the gRPC server to use asyncio and gRPC.aio, in combination with vLLM's AsyncLLMEngine to bring true stream mode. This PR also passes more parameters to vLLM during inference (presence_penalty, frequency_penalty, stop, ignore_eos, seed, ...). * Remove unused import |
||
---|---|---|
.. | ||
backend_pb2_grpc.py | ||
backend_pb2.py | ||
backend_vllm.py | ||
Makefile | ||
README.md | ||
run.sh | ||
test_backend_vllm.py | ||
test.sh |
Creating a separate environment for the vllm project
make vllm