vLLM plugin for flyte
Project description
Union vLLM Plugin
Serve large language models using vLLM with Flyte Apps.
This plugin provides the VLLMAppEnvironment class for deploying and serving LLMs using vLLM.
Installation
pip install --pre flyteplugins-vllm
Usage
import flyte
import flyte.app
from flyteplugins.vllm import VLLMAppEnvironment
# Define the vLLM app environment
vllm_app = VLLMAppEnvironment(
name="my-llm-app",
model="s3://your-bucket/models/your-model",
model_id="your-model-id",
resources=flyte.Resources(cpu="4", memory="16Gi", gpu="L40s:1"),
stream_model=True, # Stream model directly from blob store to GPU
scaling=flyte.app.Scaling(
replicas=(0, 1),
scaledown_after=300,
),
)
if __name__ == "__main__":
flyte.init_from_config()
app = flyte.serve(vllm_app)
print(f"Deployed vLLM app: {app.url}")
Features
- Streaming Model Loading: Stream model weights directly from object storage to GPU memory, reducing startup time and disk requirements.
- OpenAI-Compatible API: The deployed app exposes an OpenAI-compatible API for chat completions.
- Auto-scaling: Configure scaling policies to scale up/down based on traffic.
- Tensor Parallelism: Support for distributed inference across multiple GPUs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flyteplugins_vllm-2.0.0b53-py3-none-any.whl.
File metadata
- Download URL: flyteplugins_vllm-2.0.0b53-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5fe2638adf13f574b16e8f30423e89ba39b738981e8b821f9bc59450a1d0c75
|
|
| MD5 |
427f5d0a4e994c724776902f9a662e7e
|
|
| BLAKE2b-256 |
2f02b364385a7e75968aaedc04f878c51f2b5a9aad19e65d8463adcf6828d9e3
|