// comparison
NVIDIA L4 vs L40S for LLM inference
The NVIDIA L4 has 24 GB of GPU memory and the NVIDIA L40S has 48 GB, which in 16-bit weights caps the model at about 12 billion parameters on the NVIDIA L4 and about 24 billion on the NVIDIA L40S before any memory for the KV cache.
Updated
Published
- NVIDIA L4
- NVIDIA L40S
Disclosure: 9owls publishes Launchables on both GPUs; NVIDIA did not pay for or review this page. Criteria: GPU memory and bandwidth from NVIDIA's product pages, model fit by arithmetic, hourly prices from dated Brev console reads, and our own fresh-deploy test records from 2026-11-15 and 2026-11-19. We ran no throughput or concurrency test.
On this page
How much GPU memory does each have?
| GPU | GPU memory | Memory bandwidth | Source |
|---|---|---|---|
| NVIDIA L4 | 24 GB | 300 GB/s | NVIDIA L4 product page (external site) |
| NVIDIA L40S | 48 GB GDDR6 with ECC | 864 GB/s | NVIDIA L40S product page (external site) |
Which models fit in 24 GB and in 48 GB?
The arithmetic below counts model weights only. Assumption: weight memory in GB equals the parameter count in billions times the bytes per weight, with 1 GB taken as one billion bytes. 16-bit weights use 2 bytes each, 8-bit weights 1 byte and 4-bit weights half a byte.
| Model size | 16-bit weights | 4-bit weights | NVIDIA L4 (24 GB) | NVIDIA L40S (48 GB) |
|---|---|---|---|---|
| 8B | about 16 GB | about 4 GB | 16-bit fits, about 8 GB left | 16-bit fits, about 32 GB left |
| 32B | about 64 GB | about 16 GB | 4-bit fits, about 8 GB left | 4-bit fits, about 32 GB left; 16-bit does not fit |
| 70B | about 140 GB | about 35 GB | Does not fit, even in 4-bit | 4-bit fits, about 13 GB left |
On the NVIDIA L4 (24 GB), an 8B model in 16-bit weights leaves about 8 GB, and a 32B model in 4-bit weights leaves about 8 GB. A 70B model does not fit, even in 4-bit weights.
On the NVIDIA L40S (48 GB), an 8B model in 16-bit weights leaves about 32 GB, a 32B model in 4-bit weights leaves about 32 GB, and a 70B model in 4-bit weights leaves about 13 GB. A 32B model in 16-bit weights does not fit.
To choose a serving engine for the model, see Ollama vs vLLM; Serve an OpenAI-compatible API with vLLM walks through serving a model with vLLM.
NVIDIA L4 vs L40S: which Launchables default to each?
Four Launchables on the Launchables page default to the NVIDIA L4 (24 GB). The other fifteen default to the NVIDIA L40S (48 GB). How to deploy a Launchable on NVIDIA Brev covers the deploy steps, and Run Open WebUI with vLLM on a cloud GPU covers the Open WebUI + vLLM stack.
| Launchable | Default GPU |
|---|---|
| Ollama + Open WebUI starter | NVIDIA L4 (24 GB) |
| Wan 2.2 Video Studio (ComfyUI) | NVIDIA L4 (24 GB) |
| Chatterbox + WhisperX Voice Lab | NVIDIA L4 (24 GB) |
| RAPIDS Data Science with cuDF and cuML | NVIDIA L4 (24 GB) |
| Open WebUI + vLLM | NVIDIA L40S (48 GB) |
| ComfyUI Pro | NVIDIA L40S (48 GB) |
| LoRA Training (ai-toolkit + kohya_ss) | NVIDIA L40S (48 GB) |
| RAGFlow on your own GPU | NVIDIA L40S (48 GB) |
| LlamaFactory (LlamaBoard) | NVIDIA L40S (48 GB) |
| Nemotron Chat with Open WebUI and vLLM | NVIDIA L40S (48 GB) |
| OpenHands Coding Agent on Nemotron | NVIDIA L40S (48 GB) |
| Paperclip Multi-Agent Team on Nemotron | NVIDIA L40S (48 GB) |
| NeMo Guardrails + garak LLM Security Lab | NVIDIA L40S (48 GB) |
| Nemotron Omni Multimodal Studio | NVIDIA L40S (48 GB) |
| Cosmos 3 Nano World Model Studio | NVIDIA L40S (48 GB) |
| Isaac Lab | NVIDIA L40S (48 GB) |
| Pipecat | NVIDIA L40S (48 GB) |
| Open Notebook on Nemotron | NVIDIA L40S (48 GB) |
| RAGFlow RAG with NVIDIA Nemotron | NVIDIA L40S (48 GB) |
NVIDIA L4 vs L40S: what does each cost per hour on NVIDIA Brev?
Prices are Brev console list prices for the instance types our Launchables use, each with its read date. They change; check the console before you deploy.
| GPU | Instance type | Price per hour | Read |
|---|---|---|---|
| NVIDIA L4 | GCP g2-standard-4 | about $0.85 | Brev console, 2026-11-15 |
| NVIDIA L4 | GCP g2-standard-8 | about $1.02 | Brev console, 2026-11-15 |
| NVIDIA L40S | AWS g6e.xlarge | about $2.26 | Brev console, 2026-11-19 |
| NVIDIA L40S | AWS g6e.xlarge, the Open WebUI + vLLM default | about $2.25 | Brev deploy page, 2026-12-03 |
What did our tests record on each GPU?
These are our own fresh-deploy test records, one run each. They show how much memory each stack used, not throughput.
| GPU | Launchable | Test date | GPU memory in use |
|---|---|---|---|
| NVIDIA L4 | Ollama + Open WebUI starter, gpt-oss:20b | 2026-11-15 | 12488 of 23034 MiB |
| NVIDIA L4 | Hermes Agent on Nemotron 3.5 Bolt, llama.cpp | 2026-11-19 | 4492 of 23034 MiB |
| NVIDIA L40S | Nemotron Chat, vLLM | 2026-11-15 | 40781 of 46068 MiB |
| NVIDIA L40S | Open Notebook on Nemotron, two vLLM servers and speech | 2026-11-15 | 39724 of 46068 MiB |
Two vLLM servers on one NVIDIA L40S need their memory shares set with care; see the cache-blocks error.
Where do billing, stopping and packaging my own repository live?
Billing and stopping are in how to stop and delete an NVIDIA Brev instance; packaging your own repository is in NightKeeper.
Sources: where do these facts come from?
- NVIDIA L4 product page (external site), read 2026-11-16
- NVIDIA L40S product page (external site), read 2026-11-16
- NVIDIA Brev documentation, Launchables (external site), read 2026-11-16
- Brev console list prices recorded in our Launchable records, read 2026-11-15 and 2026-11-19
- Open WebUI + vLLM deploy page on NVIDIA Brev (external site), read 2026-12-03
- 9owls fresh-deploy test records: Ollama + Open WebUI starter, Nemotron Chat and Open Notebook on Nemotron (2026-11-15), Hermes Agent on Nemotron 3.5 Bolt (2026-11-19)
How was this page made?
9owls published this page and publishes Launchables on both GPUs. The GPU specifications come from NVIDIA's product pages, read 2026-11-16. The model-fit table is arithmetic on weights only, with the assumption stated above it. Prices and test values come from our own dated records; no throughput or concurrency number is given because we have not measured one. Found an error? Tell us on the company page.
What changed on 2026-11-28: added the disclosure and criteria, dated hourly prices, our recorded GPU memory per Launchable and the cache-blocks link, and replaced the billing and packaging sections with links.