Skip to content
E
Educatum
Daily

Cloud Progress Sync

Sign in to Educatum

Sync your Daily AI/ML streaks, Stanford CS329Z progress, and study bookmarks across devices. Your existing browser progress will merge automatically.

🦙
Guest Alias
Alibaba QwenVerified Qwen/Qwen3.8-27B config.json ·

Qwen3.8-27B VRAM & GPU Requirements Calculator

Qwen3.8-27B requires 51.7 GiB in FP16, 25.9 GiB in FP8, and 15.8 GiB in GGUF Q4_K_M for GPU weights alone (64L · 48 Gated DeltaNet linear + 16 full GQA (24Q/4KV = 6× per-layer, 24× total KV savings)). At 8K context (batch=1, FP16 KV), KV-cache adds 0.50 GiB (24.0× smaller than MHA) plus 146.8 MiB/seq linear SSM state.

FP16 Inference (8K)
53.9 GiB
51.7 GiB weights
FP8 Weights + FP8 KV
27.7 GiB
25.9 GiB weights
GGUF Q4_K_M (8K)
17.9 GiB
15.8 GiB weights
32K KV-Cache (FP16)
2.00 GiB
24.0× vs MHA + 146.8 MiB SSM

Can Your GPU or Mac Run Qwen3.8-27B? (8K Context, Batch=1)

Pre-computed fit verdict and estimated decode speed across RTX 4090, Apple Silicon Unified Memory, and NVIDIA H100/H200 clusters. Column headers show 1× GPU baseline (incl. 1.0 GiB runtime; multi-GPU rows add per-GPU NCCL overhead). Apple Silicon runs Q8_0 (Metal/llama.cpp) instead of datacenter FP8.

Hardware RigQ4_K_M (17.9 GiB)FP8 / Q8_0* (27.7 GiB FP8)FP16 (53.9 GiB)
1× RTX 4090 (23.9 GiB usable)FIT · ~42 tok/sOOM (-4G)OOM (-30G)
2× RTX 4090 (47.8 GiB usable)FIT · ~47 tok/sFIT · ~35 tok/sOOM (-8G)
Apple M4 Max (128 GiB Unified · 96 GiB GPU)FIT · ~21 tok/sQ8_0 FIT · ~13 tok/sFIT · ~7 tok/s
Apple M3 Ultra (256 GiB Unified · 192 GiB GPU)FIT · ~32 tok/sQ8_0 FIT · ~19 tok/sFIT · ~10 tok/s
1× H100 SXM (79.6 GiB usable)FIT · ~121 tok/sFIT · ~81 tok/sFIT · ~43 tok/s
4× H100 SXM (318.4 GiB usable)FIT · ~126 tok/sFIT · ~110 tok/sFIT · ~82 tok/s
8× H100 SXM (636.8 GiB usable)FIT · ~107 tok/sFIT · ~100 tok/sFIT · ~86 tok/s
8× H200 SXM (1,123.2 GiB usable)FIT · ~110 tok/sFIT · ~105 tok/sFIT · ~94 tok/s
vLLM Serve · 1× H100 (79.6 GiB)

Ready-to-run deployment commands for Qwen3.8-27B

vllm serve Qwen/Qwen3.8-27B --tensor-parallel-size 1 --max-model-len 8192 --gpu-memory-utilization 0.90

Sized at 53.9 GiB total BF16 VRAM (including CUDA/NCCL overhead) out of 79.6 GiB usable.

llama.cpp GGUF Q4_K_M · Needs 17.9 GiB
llama-server -m /path/to/qwen3-8-27b-Q4_K_M.gguf -c 8192 -ngl 999 -fa on

Fits on a single RTX 4090 (23.9 GiB usable) at ~42 tok/s.

Interactive Qwen3.8-27B VRAM & Roofline Simulator

1. Model & Workload

GQA · 27.78B Dense

64L · 48 Gated DeltaNet linear + 16 full GQA (24Q/4KV = 6× per-layer, 24× total KV savings)

Execution Mode
Weight Precision (Datacenter & GGUF)
KV:
8,192 tok
1 reqs

2. Target GPU / Mac Silicon

79.6 GiB Usable · 3.35 TB/s eff.
GPU Count (Tensor Parallel)
FITS IN VRAM (+25.7 GiB headroom)
53.9 / 79.6 GiB usable (68%)

Decode is HBM-bandwidth bound (1.0 vs 295 FLOPs/B ridge): increasing batch size improves cluster tok/s nearly linearly.

Total VRAM
53.9 GiB
Weights 51.7 GiB (FP16)
KV + SSM State
0.64 GiB
KV 0.50 + SSM 0.14 · 24.0×
Decode / User
~43.5 tok/s
HBM Bound
Cluster Output
~43 tok/s
AI 1.0 FLOP/B

VRAM Allocation vs. Hardware Capacity

Binary GiB (1 GiB = 2³⁰ B) · Usable VRAM excludes ECC/OS & per-GPU CUDA/NCCL buffers

Dashed line = Usable VRAM
Used: 53.9 GiB · Usable: 79.6 GiB (68%) 79.6 GiB Usable Weights: 51.7 GiBKV-Cache: 0.5 GiBSSM State: 0.1 GiBAct + CUDA: 1.5 GiB educatum.com/kv-cache

Decode Arithmetic Intensity Roofline

AI 1.0 vs Ridge 295 FLOPs/B
1416642561024 Ridge: 295 FLOPs/B · 989 TFLOPS Memory-Bandwidth Bound (1.0 FLOP/B) Arithmetic Intensity (FLOPs / Byte, log scale) educatum.com/kv-cache
Canonical URL stays clean; click Copy Shareable Link to share your exact slider config.
Qwen3.8-27B · KV_tok (16 full + 48 DeltaNet linear) = 64.0 KiB/tok (24.0× vs MHA) + 146.8 MiB/seq SSM state
Decode Step Read: 51.7 GiB active weights + 0.50 GiB KV + 294 MiB SSM R/W → AI = 1.04 FLOPs/Byte (Memory-Bandwidth Bound; BW in decimal GB/s)

Compare Other LLM VRAM Requirements

All 37 Models →

Frequently Asked Questions

Can 1× or 2× RTX 4090 (24 GiB / 48 GiB) run Qwen3.8-27B?

At 8K context (batch=1) in GGUF Q4_K_M, Qwen3.8-27B needs 17.9 GiB single-GPU VRAM (15.8 GiB weights). Single 23.9 GiB usable RTX 4090: Fits at ~42 tok/s. Dual 47.8 GiB usable (2× RTX 4090): Fits Q4_K_M cleanly (~47 tok/s TP).

Can an Apple M4 Max (128 GiB) Mac Studio / MacBook Pro run Qwen3.8-27B?

An Apple M4 Max 128 GiB reserves 96 GiB wired GPU memory by default. In GGUF Q4_K_M (17.9 GiB GPU wired at 8K), it fits on M4 Max 128 GiB at ~21.4 tok/s.

How much KV-cache does Qwen3.8-27B use at 32K context?

Qwen3.8-27B uses GQA with hybrid attention (48 Gated DeltaNet linear + 16 full GQA layers), giving a 24.0× KV-cache reduction vs standard MHA. At 32,768 context (batch=1, FP16 KV), KV-cache occupies 2.00 GiB plus 146.8 MiB/seq constant linear-attention recurrent state.

Try keywords like RoPE, FlashAttention, DPO, or Blind 75.