Can NVIDIA L40S run GLM-4.7?

Needs 8× L40S (even in 4-bit)

GLM-4.7 (358.3B parameters) requires ~224 GB VRAM in 4-bit and ~403 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) 224 GB 8× L40S 384 GB (+160 GB) ~21 tok/s $6.40/hr $4,672/mo
FP8 / INT8 403 GB 9× L40S 432 GB (+29 GB) ~13 tok/s $7.02/hr $5,125/mo
Full FP16 / BF16 773 GB 17× L40S 816 GB (+43 GB) ~12 tok/s $13.26/hr $9,680/mo

Where to rent NVIDIA L40S right now

Provider 1× / hr 8× (4-bit) / hr Spot (1×) Launch
TensorDock logo TensorDock Cheapest $0.78/hr $6.24/hr - Launch ↗
Vast.ai logo Vast.ai $0.80/hr $6.40/hr $0.47/hr Launch ↗
Hyperstack logo Hyperstack $0.99/hr $7.92/hr - Launch ↗
RunPod logo RunPod $1.09/hr $8.72/hr $0.55/hr Launch ↗
CoreWeave logo CoreWeave $1.25/hr $10.00/hr - Launch ↗
Vultr logo Vultr $1.35/hr $10.80/hr - Launch ↗
Nebius logo Nebius $1.55/hr $12.40/hr $0.65/hr Launch ↗
AWS logo AWS $1.86/hr $14.88/hr $0.46/hr Launch ↗

Memory, quantization & KV-cache analysis

VRAM fit & context headroom: GLM 4.7 (358.3B parameters) needs roughly 224 GB in 4-bit (AWQ/GGUF), 403 GB in FP8, and 773 GB in full FP16/BF16. On 8× NVIDIA L40S (384 GB total GDDR6), 4-bit weights leave 160 GB of free VRAM for activations and KV cache, enough for roughly 128K+ tokens 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 ~21 tok/s single-stream in 4-bit.

Cheaper cloud alternative check

Save with 4× NVIDIA A100 80GB SXM: While 8× L40S starts at $6.40/hr, you can run GLM-4.7 (4-bit, 224 GB) for $2.32/hr ($1,694/mo) using 4× NVIDIA A100 80GB SXM on Vast.ai saving $4.08/hr.

Quick-start vLLM launch command (4-bit (Q4 / AWQ))

Deploy GLM-4.7 on 8× L40S (384 GB total VRAM) using vLLM:

vllm serve zai-org/GLM-4.7 \
  --tensor-parallel-size 8 \
  --quantization awq \
  --max-model-len 32768 \
  --gpu-memory-utilization 0.92

Frequently asked questions

Can NVIDIA L40S run GLM-4.7?

Needs 8× L40S (even in 4-bit). GLM-4.7 (358.3B params) needs ~224 GB VRAM in 4-bit (8× L40S at $6.40/hr) and ~403 GB in FP8 (9× L40S).

How fast does GLM-4.7 run on L40S?

In 4-bit on 8× L40S (6.88 TB/s aggregate memory bandwidth), estimated single-stream decode speed is ~21 tokens/sec (or ~13 tok/s in FP8 across 9× L40S).

How much does it cost to rent L40S for GLM-4.7?

Running GLM-4.7 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 GLM-4.7 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 160 GB of remaining VRAM in 4-bit (Q4 / AWQ), you have room for roughly 128K+ tokens of KV-cache context.

Try GLM-4.7 on other GPUs