A vLLM fork that focuses on running frontier models on older cards like A6000, 3090 and A100.
Status:
| Supported Models | Quantization | KV Cache | Status |
|---|---|---|---|
DeepSeek-v4-Flash-0731 |
Native FP4 | fp8_ds_mla |
Fully Supported (0.6.0+) |
Qwen3.8-27B |
BF16, AWQ W4A16 | BF16, fp8 |
Fully Supported (v0.8.0+) |
Qwen3.8-Flash-Next |
FP8, AWQ W4A16 | BF16, fp8 |
Fully Supported (v0.9.0+) |
GLM-5.3-Flash |
FP8, AWQ W4A16 | BF16, fp8 |
Fully Supported (v0.11.2+) |
DeepSeek-V4-Flash-Vision-Exp |
Native FP4 | fp8_ds_mla |
Fully Supported (v0.13.0+) |
DeepSeek-V4.1-Flash |
Native FP4 with Engram | nvfp4_ds_mla (sm80), fp8_ds_mla |
Fully Supported (v0.13.0+) |
MiMo-V2.6-Flash |
FP8 | BF16, fp8 |
Fully Supported (v0.14.0+) |
MiniMax-M3.1-Flash |
MXFP8 + NVFP4 | BF16, fp8 |
Fully Supported (v0.14.0+) |
Hy4-Flash |
FP8 | BF16, fp8_ds_mla |
Fully Supported (v0.14.1+) |
Note we have a paired LMCache fork for production kvcache serving, which is also built into our docker images.
Prebuilt images are published to Docker Hub on every push:
| Image | Target GPUs |
|---|---|
lazymio/vllm-backport:latest-sm86 (also :latest) |
Ampere sm86 (A6000, RTX 30xx) |
lazymio/vllm-backport:latest-sm80 |
Ampere sm80 (A100) |
lazymio/vllm-backport:latest-sm89 |
Ada sm89 (RTX 4090, L40S) |
lazymio/vllm-backport:v0.14.4-sm86 / -sm80 / -sm89 |
pinned release builds |
The -sm80 / -sm86 / -sm89 tags are published for every release and all point to the same image, which contains the kernels for all three architectures (no FA3/Hopper kernels). The entrypoint is vllm serve and lmcache is also available within the same image!
:latest* tags track the main branch; each release also ships versioned tags like :v0.14.4-sm86 if you want to pin. Check Dockerhub or Github for available latest tags.
Host driver requirements (the image is CUDA 13.0):
- Driver 580 or newer: runs as is.
- Driver 535 / 550 / 565 / 570 / 575 (
nvidia-smireports CUDA 12.x) on datacenter or professional GPUs: add-e VLLM_ENABLE_CUDA_COMPATIBILITY=1. - Consumer GPUs (RTX 30xx / 40xx): driver 580 or newer only.
Note the sample below includes LMCache. If you do not have enough RAM or disk, you could remove the --kv-transfer-config and the full LMCache section.
services:
vllm:
image: lazymio/vllm-backport:latest
depends_on: [lmcache] # Remove this line if you remove the lmcache section below
command:
- deepseek-ai/DeepSeek-V4-Flash-0731
- '--kv-transfer-config={"kv_connector":"LMCacheMPConnector","kv_connector_module_path":"lmcache.integration.vllm.lmcache_mp_connector","kv_role":"kv_both","kv_connector_extra_config":{"lmcache.mp.host":"127.0.0.1","lmcache.mp.port":5556}}'
- ... (model specific commands see below)
ports:
- "8000:8000"
volumes:
- ~/.cache/huggingface:/root/.cache/huggingface
environment:
- HUGGING_FACE_HUB_TOKEN=${HUGGING_FACE_HUB_TOKEN:-}
# For PP with all ranks in this container; use a reachable NIC across hosts.
# - GLOO_SOCKET_IFNAME=lo
ipc: host
restart: unless-stopped
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
lmcache:
image: lazymio/vllm-backport:latest
entrypoint: ["lmcache", "server"]
command:
- --host=127.0.0.1
- --port=5556
- --http-port=18556
- --chunk-size=1024 # must be a multiple of the model's KV block size, see each model's LMCache note below
- --separate-object-groups
- --l1-size-gb=1024
- --eviction-policy=LRU
- --max-workers 16
- --l2-adapter '{"type":"fs_native","base_path":"path/to/l2","num_workers":32,"max_capacity_gb":1024,"eviction":{"eviction_policy":"LRU","trigger_watermark":0.8,"eviction_ratio":0.2}}'
environment:
- PYTHONUNBUFFERED=1
- CUDA_DEVICE_ORDER=PCI_BUS_ID
restart: unless-stopped
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]Then:
docker compose up -d
curl http://localhost:8000/v1/models- With
FULL_AND_PIECEWISECUDA graphs:- Set
NCCL_ALGO=Ring NCCL_PROTO=Simpleand--disable-custom-all-reduce. - Bound
cudagraph_capture_sizesas shown in the recipes.
- Set
- Adjust your TP (--tensor-parallel-size), PP (--pipeline-parallel-size) and EP (--enable-expert-parallel) accordingly.
- PP inside a single container: set
GLOO_SOCKET_IFNAME=lo(across hosts, an interface every host can reach).
NCCL_ALGO=Ring NCCL_PROTO=Simple
vllm serve wtdcode/GLM-5.3-Flash-AWQ-W4A16 \
--host 0.0.0.0 \
--port 8000 \
--served-model-name glm-5.3-flash \
--tensor-parallel-size 4 \
--max-model-len 524288 \
--gpu-memory-utilization 0.92 \
--max-num-seqs 16 \
--max-num-batched-tokens 8192 \
--enable-prefix-caching \
--enable-prompt-tokens-details \
--disable-custom-all-reduce \
--compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[1,2,4,8,16],"max_cudagraph_capture_size":16}' \
--speculative-config '{"method":"mtp","num_speculative_tokens":3}' \
--enable-auto-tool-choice \
--tool-call-parser glm47 \
--reasoning-parser glm45- On 48 GB cards use
--tensor-parallel-size 8and--gpu-memory-utilization 0.85. - Add
--language-model-onlyfor text-only serving, or setVLLM_USE_RUST_FRONTEND=1for image/video input. --kv-cache-dtype fp8is supported.- LMCache:
--chunk-size 1152 --separate-object-groupson the server and--prefix-cache-retention-interval 1152onvllm serve(2304 for both with fp8 KV).
VLLM_PLE_CPU_OFFLOAD=1 VLLM_ALLOW_LONG_MAX_MODEL_LEN=1
PYTORCH_CUDA_ALLOC_CONF=pinned_max_round_threshold_mb:4096
vllm serve /path/to/your/qwen3.8 \
--host=0.0.0.0 \
--port=19088 \
--served-model-name=qwen3.8-flash-next \
--tensor-parallel-size=4 \
--enable-expert-parallel \
--max-model-len=1000000 \
--max-num-seqs=8 \
--max-num-batched-tokens=2048 \
--gpu-memory-utilization=0.9 \
--disable-custom-all-reduce \
--speculative-config '{"method":"mtp","num_speculative_tokens":3}' \
--compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE"}' \
--hf-overrides '{"text_config": {"rope_parameters": {"mrope_interleaved": true, "mrope_section": [11, 11, 10], "rope_type": "yarn", "rope_theta": 10000000, "partial_rotary_factor": 0.25, "factor": 4.0, "original_max_position_embeddings": 262144}}}' \
--enable-auto-tool-choice \
--tool-call-parser=qwen3_xml \
--reasoning-parser=qwen3 \
--enable-prompt-tokens-details \
--enable-prefix-caching \
--prefix-match-unit=16- Needs about 51 GiB of host memory for the n-gram embedding table.
--enable-expert-parallelis required.--kv-cache-dtype fp8is supported.- LMCache:
--chunk-size 832 --separate-object-groupson the server and--prefix-cache-retention-interval 832onvllm serve(1600 for both with fp8 KV). - AWQ W4A16: serve
wtdcode/Qwen3.8-Flash-Next-AWQ-W4A16with the same flags. - DFlash / DFlash2 (v0.14.3+): replace the MTP line with
--speculative-config '{"method":"dflash","model":"incoai/Qwen3.8-Flash-Next-DFlash2","num_speculative_tokens":7}' --block-size 864and drop--prefix-match-unit. - Keep
--prefix-match-unit=16; without it prompts under 1664 tokens never hit the prefix cache.
vllm serve /path/to/your/deepseek \
--tensor-parallel-size 8 \
--max-model-len 1048576 \
--gpu-memory-utilization 0.90 \
--kv-cache-dtype fp8_ds_mla \
--trust-remote-code \
--disable-custom-all-reduce \
--compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[1,2,4,8,16,32,64],"max_cudagraph_capture_size":64}' \
--speculative-config '{"method":"dspark","num_speculative_tokens":5}' \
--enable-auto-tool-choice --tool-call-parser deepseek_v4 \
--host 0.0.0.0 --port 8000 \
--served-model-name deepseek-v4-flash- Keep
num_speculative_tokensat 5. - For mixed long and short requests add
--max-num-batched-tokens 4096 --long-prefill-token-threshold 1024. - Thinking is on (high effort) by default; pass
reasoning_effort: "none"for plain chat. Agentic clients should passreasoning_effortexplicitly from the first turn. - LMCache:
--chunk-size 1024on the server and--prefix-cache-retention-interval 1024onvllm serve.
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
vllm serve /path/to/DeepSeek-V4.1-Flash \
--host 0.0.0.0 --port 18005 \
--served-model-name deepseek-v4.1-flash \
--tensor-parallel-size 8 \
--max-num-batched-tokens 16384 \
--gpu-memory-utilization 0.90 \
--engram-config '{"cpu_offload": true}' \
--enable-prefix-caching \
--compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[6,12,24,48,96,192,384],"max_cudagraph_capture_size":384}' \
--speculative-config '{"method":"dspark","num_speculative_tokens":5,"use_local_argmax_reduction":true}' \
--tokenizer-mode deepseek_v41 \
--enable-auto-tool-choice --tool-call-parser deepseek_v41 --reasoning-parser deepseek_v41- Expert parallel also works.
- LMCache:
--chunk-size 1024on the server.
vllm serve XiaomiMiMo/MiMo-V2.6-Flash-RL \
--served-model-name mimo-v2.6-flash \
--tensor-parallel-size 8 \
--trust-remote-code \
--gpu-memory-utilization 0.92 \
--max-model-len 262144 \
--generation-config vllm \
--speculative-config '{"method":"dflash","model":"/path/to/MiMo-V2.6-Flash-RL/dflash","num_speculative_tokens":7}' \
--enable-auto-tool-choice --tool-call-parser mimo --reasoning-parser mimo--kv-cache-dtype fp8doubles the KV pool.
vllm serve MiniMaxAI/MiniMax-M3.1-Flash \
--served-model-name minimax-m3.1-flash \
--tensor-parallel-size 8 \
--block-size 128 --disable-hybrid-kv-cache-manager \
--kv-cache-dtype fp8 --attention-config '{"indexer_kv_dtype": "fp8"}' \
--language-model-only \
--max-model-len 131072 \
--gpu-memory-utilization 0.90 \
--speculative-config '{"method":"dspark","num_speculative_tokens":7,"attention_backend":"TRITON_ATTN","kv_cache_dtype":"fp8","draft_sample_method":"probabilistic"}' \
--enable-auto-tool-choice --tool-call-parser minimax_m3 --reasoning-parser minimax_m3- Use
num_speculative_tokens3 when aggregate throughput matters more than single-stream speed.
vllm serve tencent/Hy4-flash-FP8 \
--served-model-name hy4-flash \
--tensor-parallel-size 8 --enable-expert-parallel \
--dtype bfloat16 \
--max-model-len 131072 \
--max-num-seqs 8 --max-num-batched-tokens 8192 \
--gpu-memory-utilization 0.92 \
--kv-cache-dtype fp8_ds_mla \
--limit-mm-per-prompt '{"image":1,"video":0}' \
--enable-prefix-caching \
--speculative-config '{"num_speculative_tokens":5,"method":"dfly"}' \
--enable-auto-tool-choice --tool-call-parser hy_v4 --reasoning-parser hy_v4--enable-expert-parallelis required.- Needs about 127 GiB of host memory for the Engram tables.
- With LMCache drop
--speculative-config(DFly does not work with a KV connector). - Thinking is set per request with
chat_template_kwargs: {"reasoning_effort": "high" | "no_think"}.