Can NVIDIA L40 (48 GB) run GLM-4.7 Flash (30B-A3B MoE)?

Yes. NVIDIA L40 (48 GB) runs GLM-4.7 Flash (30B-A3B MoE) at Q8_0 with a 16K context, using 32.6 GB of 46.2 GB usable memory at an estimated 86–179 tok/s. The largest context that still fits at Q8_0 is 198K.

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

Open in calculator
Fits comfortablyQ8_0 · 16K context
86–179 tok/s
32.6 GBof 46.2 GB usable memory
70% used
Weights29.7 GBKV cache0.8 GBOverhead2.1 GB
13.6 GB free

Every quantization on L40 48GB

Q4_K_M (4-bit)
glm-4.7-flash
17.7 GB
real file size
20.1 GBFits comfortably198K
128–267 tok/s
Estimate
Q6_K (6-bit)
23.0 GB
estimate
25.6 GBFits comfortably198K
106–219 tok/s
Estimate
Q8_0 (8-bit)
29.7 GB
estimate
32.6 GBFits comfortably198K
86–179 tok/s
Estimate
FP16 / BF16 (16-bit)
55.8 GB
estimate
59.9 GBPartial offload—
11.6–12.0 tok/s
Estimate

NVIDIA L40 (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.

GLM-4.7 Flash (30B-A3B MoE) on L40 48GB by runtime

Command
Ollama
Q8_0
29.7 GB
estimate
32.6 GBFits comfortably86–179 tok/s
LM Studio
Q8_0
ggml-org/GLM-4.7-Flash-GGUF
29.7 GB
real file size
32.6 GBFits comfortably86–179 tok/s
llama.cpp
Q8_0
ggml-org/GLM-4.7-Flash-GGUF
29.7 GB
real file size
32.6 GBFits comfortably86–179 tok/s
vLLM
FP8
31.3 GB
estimate
34.3 GBFits comfortably83–172 tok/s
15 requests in parallel
No FP8 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 L40 48GB
—

$1.16/mo power

Rented cloud GPU
$0.30

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

OpenRouter API
$0.15

$0.06 in / $0.40 out per 1M

Counting the hardware, the API stays cheaper at every volume this machine can serve. Local still wins on privacy and offline use. Assumes 75% input and 25% output tokens, one request at a time. Rent on RunPod · Open on OpenRouter

Questions and answers

Can NVIDIA L40 (48 GB) run GLM-4.7 Flash (30B-A3B MoE)?

Yes. NVIDIA L40 (48 GB) runs GLM-4.7 Flash (30B-A3B MoE) at Q8_0 with a 16K context, using 32.6 GB of 46.2 GB usable memory at an estimated 86–179 tok/s. The largest context that still fits at Q8_0 is 198K.

How fast is GLM-4.7 Flash (30B-A3B MoE) on NVIDIA L40 (48 GB)?

About 86–179 tok/s at Q8_0. Modelled from memory bandwidth and model size. No published measurement covers this setup.

How much context can GLM-4.7 Flash (30B-A3B MoE) use on NVIDIA L40 (48 GB)?

At Q8_0 the largest context that fits is 198K tokens. Q4_K_M: 198K, Q6_K: 198K.