python --version
pip install vllm
NVIDIA with 16GB+ VRAM for 7B models
Deploy an open-source LLM with vLLM for high-throughput serving, expose OpenAI-compatible API.
1 #!/bin/bash 2 # Install vLLM 3 pip install vllm 4 5 # Launch vLLM server (OpenAI-compatible API) 6 # Replace model with any HuggingFace model ID 7 python -m vllm.entrypoints.openai.api_server \ 8 --model meta-llama/Llama-3.2-3B-Instruct \ 9 --host 0.0.0.0 \ 10 --port 8000 \ 11 --max-model-len 8192 \ 12 --dtype auto \ 13 --api-key "your-secret-key" 14 15 # For CPU-only (Ollama alternative): 16 # ollama serve (runs on port 11434) 17
Sign in to share your feedback and join the discussion.