Can NVIDIA L40S (48 GB) run Mixtral 8x7B Instruct (MoE)?

Yes. NVIDIA L40S (48 GB) runs Mixtral 8x7B Instruct (MoE) at Q4_K_M with a 16K context, using 31.1 GB of 46.2 GB usable memory at an estimated 45–94 tok/s. The largest context that still fits at Q4_K_M is 32K.

Asking through an AI agent? Point it at llms.txt or the JSON API.

Open in calculator
Fits comfortablyQ4_K_M · 16K context
45–94 tok/s
31.1 GBof 46.2 GB usable memory
67% used
Weights27.2 GBKV cache2.0 GBOverhead2.0 GB
15.1 GB free

Every quantization on L40S 48GB

Q4_K_M (4-bit)
27.2 GB
estimate
31.1 GBFits comfortably32K
45–94 tok/s
Estimate
Q6_K (6-bit)
36.7 GB
estimate
41.1 GBTight fit32K
33–68 tok/s
Estimate
Q8_0 (8-bit)
47.6 GB
estimate
52.5 GBPartial offload—
6.2–12.0 tok/s
Estimate
FP16 / BF16 (16-bit)
89.6 GB
estimate
96.4 GBToo large—
—

NVIDIA L40S (48 GB) has 46.2 GB usable for models out of 48 GB of VRAM. Max context is the longest window that still loads without spilling out of that memory. The label under each speed says whether it was measured, scaled from measurements on this hardware, or modelled.

Mixtral 8x7B Instruct (MoE) on L40S 48GB by runtime

Command
Ollama
Q4_K_M
27.2 GB
estimate
31.1 GBFits comfortably45–94 tok/s
LM Studio
Q4_K_M
27.2 GB
estimate
31.1 GBFits comfortably45–94 tok/sNot in LM Studio's catalog.
llama.cpp
Q4_K_M
27.2 GB
estimate
31.1 GBFits comfortably45–94 tok/sNo Q4_K_M GGUF of this model found on Hugging Face.
vLLM
INT4
26.4 GB
estimate
30.4 GBFits comfortably46–96 tok/s
8 requests in parallel
No INT4 build of this model found for vLLM.

Each runtime loads its own build, so sizes differ. Ollama, LM Studio and llama.cpp use GGUF files, vLLM the original safetensors weights or an FP8 / INT4 build. Numbers above this table are for Ollama.

Cost per 1M tokens at 1M tokens/day

Local on L40S 48GB
$15.36

$2.47/mo power + $16,500 hardware over 36 months

Rented cloud GPU
$0.56

1x RTX A6000 (48 GB) on RunPod at $0.33/hr

OpenRouter API
—

Not listed on OpenRouter

There is no API price to compare against. Assumes 75% input and 25% output tokens, one request at a time. Rent on RunPod

Questions and answers

Can NVIDIA L40S (48 GB) run Mixtral 8x7B Instruct (MoE)?

Yes. NVIDIA L40S (48 GB) runs Mixtral 8x7B Instruct (MoE) at Q4_K_M with a 16K context, using 31.1 GB of 46.2 GB usable memory at an estimated 45–94 tok/s. The largest context that still fits at Q4_K_M is 32K.

How fast is Mixtral 8x7B Instruct (MoE) on NVIDIA L40S (48 GB)?

About 45–94 tok/s at Q4_K_M. Modelled from memory bandwidth and model size. No published measurement covers this setup.

How much context can Mixtral 8x7B Instruct (MoE) use on NVIDIA L40S (48 GB)?

At Q4_K_M the largest context that fits is 32K tokens. Q6_K: 32K.