证据: 基准测试结果由厂商自行报告
TranslateGemma 4B — 显存、速度与本地部署
作者: Jakub Rusinowski · 最后更新:
针对 55 种评估语言之间的翻译(包括图像中的文字)微调的 Gemma 3 4B。最小的 TranslateGemma,面向手机和边缘设备。Ollama 提供 translategemma:4b。
TranslateGemma 4B 在 Q4_K_M 下约需 3 GB 显存——量化权重加框架开销,不含 KV 缓存。在 Apple Silicon 上,这部分来自统一内存。
按量化级别的显存与速度
计算基准:NVIDIA RTX 4090 (24 GB)。包含 8K 上下文的 KV 缓存,因此数值高于上方的主数字。
| 量化 | 显存 | 显存 | 速度(估算) | 适配 |
|---|---|---|---|---|
| Q2_K 2.63 bpw | 2.6 GB | ~224 tok/s | 可运行 | |
| Q3_K_M 3.41 bpw | 3 GB | ~199 tok/s | 可运行 | |
| Q4_K_M 4.83 bpw | 3.7 GB | ~166 tok/s | 可运行 | |
| Q5_K_M 5.67 bpw | 4.2 GB | ~151 tok/s | 可运行 | |
| Q6_K 6.56 bpw | 4.7 GB | ~138 tok/s | 可运行 | |
| Q8_0 8.50 bpw | 5.7 GB | ~116 tok/s | 可运行 | |
| F16 16.00 bpw | 9.8 GB | ~72 tok/s | 可运行 |
黑色标记 = NVIDIA RTX 4090 (24 GB) 上的可用显存。 估算来自内存带宽屋顶线模型,详见 方法说明页. TranslateGemma 4B 显存计算器 →
运行 TranslateGemma 4B
目录中能运行 TranslateGemma 4B 的最便宜 GPU 是 Intel Arc B570 (10 GB).
或在 Vast.ai 比较,低至 $0.16/小时 (typical · varies)
作为亚马逊联盟成员,我们从符合条件的购买中获得收入。云 GPU 链接为推荐链接——我们可能获得佣金,您无需额外付费。
如何运行 TranslateGemma 4B
安装 Ollama,然后运行:
ollama run translategemma:4b规格
Verified — Checked against the primary source — the model card or the vendor spec page — and corroborated by a second independent source. 尚未确认: contextWindow.
- 参数量
- 4.3 Billion (incl. vision encoder)
- 上下文窗口
- 2,048 (input)
- 架构
- Dense transformer (Gemma 3), sliding-window + global attention, image encoder
- 提供商
- Google DeepMind
- 许可证
- Gemma Terms of Use
- Availability
- Weights downloadable
- Access
- Gated: request access on Hugging Face and accept the licence first
- Practical deployment
- Edge device (phone, SBC)
- 规格量化
- Q4_K_M
- 系统内存
- 8 GB
- 记录更新于
- 2026-11-21
Weights are downloadable and commercial use is permitted, subject to the licence’s acceptable-use terms.
限制与注意事项
- Short inputs only: Google's model card gives a 2K-token input context (one source, read from the gated card). Translate long documents in chunks.
- Weights use the Gemma Terms of Use, not Apache 2.0; the Hugging Face repository asks you to accept the licence before downloading.
- A translation specialist, not a general chat model, so it is kept out of this site's best-model rankings.
- Translation quality results are vendor-reported.
另请参阅 Hy-MT2 7B
质量与使用场景
评分由模型作者或独立评测方发布——衡量质量而非吞吐量,并非我们实测。
TranslateGemma 的其他尺寸
TranslateGemma 4B — 常见问题
How much VRAM does TranslateGemma 4B need?
About 3 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 TranslateGemma 4B run on an RTX 4090 (24 GB)?
Yes. TranslateGemma 4B needs about 3 GB at Q4_K_M, inside a 24 GB card, at an estimated 166 tokens/sec.
How do I run TranslateGemma 4B locally?
Install Ollama and run `ollama run translategemma:4b`. That pulls the weights and starts a local OpenAI-compatible endpoint; after the download nothing leaves the machine.
What other sizes does TranslateGemma come in?
TranslateGemma 4B (3 GB), TranslateGemma 12B (8 GB), TranslateGemma 27B (17 GB). Every size shares the family's training and licence; the larger ones score higher and need proportionally more memory.