Scripts to manage a vLLM OpenAI-compatible API server running vLLM 0.19.1.
bash ~/code/vllm-tools/start-vllm.shOptions (set as environment variables before running):
| Variable | Default | Description |
|---|---|---|
VLLM_PORT |
8000 | Port to listen on |
VLLM_TP |
2 | Tensor parallelism (GPUs to use) |
VLLM_GPU_MEM |
0.95 | Fraction of GPU memory to use |
VLLM_MAX_LEN |
16384 | Maximum model length (tokens) |
VLLM_MAX_SEQS |
256 | Maximum number of sequences |
VLLM_CHECK_ONLY |
(empty) | Run pre-flight checks and exit (don't start) |
bash ~/code/vllm-tools/stop-vllm.shcurl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "llama-lang/Qwen3.6-27B",
"messages": [{"role": "user", "content": "Hello"}],
"max_tokens": 10,
"temperature": 0.7
}'GET /health-- health checkGET /v1/models-- list modelsPOST /v1/chat/completions-- chat completionsPOST /v1/completions-- text completionsPOST /v1/embeddings-- embeddings (if supported by model)
| File | Purpose |
|---|---|
start-vllm.sh |
Launch vLLM with OpenAI API enabled |
stop-vllm.sh |
Stop the running instance |
Output goes to /tmp/vllm-serve.log.
PID is stored in /tmp/vllm-$PORT.pid.