Production vLLM Deployment Command (Llama 3.1 8B Instruct FP8)
The baseline configuration below launches meta-llama/Llama-3.1-8B-Instruct across 1x RTX 4090 (24GB) (TP=1) with chunked prefill enabled to bound Time-To-First-Token (TTFT) spikes under concurrent load:
python3 -m vllm.entrypoints.openai.api_server \
--model meta-llama/Llama-3.1-8B-Instruct \
--tensor-parallel-size 1 \
--max-model-len 32768 \
--quantization fp8 \
--gpu-memory-utilization 0.93 \
--enable-chunked-prefill \
--port 8000
Architectural Sizing Notes & FAQ
How is KV-Cache calculated for Llama 3.1 8B Instruct?
Llama 3.1 8B Instruct uses 32 transformer layers with Grouped-Query Attention (8 KV heads × 128d). In FP8 (1 byte/element) at 32,768 tokens for a single sequence, weights occupy 8.4 GB, the KV-cache consumes 2.00 GB, and CUDA runtime workspace reserves 1.8 GB—totaling 12.2 GB.
Can Llama 3.1 8B Instruct run on a single GPU?
At a 32K context with one sequence, INT4 AWQ/GPTQ weights bring the estimate down to 8.0 GB, which maps to 1x RTX 4090 (24GB). FP8 needs 12.2 GB (1x RTX 4090 (24GB)). Each additional concurrent 32K sequence adds about 2.00 GB of FP8 KV-cache. The GPU hourly rates used for the monthly column are illustrative on-demand figures, not quotes.