Home › Tools › LLM VRAM Calculator

LLM VRAM Calculator: GPU Memory for GGUF, Q4/Q8 & BF16

Last verified: · Official sources only for model facts; estimates labelled as such

Free LLM VRAM calculator for planning local LLM runs, including Qwen3.8-27B and a planning estimate for the unreleased Qwen4-27B. Pick a quantization (BF16 / Q8 / Q5_K / Q4_K GGUF-style), context length and your GPU VRAM to see an estimated memory budget. Now also covers PrismML Bonsai 2 (phone / thin-laptop ternary packs), Nemotron 3.5 Lightning, Kimi K3, DeepSeek V4, GLM 5.3 and Gemma 4, plus a GPU VRAM list for RTX 50/40 cards.

Qwen4 weights are not released yet. Alibaba’s Apsara press release states that next-generation Qwen 4 is currently in training (Alibaba Cloud press room, Sep 22, 2026). There is no official Qwen4 model card or VRAM figure. Estimates below assume a 27B-parameter model for planning — update them when the official card ships.
Weights (formula)–
KV cache (est.)–
Runtime overhead (est.)–
Total estimated–
Enter your GPU VRAM for a can-it-run check, or leave blank to see the estimate only.

How to use this LLM VRAM calculator

Pick a model from the dropdown (Qwen4-27B for planning, or a released stand-in such as Qwen3.8-27B, Gemma 4, Bonsai 2, Nemotron 3.5 Lightning). Choose a quantization — BF16 for full precision, Q8 / Q5_K / Q4_K for GGUF-style smaller footprints — then set the context length you actually need. Optionally type your GPU VRAM (or click a row in the GeForce table below) to get a can-it-run verdict. The four tiles show weights from the formula, an estimated KV cache when the architecture allows it, a flat ~1.5 GB runtime overhead, and the total.

Treat every total as a planning estimate, not a lab measurement. MoE models still load all experts even when only a fraction activate. Hybrid / Mamba attention often has no simple per-token KV figure on the model card, so those rows mark KV as n/a — leave headroom yourself for long context. Official ternary packs (PrismML Bonsai 2) are smaller than the conventional Q4 formula; prefer the pack sizes in the notes when you are targeting a phone or thin laptop.

Worked example: Qwen3.8-27B on an RTX 4090 (24 GB)

Goal: run the official open-weight Qwen3.8-27B locally on a 24 GB GeForce RTX 4090. Select Qwen3.8-27B, set quantization to Q4_K, context to 8,192, and click the RTX 4090 row (or type 24). Weights ≈ 27 × 0.5 = 13.5 GB; with this page’s KV estimate and ~1.5 GB overhead the total often lands in the high teens — usually a “comfortable” or “tight” verdict depending on exact KV. If the verdict turns red, drop context to 4,096 or try Q5 only if you have spare VRAM after a short-context test.

Same card at BF16 needs ~54 GB for weights alone, so a single 24 GB GPU will not hold the full-precision checkpoint — you would need multi-GPU, CPU/disk offload, or a much smaller model (Gemma 4 12B Q4 is a common 12–16 GB alternative on this calculator). For Qwen4-27B specifically, remember weights are not released yet; use the same 27B planning assumption and revisit when Alibaba publishes the model card. After you pick an engine, read DeepInfer vs vLLM for serving trade-offs.

GPU VRAM quick lookup (desktop GeForce)

Standard Memory Config from NVIDIA compare specs (verified 2026-10-15). Laptop SKUs often differ; check your exact model. Click a row to fill “Your GPU VRAM” above.

GPUVRAMMemory type
GeForce RTX 509032 GBGDDR7
GeForce RTX 508016 GBGDDR7
GeForce RTX 5070 Ti16 GBGDDR7
GeForce RTX 507012 GBGDDR7
GeForce RTX 5060 Ti16 GB / 8 GBGDDR7
GeForce RTX 50608 GBGDDR7
GeForce RTX 50508 GBGDDR6
GeForce RTX 409024 GBGDDR6X
GeForce RTX 4080 SUPER16 GBGDDR6X
GeForce RTX 408016 GBGDDR6X
GeForce RTX 4070 Ti SUPER16 GBGDDR6X
GeForce RTX 4070 Ti12 GBGDDR6X
GeForce RTX 4070 SUPER12 GBGDDR6X
GeForce RTX 407012 GBGDDR6 / GDDR6X
GeForce RTX 4060 Ti16 GB / 8 GBGDDR6
GeForce RTX 40608 GBGDDR6

Verified lookup & formula

ItemValueSource
Qwen 4 statusCurrently in training; no public weightsAlibaba Cloud press room (2026-10-15)
Qwen3.8-27B parameters27B (language model); HF reports ~28B with visionHugging Face model card (2026-10-15)
Qwen3.8-27B attention layout64 layers; 16× full gated attention (4 KV heads × 256); rest Gated DeltaNetmodel card (2026-10-15)
Qwen3.8-27B context262,144 native (extensible)model card (2026-10-15)
Kimi K3 parameters2.8T total, 104B activated, 1M contextHugging Face model card (2026-10-15)
DeepSeek V4 Flash parameters284B total, 13B activated, 1M context; FP4+FP8 mixedHugging Face model card (2026-10-15)
DeepSeek V4 Pro parameters1.6T total, 49B activated, 1M context; FP4+FP8 mixedHugging Face model card (2026-10-15)
DeepSeek V4.1 Flash parameters552B backbone, 8B/16B activated, plus 196B Engram memory; up to 1M contextHugging Face model card (2026-10-15)
GLM 5.3 parametersCard does not state a total; HF safetensors metadata ≈753B (FP8)Hugging Face model card (2026-10-15)
GLM 5.3 Flash parameters320B total, 18B activeHugging Face model card (2026-10-15)
Gemma 4 E2B / E4B parameters2.3B / 4.5B effective (5.1B / 8B with embeddings), 128K contextHugging Face model card (2026-10-15)
Gemma 4 12B / 31B parameters11.95B / 30.7B, 256K contextHugging Face model card (2026-10-15)
Gemma 4 26B-A4B parameters25.2B total, 3.8B active, 256K contextHugging Face model card (2026-10-15)
PrismML Bonsai 2 2B / 4B / 9B / 27B parameters~1.88B / ~4.21B / ~8.95B / 27.36B language (+ vision tower separate)HF 27B, docs 4B, HF 2B, HF 9B (2026-10-16)
Bonsai 2 ternary GGUF deployed sizes (PTQ1_0 / PQ2_0)2B: 0.43 / 0.52 GB; 4B: 0.95 / 1.15 GB; 9B: 2.00 / 2.42 GB; 27B: 5.95 / 7.21 GBPrismML download docs (2026-10-16)
Nemotron 3.5 Lightning parameters30B total, 3B active; BF16 fits 1× H100 80GB (official recipe)Hugging Face model card (2026-10-16)
Weights formulaVRAMweights ≈ params_B × bytes/param (BF16/FP16=2, Q8≈1, Q5_K≈0.625, Q4_K≈0.5)Common GGUF / weight-size rule of thumb; not an official Qwen table
Runtime overhead+1.5 GB estimate (CUDA context, activations, fragmentation)Estimate — adjust for your framework

Example: Qwen3.8-27B at BF16 → 27×2 = 54 GB weights only. At Q4_K → 27×0.5 = 13.5 GB weights, plus KV and overhead.

Prefilled common-model VRAM needs (weights-only)

Quick reference using this page’s formula (params × bytes/param). Figures are weights only before KV cache and ~1.5 GB runtime overhead — use the calculator above for a full estimate. MoE models still load all experts. Official pack sizes (e.g. Bonsai ternary) can be smaller than the formula.

ModelParams (card)BF16Q8 ≈Q4_K ≈Typical fit (guide)
Gemma 4 E2B5.1B~10 GB~5 GB~2.6 GB8 GB GPU / phone-class when quantized
Gemma 4 12B11.95B~24 GB~12 GB~6 GB12–16 GB GPU at Q4–Q5
Gemma 4 31B30.7B~61 GB~31 GB~15 GB24 GB+ GPU or 32 GB unified Mac at Q4
Qwen3.8-27B27B LM~54 GB~27 GB~13.5 GB24 GB GPU often needs Q4 + short context
Qwen4-27B (planning)~27B assumed~54 GB~27 GB~13.5 GBWeights not released — planning only
Nemotron 3.5 Lightning30B / 3B act.~60 GB~30 GB~15 GBOfficial BF16 recipe: 1× H100/A100 80GB
Bonsai 2 4B (ternary pack)~4.21Bn/a*n/a*~0.95–1.15 GB packPhone / thin laptop (official ternary)
Bonsai 2 27B (ternary pack)27.36Bn/a*n/a*~5.95–7.21 GB packApple Silicon laptop class
DeepSeek V4 Flash284B / 13B act.~568 GB~284 GB~142 GBMulti-GPU server (MoE loads all experts)
DeepSeek V4.1 Flash552B backbone†~1.1 TB~552 GB~276 GBLarge cluster; Engram not included
GLM 5.3 Flash320B / 18B act.~640 GB~320 GB~160 GBMulti-GPU
Kimi K32.8T / 104B act.~5.6 TB~2.8 TB~1.4 TBNot a consumer GPU target

* Prefer official ternary GGUF file sizes over BF16/Q4 formula for Bonsai 2. † V4.1 Flash Engram memory (~196B) excluded from these weight estimates. After you pick an engine, read DeepInfer vs vLLM for serving trade-offs.

FAQ

How much VRAM does Qwen4-27B need?

Alibaba has not published Qwen4 weights or VRAM requirements. As of this page's verified date, Alibaba only states that Qwen 4 is currently in training. Until the official model card appears, this calculator estimates a 27B-parameter model with the standard weights formula (params × bytes per parameter) plus an estimated KV cache and runtime overhead.

How much VRAM does Qwen3.8-27B need?

The official Hugging Face card lists 27B language-model parameters (HF also reports ~28B including the vision stack). BF16 weights alone are about 27 × 2 = 54 GB. At Q4 (~0.5 bytes/param) weights are about 13.5 GB before KV cache and runtime overhead. Exact fit depends on quantization, context length and framework.

What is the GGUF VRAM formula used here?

Weights VRAM ≈ parameter_count_billions × bytes_per_parameter. This page uses FP16/BF16=2, Q8≈1, Q5_K≈0.625, Q4_K≈0.5 bytes/param. Real GGUF file sizes vary slightly by quant variant (e.g. Q4_K_M vs Q4_0). KV cache and framework overhead are estimated separately and labelled as estimates.

Will Qwen4-27B run on a 24 GB GPU (RTX 4090)?

Unknown until official weights ship. If the released model is about 27B dense parameters, a Q4_K-class quant plus a short-to-moderate context often lands near or under 24 GB in this calculator's estimate — treat that as a planning guide only, not a guarantee.

Does context length change VRAM?

Yes. Model weights stay fixed; KV cache grows with context length (and batch size). Longer context needs more free VRAM after the weights are loaded.

Is this LLM VRAM calculator free?

Yes. It runs entirely in your browser, with no signup and no upload.

Can I run Kimi K3 locally?

Only on very large multi-GPU servers. Moonshot's Hugging Face card lists 2.8T total parameters (104B activated, MoE). Every expert must stay in memory, so with this page's formula even a ~4-bit quant needs roughly 2,800 × 0.5 ≈ 1,400 GB for weights alone (an earlier ~610 GB figure circulating online does not match the official parameter count). That is far beyond any single consumer GPU.

Kimi K3 VRAM requirements

Weights-only estimates from the official 2.8T parameter count: BF16 ≈ 5,600 GB, Q8 ≈ 2,800 GB, Q4 ≈ 1,400 GB, plus KV cache (1M-token context) and runtime overhead. These are formula estimates, not official Moonshot figures; Moonshot has not published a VRAM table.

How much VRAM do DeepSeek V4 Flash, V4 Pro and V4.1 Flash need?

Official cards: V4 Flash 284B total (13B activated), V4 Pro 1.6T (49B activated), V4.1 Flash 552B backbone plus 196B Engram memory. MoE models still load all experts, so weights-only at ~4-bit are about 142 GB, 800 GB and 276 GB respectively (formula estimates; V4.1 Flash Engram not included). The official checkpoints ship in mixed FP4+FP8.

How much VRAM do GLM 5.3 and GLM 5.3 Flash need?

GLM 5.3 Flash: 320B total, 18B active (official card) → ~160 GB weights at ~4-bit. GLM 5.3's card does not state a total; Hugging Face's file metadata reports about 753B parameters → ~377 GB at ~4-bit. Both are formula estimates before KV cache and overhead.

Can I run Gemma 4 locally / on Mac?

Yes for the smaller sizes. Per Google's model card: E2B (5.1B with embeddings) and E4B (8B) fit easily on 8 GB GPUs or Apple Silicon Macs when quantized; 12B (11.95B) is ~6 GB weights at Q4; 26B-A4B (25.2B total, 3.8B active) and 31B (30.7B) are ~13–15 GB at Q4, suited to 24 GB GPUs or Macs with 32 GB+ unified memory. On a Mac, unified memory is shared with the OS, so leave headroom. Figures are this page's formula estimates.

Can I run PrismML Bonsai 2 on a phone or thin laptop?

Yes for the smaller sizes. Official cards: Bonsai 2 2B (~1.88B LM) ternary packs are 0.43–0.52 GB; 4B (~4.21B) 0.95–1.15 GB; 9B (~8.95B) 2.00–2.42 GB; 27B (27.36B) 5.95–7.21 GB (PTQ1_0 / PQ2_0). PrismML positions 4B for phones and edge devices; 27B runs interactively on Apple Silicon laptops in their benches. Use PrismML's llama.cpp fork or supported MLX packs — stock llama.cpp only runs the Q2_0 packing. Formula VRAM below is an estimate for conventional quants; prefer official ternary file sizes.

How much VRAM does Nemotron 3.5 Lightning need?

Official NVIDIA card: 30B total / 3B active. The BF16 reference lists single-GPU deployment on 1× H100 80GB (or 1× A100 80GB). This page's formula estimate for 30B at Q4 is about 15 GB weights-only (estimate) — real MoE + Mamba hybrid footprints differ; use NVIDIA's NVFP4 card for optimized inference recipes. NVIDIA has not published a consumer GeForce VRAM table for Lightning 3.5 on the pages we checked.

How much VRAM does an RTX 5090 / 4090 have?

Per NVIDIA's compare-specs page (checked 2026-10-15): GeForce RTX 5090 has 32 GB GDDR7 and RTX 4090 has 24 GB GDDR6X. See the GPU VRAM table above for the rest of the RTX 50 and 40 series.

How should I pick context length vs VRAM?

Start with the shortest context that still fits your task (often 4k–8k for chat, higher for long documents). Weights stay fixed; KV grows with tokens. If the verdict is tight or red, cut context before you jump to a harsher quant — you usually lose less quality that way. After a successful short-context load, raise context in steps and watch for OOM.

Why does the calculator disagree with my llama.cpp / vLLM numbers?

Frameworks pack KV differently, use different CUDA allocators, and may offload layers to system RAM. This page uses a transparent weights formula plus labelled estimates for KV and a flat overhead. Use it to shortlist a GPU and quant; confirm with a real load of your exact GGUF or checkpoint. For serving engine choice see DeepInfer vs vLLM.

Sources

  1. https://www.alibabacloud.com/en/press-room/alibaba-unveils-roadmap-on-full-stack-ai-strategy (2026-10-15)
  2. https://huggingface.co/Qwen/Qwen3.8-27B (2026-10-15)
  3. https://huggingface.co/moonshotai/Kimi-K3 (2026-10-15)
  4. https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash (2026-10-15)
  5. https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro (2026-10-15)
  6. https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash (2026-10-15)
  7. https://huggingface.co/zai-org/GLM-5.3 (2026-10-15)
  8. https://huggingface.co/zai-org/GLM-5.3-Flash (2026-10-15)
  9. https://huggingface.co/google/gemma-4-E2B (2026-10-15)
  10. https://huggingface.co/google/gemma-4-31B (2026-10-15)
  11. https://huggingface.co/google/gemma-4-26B-A4B (2026-10-15)
  12. https://huggingface.co/google/gemma-4-E4B (2026-10-15)
  13. https://huggingface.co/google/gemma-4-12B (2026-10-15)
  14. https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf (2026-10-16)
  15. https://huggingface.co/prism-ml/Ternary-Bonsai-2-2B-gguf (2026-10-16)
  16. https://huggingface.co/prism-ml/Ternary-Bonsai-2-9B-gguf (2026-10-16)
  17. https://docs.prismml.com/models/bonsai-2-4b (2026-10-16)
  18. https://docs.prismml.com/download/models (2026-10-16)
  19. https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16 (2026-10-16)
  20. https://www.nvidia.com/en-us/geforce/graphics-cards/compare/?section=compare-specs (2026-10-15)

Done sizing GPUs? Open a free pixel blind box in Starbox while your download finishes.

Play Starbox

Related

Last verified 2026-10-25. DreamCavy is not affiliated with Alibaba or the Qwen team. Estimates are for planning only.

首页 › 工具 › LLM 显存计算器

LLM 显存计算器:GGUF / Q4 / Q8 / BF16 显存估算

最后核实: · 模型事实仅来自官方来源;估算值均已标明

免费的 LLM 显存计算器,用于规划本地大模型部署,包括当前可下载的 Qwen3.8-27B,以及尚未发布的 Qwen4-27B 的规划估算。选择量化(BF16 / Q8 / Q5_K / Q4_K GGUF 风格)、上下文长度和你的显卡显存,查看估算占用与能否跑下。现已加入 PrismML Bonsai 2(手机/轻薄本三值包)、Nemotron 3.5 Lightning,以及 Kimi K3、DeepSeek V4、GLM 5.3、Gemma 4,还有 RTX 50/40 系列显卡显存一览。

Qwen4 权重尚未发布。阿里 Apsara 新闻稿写明下一代 Qwen 4 currently in training(阿里云新闻中心,2026-09-22)。尚无官方 Qwen4 模型卡或显存数字。下列估算假定 27B 参数,仅供规划,待官方模型卡发布后请更新。
权重(公式)–
KV 缓存(估算)–
运行开销(估算)–
合计估算–
填写显卡显存可判断能否跑下;留空则只显示估算。

怎么用这个 LLM 显存计算器

在下拉框里选模型(规划用 Qwen4-27B,或已发布的 Qwen3.8-27B、Gemma 4、Bonsai 2、Nemotron 3.5 Lightning 等)。再选量化:BF16 为全精度,Q8 / Q5_K / Q4_K 对应 GGUF 风格更小体积;设好你真正需要的上下文长度。可选填写显卡显存(或点击下方 GeForce 表某一行)以得到「能否跑下」的判断。四个格子分别是公式权重、架构允许时的 KV 估算、约 1.5 GB 运行开销,以及合计。

所有合计都是规划估算,不是实验室实测。MoE 即使只激活一部分,仍需加载全部专家。混合 / Mamba 注意力在模型卡上往往没有简单的每 token KV 数字,这些行会把 KV 标成「未计入」——长上下文请自行留余量。PrismML Bonsai 2 等官方三值包比常规 Q4 公式更小;面向手机或轻薄本时请优先看备注里的包体积。

实操示例:在 RTX 4090(24 GB)上规划 Qwen3.8-27B

目标:在 24 GB 的 GeForce RTX 4090 上本地跑官方开放权重 Qwen3.8-27B。选择 Qwen3.8-27B,量化选 Q4_K,上下文 8,192,点击 RTX 4090 行(或输入 24)。权重 ≈ 27 × 0.5 = 13.5 GB;加上本页 KV 估算与约 1.5 GB 开销,合计常落在十几 GB 高位——判决多为「较宽松」或「很紧」。若变红,把上下文降到 4,096,或先短上下文试稳后再考虑 Q5。

同一张卡在 BF16 下仅权重约 54 GB,单卡 24 GB 装不下全精度——需要多卡、CPU/磁盘卸载,或换更小模型(本计算器里 Gemma 4 12B Q4 常见于 12–16 GB)。Qwen4-27B 权重尚未发布,请按 27B 规划假设使用,待阿里发布模型卡后再更新。选定推理引擎后可参考 DeepInfer vs vLLM。

常见显卡显存一览(桌面 GeForce)

数据为 NVIDIA 官网对比页的标准显存配置(NVIDIA 规格对比,2026-10-15 核实)。笔记本型号显存常不同,请以具体型号为准。点击某行可填入上方「你的显卡显存」。

显卡显存显存类型
GeForce RTX 509032 GBGDDR7
GeForce RTX 508016 GBGDDR7
GeForce RTX 5070 Ti16 GBGDDR7
GeForce RTX 507012 GBGDDR7
GeForce RTX 5060 Ti16 GB / 8 GBGDDR7
GeForce RTX 50608 GBGDDR7
GeForce RTX 50508 GBGDDR6
GeForce RTX 409024 GBGDDR6X
GeForce RTX 4080 SUPER16 GBGDDR6X
GeForce RTX 408016 GBGDDR6X
GeForce RTX 4070 Ti SUPER16 GBGDDR6X
GeForce RTX 4070 Ti12 GBGDDR6X
GeForce RTX 4070 SUPER12 GBGDDR6X
GeForce RTX 407012 GBGDDR6 / GDDR6X
GeForce RTX 4060 Ti16 GB / 8 GBGDDR6
GeForce RTX 40608 GBGDDR6

已核实数据与公式

项目数值来源
Qwen 4 状态训练中;无公开权重阿里云新闻中心(2026-10-15)
Qwen3.8-27B 参数量语言模型 27B;HF 显示含视觉约 28BHugging Face 模型卡(2026-10-15)
Qwen3.8-27B 注意力结构64 层;其中 16 层全注意力(4 KV 头 × 256);其余为 Gated DeltaNet模型卡(2026-10-15)
Qwen3.8-27B 上下文原生 262,144(可扩展)模型卡(2026-10-15)
Kimi K3 参数量总 2.8T,激活 104B,1M 上下文Hugging Face 模型卡(2026-10-15)
DeepSeek V4 Flash 参数量总 284B,激活 13B,1M 上下文;FP4+FP8 混合Hugging Face 模型卡(2026-10-15)
DeepSeek V4 Pro 参数量总 1.6T,激活 49B,1M 上下文;FP4+FP8 混合Hugging Face 模型卡(2026-10-15)
DeepSeek V4.1 Flash 参数量主干 552B,激活 8B/16B,另有 196B Engram 记忆;最长 1M 上下文Hugging Face 模型卡(2026-10-15)
GLM 5.3 参数量模型卡未写总参数;HF safetensors 元数据约 753B(FP8)Hugging Face 模型卡(2026-10-15)
GLM 5.3 Flash 参数量总 320B,激活 18BHugging Face 模型卡(2026-10-15)
Gemma 4 E2B / E4B 参数量有效 2.3B / 4.5B(含嵌入 5.1B / 8B),128K 上下文Hugging Face 模型卡(2026-10-15)
Gemma 4 12B / 31B 参数量11.95B / 30.7B,256K 上下文Hugging Face 模型卡(2026-10-15)
Gemma 4 26B-A4B 参数量总 25.2B,激活 3.8B,256K 上下文Hugging Face 模型卡(2026-10-15)
PrismML Bonsai 2 2B / 4B / 9B / 27B 参数量语言模型约 1.88B / 4.21B / 8.95B / 27.36B(视觉塔另计)HF 27B、文档 4B、HF 2B、HF 9B(2026-10-16)
Bonsai 2 三值 GGUF 部署体积(PTQ1_0 / PQ2_0)2B: 0.43 / 0.52 GB;4B: 0.95 / 1.15 GB;9B: 2.00 / 2.42 GB;27B: 5.95 / 7.21 GBPrismML 下载文档(2026-10-16)
Nemotron 3.5 Lightning 参数量总 30B,激活 3B;BF16 官方方案可在 1× H100 80GB 上部署Hugging Face 模型卡(2026-10-16)
权重公式显存权重 ≈ 参数量_B × 每参数字节(BF16/FP16=2,Q8≈1,Q5_K≈0.625,Q4_K≈0.5)常用 GGUF / 权重体积经验公式;非 Qwen 官方表
运行开销+1.5 GB 估算(CUDA 上下文、激活、碎片等)估算 — 请按实际框架调整

示例:Qwen3.8-27B 在 BF16 下仅权重 27×2=54 GB;Q4_K 下 27×0.5=13.5 GB,另加 KV 与开销。

常见模型显存速查表(仅权重)

按本页公式(参数量 × 每参数字节)预填。下列为仅权重估算,未含 KV 缓存与约 1.5 GB 运行开销——完整估算请用上方计算器。MoE 仍需加载全部专家。Bonsai 等官方三值包体积可能小于公式值。

模型参数(模型卡)BF16Q8 ≈Q4_K ≈典型可跑场景(参考)
Gemma 4 E2B5.1B~10 GB~5 GB~2.6 GB量化后适合 8 GB 显卡 / 手机档
Gemma 4 12B11.95B~24 GB~12 GB~6 GBQ4–Q5 常见于 12–16 GB 显卡
Gemma 4 31B30.7B~61 GB~31 GB~15 GBQ4 需 24 GB+ 显卡或 32 GB 统一内存 Mac
Qwen3.8-27B27B 语言模型~54 GB~27 GB~13.5 GB24 GB 卡通常需 Q4 + 较短上下文
Qwen4-27B(规划)假定 ~27B~54 GB~27 GB~13.5 GB权重未发布,仅供规划
Nemotron 3.5 Lightning30B / 激活 3B~60 GB~30 GB~15 GB官方 BF16:1× H100/A100 80GB
Bonsai 2 4B(三值包)~4.21B不适用*不适用*~0.95–1.15 GB 包手机 / 轻薄本(官方三值)
Bonsai 2 27B(三值包)27.36B不适用*不适用*~5.95–7.21 GB 包Apple Silicon 笔记本档
DeepSeek V4 Flash284B / 激活 13B~568 GB~284 GB~142 GB多卡服务器(MoE 加载全部专家)
DeepSeek V4.1 Flash552B 主干†~1.1 TB~552 GB~276 GB大型集群;未计 Engram
GLM 5.3 Flash320B / 激活 18B~640 GB~320 GB~160 GB多卡
Kimi K32.8T / 激活 104B~5.6 TB~2.8 TB~1.4 TB非消费级显卡目标

* Bonsai 2 请优先用官方三值 GGUF 体积,勿用 BF16/Q4 公式。† V4.1 Flash 的 Engram(约 196B)未计入。选定推理引擎后可参考 DeepInfer vs vLLM。

常见问题

Qwen4-27B 需要多少显存?

阿里尚未公布 Qwen4 权重或显存要求。截至本页核实日期,官方仅表示 Qwen 4「currently in training」。在官方模型卡发布前,本计算器按 27B 参数、标准权重公式(参数量 × 每参数字节数)加上估算的 KV 缓存与运行开销给出参考值。

Qwen3.8-27B 需要多少显存?

官方 Hugging Face 模型卡写明语言模型约 27B 参数(HF 也显示含视觉部分约 28B)。仅 BF16 权重约 27×2=54 GB;Q4(约 0.5 字节/参数)权重约 13.5 GB,尚未计入 KV 与框架开销。实际能否跑下取决于量化、上下文长度和推理框架。

这里的 GGUF 显存公式是什么?

权重显存 ≈ 参数量(十亿)× 每参数字节数。本页采用 FP16/BF16=2、Q8≈1、Q5_K≈0.625、Q4_K≈0.5。真实 GGUF 文件大小会因具体量化变体略有差异。KV 缓存与框架开销单独估算并标明为估算值。

Qwen4-27B 能在 24 GB 显卡(如 RTX 4090)上跑吗?

权重未发布前无法确定。若正式版约为 27B 稠密参数,本计算器中 Q4_K 级量化加中短上下文的估算常接近或低于 24 GB——仅作规划参考,不作保证。

上下文长度会影响显存吗?

会。模型权重固定;KV 缓存随上下文长度(以及 batch)增长。上下文越长,加载权重后剩余可用显存需求越高。

这个 LLM 显存计算器收费吗?

不收费。完全在浏览器本地计算,无需注册、无需上传。

我能在本地跑 Kimi K3 吗?

只能在超大规模多卡服务器上。Moonshot 的 Hugging Face 模型卡写明总参数 2.8T(激活 104B,MoE)。所有专家都需常驻内存,按本页公式即使约 4-bit 量化,仅权重也约 2,800 × 0.5 ≈ 1,400 GB(网上流传的约 610 GB 与官方参数量不符),远超任何单张消费级显卡。

Kimi K3 显存需求

按官方 2.8T 参数量的仅权重估算:BF16 ≈ 5,600 GB,Q8 ≈ 2,800 GB,Q4 ≈ 1,400 GB,另需 KV 缓存(1M 上下文)与运行开销。均为公式估算,非 Moonshot 官方数字;官方未发布显存表。

DeepSeek V4 Flash、V4 Pro、V4.1 Flash 需要多少显存?

官方模型卡:V4 Flash 总 284B(激活 13B),V4 Pro 1.6T(激活 49B),V4.1 Flash 主干 552B 另加 196B Engram 记忆。MoE 仍需加载全部专家,约 4-bit 时仅权重分别约 142 GB、800 GB、276 GB(公式估算;V4.1 Flash 未含 Engram)。官方权重为 FP4+FP8 混合精度。

GLM 5.3 和 GLM 5.3 Flash 需要多少显存?

GLM 5.3 Flash:总 320B、激活 18B(官方模型卡)→ 约 4-bit 权重约 160 GB。GLM 5.3 模型卡未写总参数;Hugging Face 文件元数据约 753B → 约 4-bit 约 377 GB。均为未计 KV 与开销的公式估算。

能在本地 / Mac 上跑 Gemma 4 吗?

小尺寸可以。据 Google 模型卡:E2B(含嵌入 5.1B)和 E4B(8B)量化后可轻松在 8 GB 显卡或 Apple Silicon Mac 上运行;12B(11.95B)Q4 权重约 6 GB;26B-A4B(总 25.2B、激活 3.8B)与 31B(30.7B)Q4 约 13–15 GB,适合 24 GB 显卡或 32 GB 以上统一内存的 Mac。Mac 统一内存与系统共享,请预留余量。数字为本页公式估算。

PrismML Bonsai 2 能在手机或轻薄本上跑吗?

小尺寸可以。官方模型卡:Bonsai 2 2B(约 1.88B 语言模型)三值包 0.43–0.52 GB;4B(约 4.21B)0.95–1.15 GB;9B(约 8.95B)2.00–2.42 GB;27B(27.36B)5.95–7.21 GB(PTQ1_0 / PQ2_0)。PrismML 将 4B 定位为手机与边缘设备;其基准中 27B 可在 Apple Silicon 笔记本上交互运行。请使用 PrismML 的 llama.cpp 分支或受支持的 MLX 包——原版 llama.cpp 仅能跑 Q2_0 打包。下方公式显存是常规量化估算;请优先用官方三值文件体积。

Nemotron 3.5 Lightning 需要多少显存?

官方 NVIDIA 模型卡:总 30B / 激活 3B。BF16 参考权重写明可在 1× H100 80GB(或 1× A100 80GB)单卡部署。本页公式对 30B 在 Q4 下仅权重约 15 GB(估算)——真实 MoE + Mamba 混合占用会不同;优化推理请看 NVIDIA 的 NVFP4 模型卡。我们所查页面中 NVIDIA 未公布 Lightning 3.5 的消费级 GeForce 显存表。

RTX 5090 / 4090 有多少显存?

据 NVIDIA 官网规格对比页(2026-10-15 核实):GeForce RTX 5090 为 32 GB GDDR7,RTX 4090 为 24 GB GDDR6X。其余 RTX 50 / 40 系列见上方显卡显存表。

上下文长度和显存该怎么权衡?

先选仍能完成任务的最短上下文(聊天常见 4k–8k,长文档再升高)。权重固定,KV 随 token 增长。若判决偏紧或变红,优先缩短上下文,而不是立刻上更狠的量化——通常这样掉质量更少。短上下文加载成功后,再逐步加长并观察是否 OOM。

为什么和我在 llama.cpp / vLLM 里测到的不一致?

各框架的 KV 排布、CUDA 分配和层卸载策略不同。本页用透明的权重公式,外加标明为估算的 KV 与固定开销。请用它来筛选显卡与量化,再用你的实际 GGUF / 权重做一次真实加载确认。推理引擎选择见 DeepInfer vs vLLM。

来源

  1. https://www.alibabacloud.com/en/press-room/alibaba-unveils-roadmap-on-full-stack-ai-strategy(2026-10-15)
  2. https://huggingface.co/Qwen/Qwen3.8-27B(2026-10-15)
  3. https://huggingface.co/moonshotai/Kimi-K3(2026-10-15)
  4. https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash(2026-10-15)
  5. https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro(2026-10-15)
  6. https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash(2026-10-15)
  7. https://huggingface.co/zai-org/GLM-5.3(2026-10-15)
  8. https://huggingface.co/zai-org/GLM-5.3-Flash(2026-10-15)
  9. https://huggingface.co/google/gemma-4-E2B(2026-10-15)
  10. https://huggingface.co/google/gemma-4-31B(2026-10-15)
  11. https://huggingface.co/google/gemma-4-26B-A4B(2026-10-15)
  12. https://huggingface.co/google/gemma-4-E4B(2026-10-15)
  13. https://huggingface.co/google/gemma-4-12B(2026-10-15)
  14. https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf(2026-10-16)
  15. https://huggingface.co/prism-ml/Ternary-Bonsai-2-2B-gguf(2026-10-16)
  16. https://huggingface.co/prism-ml/Ternary-Bonsai-2-9B-gguf(2026-10-16)
  17. https://docs.prismml.com/models/bonsai-2-4b(2026-10-16)
  18. https://docs.prismml.com/download/models(2026-10-16)
  19. https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16(2026-10-16)
  20. https://www.nvidia.com/en-us/geforce/graphics-cards/compare/?section=compare-specs(2026-10-15)

算完显存了?下载模型的空隙去星河卡盒开一个免费像素盲盒吧。

玩星河卡盒

相关

最后核实于 2026-10-16。DreamCavy 与阿里巴巴 / Qwen 团队无关联。估算仅供规划参考。