Can NVIDIA L40S run DeepSeek-R1?
DeepSeek-R1 (671B parameters) requires ~380 GB VRAM in 4-bit and ~700 GB in FP8. One NVIDIA L40S provides 48 GB GDDR6 (0.86 TB/s). Running it in 4-bit starts at $6.40/hr (8×) on Vast.ai.
VRAM & cloud cost by quantization
| Precision | VRAM needed | GPUs required | Total VRAM | Est. speed | Lowest cloud price | Monthly (730h) |
|---|---|---|---|---|---|---|
| 4-bit (Q4 / AWQ) | 380 GB | 8× L40S | 384 GB (+4 GB) | ~203 tok/s | $6.40/hr | $4,672/mo |
| FP8 / INT8 | 700 GB | 15× L40S | 720 GB (+20 GB) | ~209 tok/s | $11.70/hr | $8,541/mo |
| Full FP16 / BF16 | 1350 GB | 29× L40S | 1392 GB (+42 GB) | ~202 tok/s | $22.62/hr | $16,513/mo |
Where to rent NVIDIA L40S right now
| Provider | 1× / hr | 8× (4-bit) / hr | Spot (1×) | Launch |
|---|---|---|---|---|
| | $0.78/hr | $6.24/hr | - | Launch ↗ |
| | $0.80/hr | $6.40/hr | $0.47/hr | Launch ↗ |
| | $0.99/hr | $7.92/hr | - | Launch ↗ |
| | $1.09/hr | $8.72/hr | $0.55/hr | Launch ↗ |
| | $1.25/hr | $10.00/hr | - | Launch ↗ |
| | $1.35/hr | $10.80/hr | - | Launch ↗ |
| | $1.55/hr | $12.40/hr | $0.65/hr | Launch ↗ |
| | $1.86/hr | $14.88/hr | $0.46/hr | Launch ↗ |
Memory, quantization & KV-cache analysis
VRAM fit & context headroom: DeepSeek-R1 (671B MoE) (671B parameters) needs roughly 380 GB in 4-bit (AWQ/GGUF), 700 GB in FP8, and 1350 GB in full FP16/BF16. On 8× NVIDIA L40S (384 GB total GDDR6), 4-bit weights leave 4 GB of free VRAM for activations and KV cache, enough for roughly 8K tokens (tight KV cache) at low-to-moderate batch concurrency.
Hardware precision & compute: NVIDIA L40S (Ada Lovelace) includes native FP8 Tensor Cores rated at 733 TFLOPS, allowing FP8 weights and activations without software dequantization overhead.
Multi-GPU scaling & bandwidth: Spanning 8× L40S communicates over PCIe Gen4. Expect a 10–20% tensor-parallel scaling penalty on multi-GPU decode compared to NVLink SXM nodes. Because autoregressive token generation is memory-bandwidth bound, 8× L40S provides 6.88 TB/s of aggregate memory bandwidth, yielding ~203 tok/s single-stream in 4-bit.
Cheaper cloud alternative check
Save with 8× NVIDIA RTX A6000: While 8× L40S starts at $6.40/hr, you can run DeepSeek-R1 (4-bit, 380 GB) for $3.20/hr ($2,336/mo) using 8× NVIDIA RTX A6000 on Vast.ai saving $3.20/hr.
Quick-start vLLM launch command (4-bit (Q4 / AWQ))
Deploy DeepSeek-R1 on 8× L40S (384 GB total VRAM) using vLLM:
vllm serve deepseek/DeepSeek-R1 \
--tensor-parallel-size 8 \
--quantization awq \
--max-model-len 8192 \
--gpu-memory-utilization 0.92 Frequently asked questions
Can NVIDIA L40S run DeepSeek-R1?
Needs 8× L40S (even in 4-bit). DeepSeek-R1 (671B params) needs ~380 GB VRAM in 4-bit (8× L40S at $6.40/hr) and ~700 GB in FP8 (15× L40S).
How fast does DeepSeek-R1 run on L40S?
In 4-bit on 8× L40S (6.88 TB/s aggregate memory bandwidth), estimated single-stream decode speed is ~203 tokens/sec (or ~209 tok/s in FP8 across 15× L40S).
How much does it cost to rent L40S for DeepSeek-R1?
Running DeepSeek-R1 in 4-bit (8× L40S) starts at $6.40/hr ($4,672/month 24/7) on Vast.ai.
Should I use 4-bit or FP8 for DeepSeek-R1 on L40S?
NVIDIA L40S (Ada Lovelace) includes native FP8 Tensor Cores rated at 733 TFLOPS, allowing FP8 weights and activations without software dequantization overhead. With 4 GB of remaining VRAM in 4-bit (Q4 / AWQ), you have room for roughly 8K tokens (tight KV cache) of KV-cache context.