BigCode15BQ4_K_M 下约 10 GB 显存

StarCoder 2 15B — 显存、速度与本地部署

作者: Jakub Rusinowski · 最后更新:

The flagship StarCoder model. HumanEval score of 46.4%, beating many larger general-purpose models on code tasks. Excellent at generating and explaining complex code in 600+ languages.

StarCoder 2 15B 在 Q4_K_M 下约需 10 GB 显存——量化权重加框架开销,不含 KV 缓存。在 Apple Silicon 上,这部分来自统一内存。

逻辑78
创意48
编程94

按量化级别的显存与速度

计算基准:NVIDIA RTX 4090 (24 GB)。包含 8K 上下文的 KV 缓存,因此数值高于上方的主数字。

量化显存速度(估算)适配
Q2_K
2.63 bpw
6.6 GB~106 tok/s可运行
Q3_K_M
3.41 bpw
8.1 GB~87 tok/s可运行
Q4_K_M
4.83 bpw
10.8 GB~66 tok/s可运行
Q5_K_M
5.67 bpw
12.5 GB~58 tok/s可运行
Q6_K
6.56 bpw
14.2 GB~51 tok/s可运行
Q8_0
8.50 bpw
17.9 GB~41 tok/s可运行
F16
16.00 bpw
32.5 GB~3 tok/s需卸载

黑色标记 = NVIDIA RTX 4090 (24 GB) 上的可用显存。 估算来自内存带宽屋顶线模型,详见 方法说明页. StarCoder 2 15B 显存计算器 →

运行 StarCoder 2 15B

目录中能运行 StarCoder 2 15B 的最便宜 GPU 是 Intel Arc B580 (12 GB).

购买此硬件 Intel Arc B580 12GB — 12 GB VRAM · 190 W board power立即云端部署 RunPod 上的 RTX 4090 — 低至 $0.34/小时 · 价格核实于 2026-07

或在 Vast.ai 比较,低至 $0.35/小时 (typical low · varies)

作为亚马逊联盟成员,我们从符合条件的购买中获得收入。云 GPU 链接为推荐链接——我们可能获得佣金,您无需额外付费。

联盟营销声明: 本页部分链接为联盟推广链接——如果你通过它们购买,LLM Configurator 可能会获得佣金,而你无需支付任何额外费用。作为亚马逊联盟成员(Amazon Associate),LLM Configurator 会从符合条件的购买中获得收益。
Intel Arc B580 12GB
12 GB VRAM · 190 W board power
2026年价格波动较大——请以当前商品页价格为准。

如何运行 StarCoder 2 15B

安装 Ollama,然后运行:

ollama run starcoder2:15b
Hugging Face 上的权重: bigcode/starcoder2-15b ↗

规格

Curated — A hand-written entry from before this catalogue recorded its sources. The figures are long-standing but their provenance is not on file.

参数量
15 Billion
上下文窗口
16,384
架构
Dense
提供商
BigCode
许可证
BigCode Open RAIL-M v1
Practical deployment
Laptop
规格量化
Q4_K_M
系统内存
24 GB
记录更新于
2024-02-28
许可证BigCode OpenRAIL-M允许商业使用

Weights are downloadable and commercial use is permitted, subject to the licence’s acceptable-use terms.

质量与使用场景

评分由模型作者或独立评测方发布——衡量质量而非吞吐量,并非我们实测。

最适合coding agentcode reviewdev work

我的 GPU 能运行 StarCoder 2 15B 吗?

StarCoder 2 的其他尺寸

StarCoder 2 15B — 常见问题

How much VRAM does StarCoder 2 15B need?

About 10 GB at Q4_K_M — quantized weights plus framework overhead, before any KV cache. The cache grows with context length and is added on top; the table above folds it in. Apple Silicon counts unified memory toward the same figure.

Does StarCoder 2 15B run on an RTX 4090 (24 GB)?

Yes. StarCoder 2 15B needs about 10 GB at Q4_K_M, inside a 24 GB card, at an estimated 66 tokens/sec.

How do I run StarCoder 2 15B locally?

Install Ollama and run `ollama run starcoder2:15b`. That pulls the weights and starts a local OpenAI-compatible endpoint; after the download nothing leaves the machine.

What other sizes does StarCoder 2 come in?

StarCoder 2 3B (3 GB), StarCoder 2 7B (5 GB), StarCoder 2 15B (10 GB). Every size shares the family's training and licence; the larger ones score higher and need proportionally more memory.