Setting --max-lora-rank 128 when all adapters are rank 16
Oversized max_lora_rank wastes HBM slots needed for KV cache concurrency.
Operator task guide
Multi-LoRA serving failures in vLLM usually happen because an incoming request asks for an adapter rank larger than --max-lora-rank (fixed at engine startup) or exceeds --max-loras slots in GPU memory. CLI crashes such as unrecognized arguments: serve usually mean the installed vLLM release uses the older python -m vllm.entrypoints.openai.api_server entrypoint.
Safetensors loading errors point to truncated shard downloads, LFS pointer stubs instead of binary weights, or header size limits. Verify local disk integrity and CLI version before retrying.
Reviewed . Reference guidance is not a diagnosis of your workload.
Confirm whether your container ships the newer vllm serve subcommand or requires the module entrypoint, and inspect available LoRA flags for that exact version.
python3 -c "import vllm; print(vllm.__version__)"
vllm --help
vllm serve --help | grep -i loraCheck the r (rank) value across all adapters you plan to serve and ensure --max-lora-rank covers the maximum rank and --max-loras matches active concurrent adapters.
grep -rn '"r"' /models/loras/*/adapter_config.json
vllm serve YOUR_BASE_MODEL --enable-lora --max-lora-rank 64 --max-loras 4 --max-cpu-loras 16Errors retrieving or parsing safetensors often trace to partial Hugging Face downloads, corrupt cache files, or git-lfs pointer text files.
ls -lh /models/YOUR_BASE_MODEL/*.safetensors
python3 -c "import glob, safetensors; [safetensors.safe_open(f, framework='pt') for f in glob.glob('/models/YOUR_BASE_MODEL/*.safetensors')]; print('OK')"Send an explicit request specifying the served LoRA name and watch startup KV blocks and adapter swapping latency.
| Signal | What it means | Next action |
|---|---|---|
| Active LoRA rank exceeds max_lora_rank | Adapter r > --max-lora-rank reserved at boot. | Restart vLLM with --max-lora-rank >= highest adapter r. |
| unrecognized arguments: serve | Old vLLM version or wrong entrypoint wrapper. | Use python3 -m vllm.entrypoints.openai.api_server --model ... or upgrade vLLM. |
| Error retrieving safetensors / HeaderTooLarge | Truncated shard, git-lfs pointer, or corrupt download. | Re-download affected shard, verify sha256, and inspect disk space. |
| vLLM keeps crashing after adding --enable-lora | LoRA buffers reduced remaining HBM below KV cache or graph capture needs. | Lower --max-loras or --max-model-len to restore memory headroom. |
Oversized max_lora_rank wastes HBM slots needed for KV cache concurrency.
Official vLLM Docker images sometimes already set ENTRYPOINT ["vllm", "serve"], causing a second "serve" arg to fail as unrecognized.
Always inspect file sizes and run safetensors.safe_open on local weight directories.
Resolve Docker entrypoint and vllm serve CLI errors.
Validate downloaded model shards before startup.
Complete failure reference for vLLM LoRA adapters.
Check headers, LFS pointers, and checksums.
Either the container runs an older vLLM release without the vllm serve CLI subcommand, or the Docker image ENTRYPOINT already invokes vllm serve so passing serve again in CMD passes it as an unknown positional argument.
No. vLLM pre-allocates LoRA tensor buffers at engine startup using --max-lora-rank, so serving a higher-rank adapter requires restarting with a larger --max-lora-rank.
Check local cache disk space, confirm HF_TOKEN permissions for gated models, verify files are not tiny git-lfs pointers, and test reading each shard with safetensors.safe_open.
Check host dmesg for OOM kills if --max-cpu-loras exceeded container host RAM, or inspect worker stderr for CUDA OOM from too many active GPU LoRA slots.
Get the likely cause, supporting evidence, and next safe steps with the same cloud reasoning used by paid plans. A crash the engine recognizes is answered in seconds, then checked by an independent AI review that updates this page when it finishes. A crash it does not recognize waits for the AI's own answer, which can take a few minutes. No account, card, or installation. Logs are masked at Denpex API ingress and are not saved to account history.
Before uploading, review cloud data handling and local options.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
No credit card. No automatic subscription. See whether Denpex helps with an incident you already understand.
Up to 50 diagnoses a day for 30 days. Verify your work email to activate an eligible company evaluation, then replay a resolved incident and compare the evidence and next steps with your team's confirmed cause.
Use the three free diagnoses to review your error and relevant evidence. Keep reference guidance separate from the cause and recovery status of your own workload.
Diagnose your incident