# IBM Granite

**IBM Granite**是IBM为企业用途开发的一系列开源生成式AI基础模型，涵盖语言、代码、语音、视觉、嵌入和安全分类器模型。该系列始于2023年9月28日通过IBM watsonx平台正式开放的granite.13b语言模型，此后历经Granite 3.x系列，演进出混合架构的Granite 4.0与4.1两代。<sup>[1](https://newsroom.ibm.com/2023-09-28-IBM-Announces-Availability-of-watsonx-Granite-Model-Series%2C-Client-Protections-for-IBM-watsonx-Models)</sup><sup> • </sup><sup>[2](https://www.ibm.com/downloads/cas/X9W4O6BM)</sup> IBM将Granite定位为一组小巧实用的模型，能以低成本、低延迟运行，并以Apache 2.0许可证发布。<sup>[3](https://www.ibm.com/new/announcements/ibm-granite-3-3-speech-recognition-refined-reasoning-rag-loras)</sup>

| 关键事实 | 详情 |
|---|---|
| 首次发布 | watsonx Granite模型系列正式开放，2023年9月28日<sup>[1](https://newsroom.ibm.com/2023-09-28-IBM-Announces-Availability-of-watsonx-Granite-Model-Series%2C-Client-Protections-for-IBM-watsonx-Models)</sup> |
| 首个模型 | granite.13b，仅解码器英文大语言模型；v2版在2.5万亿token上训练，8K上下文<sup>[2](https://www.ibm.com/downloads/cas/X9W4O6BM)</sup> |
| 许可证 | 语言、代码、语音和嵌入系列均采用Apache 2.0<sup>[3](https://www.ibm.com/new/announcements/ibm-granite-3-3-speech-recognition-refined-reasoning-rag-loras)</sup><sup> • </sup><sup>[4](https://research.ibm.com/blog/granite-code-models-open-source)</sup> |
| 代码模型 | 30亿至340亿参数，在116种编程语言的代码上训练<sup>[4](https://research.ibm.com/blog/granite-code-models-open-source)</sup> |
| Granite 4.0架构 | 混合Mamba-2/Transformer，不使用位置编码（NoPE）；H-Small总参数32B，激活参数9B<sup>[5](https://www.ibm.com/new/announcements/ibm-granite-4-0-hyper-efficient-high-performance-hybrid-models)</sup> |
| 上下文长度 | Granite 4.0模型在最长512K token的样本上训练，在最长128K token的任务上验证<sup>[5](https://www.ibm.com/new/announcements/ibm-granite-4-0-hyper-efficient-high-performance-hybrid-models)</sup> |
| 安全模型 | Granite Guardian在GuardBench排行榜上占据前十名中的六席<sup>[6](https://research.ibm.com/blog/granite-guardian-tops-guardbench)</sup> |

## 起源：granite.13b

该系列的首个模型granite.13b是一个仅解码器英文大语言模型，通过自监督学习，在IBM精心策划的预训练数据集上训练而成。该数据集来源包括学术界、互联网、金融和法律文本等企业来源，以及代码。<sup>[2](https://www.ibm.com/downloads/cas/X9W4O6BM)</sup> 第1版基础模型在1万亿token上训练；第2版再增加1.5万亿，最终总计2.5万亿token。基础模型采用多查询注意力与学习式位置嵌入，训练所用token由GPT-NeoX 20B分词器生成，上下文长度为8000 token。由此衍生出两个变体：granite.13b.instruct针对指令遵循进行调优，granite.13b.chat则应用了对齐方法，旨在提升生成质量并减轻某些危害。<sup>[2](https://www.ibm.com/downloads/cas/X9W4O6BM)</sup>

IBM在一份公开技术报告中记录了训练数据、治理流程、能耗与碳足迹以及社会技术危害，并根据其标准合同知识产权保护条款，对客户在watsonx平台上使用这些模型予以赔偿保障。<sup>[2](https://www.ibm.com/downloads/cas/X9W4O6BM)</sup><sup> • </sup><sup>[1](https://newsroom.ibm.com/2023-09-28-IBM-Announces-Availability-of-watsonx-Granite-Model-Series%2C-Client-Protections-for-IBM-watsonx-Models)</sup> 报告中列出的目标企业任务包括检索增强生成、摘要、内容生成、命名实体识别、洞察提取和分类。<sup>[2](https://www.ibm.com/downloads/cas/X9W4O6BM)</sup>

## Granite Code

2024年，IBM开源了Granite代码模型系列，这是一组仅解码器代码生成模型，在116种编程语言编写的代码上训练。该系列参数规模从30亿到340亿不等，分为基础版和指令遵循版，面向从复杂应用现代化到设备端内存受限环境的各种用途。IBM报告称，在其评估任务上，这些模型始终达到开源代码大语言模型中的最先进水平，并以Apache 2.0许可证在[Hugging Face](https://www.edgepedia.org/zh/hugging-face)、GitHub、watsonx.ai和[Red Hat](https://www.edgepedia.org/zh/red-hat)的RHEL AI平台上发布。<sup>[4](https://research.ibm.com/blog/granite-code-models-open-source)</sup> 一个200亿参数的Granite代码模型还为IBM的WCA for Z工具链提供支持，企业用该工具链将单体COBOL应用改造为针对[IBM Z](https://www.edgepedia.org/zh/ibm-z)优化的服务。<sup>[4](https://research.ibm.com/blog/granite-code-models-open-source)</sup> 后续工作通过轻量级持续预训练逐步提高RoPE基频，将3B和8B代码模型的上下文窗口从2K/4K扩展至128K token。<sup>[7](https://arxiv.org/abs/2407.13739)</sup>

## Granite 3.x

2024年发布的Granite 3.0语言模型提供稠密2B和8B两种规模，以及混合专家变体——总参数1B/激活400M和总参数3B/激活800M。IBM的评估涵盖基础模型的人类考试、常识、阅读理解、推理、代码和数学，对指令模型还增加了指令遵循和多语言能力评估，并报告称这些模型表现优于同等参数规模的其他模型，在知识、推理、函数调用、多语言任务、代码以及网络安全和检索增强生成等企业任务上尤为突出。<sup>[8](https://github.com/ibm-granite/granite-3.0-language-models)</sup>

**Granite 3.3**于2025年4月发布，将该系列扩展至音频领域。其旗舰模型Granite Speech 3.3 8B是IBM首个官方语音转文本模型。在架构上，它结合了一个由10个conformer块组成的语音编码器（在面向ASR的数据集上以联结主义时间分类训练）、一个2层查询变换器（Q-former，将音频嵌入投影到语言模型可解读的空间）、具有128K上下文长度的Granite 3.3 8B Instruct大语言模型，以及当存在音频时应用于该语言模型查询和值投影矩阵的LoRA适配器。该设计采用两遍处理：就音频文件提问时，先转录音频，再就转录文本对模型进行提示。<sup>[3](https://www.ibm.com/new/announcements/ibm-granite-3-3-speech-recognition-refined-reasoning-rag-loras)</sup>

Granite 3.3还为8B和2B指令文本模型增加了中间填充（FIM）能力和更复杂的推理能力，IBM通过Granite Experiments（一个[IBM Research](https://www.edgepedia.org/zh/ibm-research)的试验平台）发布了面向RAG的LoRA适配器，包括实验性的激活LoRA（aLoRA），可降低推理成本和内存需求，同时允许在适配器之间无缝切换。<sup>[3](https://www.ibm.com/new/announcements/ibm-granite-3-3-speech-recognition-refined-reasoning-rag-loras)</sup>

## Granite 4.0与4.1

Granite 4.0改变了架构。此前几代采用传统Transformer，而4.0系列采用混合Mamba-2/Transformer设计，将[Mamba](https://www.edgepedia.org/zh/mamba-deep-learning-architecture)状态空间模型的效率与Transformer自注意力相结合。混合模型不使用位置编码（NoPE）：Mamba按顺序读取序列，因而保留了token顺序，所以位置编码并无必要。所有Granite 4.0模型都在上下文长度最长512K token的数据样本上训练，并在最长128K token的任务上验证了性能。<sup>[5](https://www.ibm.com/new/announcements/ibm-granite-4-0-hyper-efficient-high-performance-hybrid-models)</sup> H-Tiny和H-Small模型将每个Mamba-2和Transformer块的输出传递给一个细粒度混合专家块，是IBM首批使用始终激活的共享专家的MoE模型。该系列包括Granite-4.0-H-Small（总参数32B，激活参数9B）、Granite-4.0-H-Tiny（总参数7B，激活1B）、Granite-4.0-H-Micro（3B稠密混合），以及Granite-4.0-Micro——一个采用传统注意力驱动Transformer的3B稠密模型，面向尚不支持混合架构的平台。<sup>[5](https://www.ibm.com/new/announcements/ibm-granite-4-0-hyper-efficient-high-performance-hybrid-models)</sup>

Granite 4.1于2026年4月29日发布，回归3B、8B和30B三种规模的稠密模型，从基础模型微调而来，采用了改进的后训练流程，涵盖监督微调和强化学习对齐。Granite-4.1-8B支持12种语言，包括英语、德语、西班牙语、法语、日语、葡萄牙语、阿拉伯语、捷克语、意大利语、韩语、荷兰语和中文，面向通用指令遵循、AI助手和工具使用智能体，能力涵盖摘要、分类、提取、问答、RAG、代码任务、函数调用和FIM代码补全。在已公布的基准测试中，8B模型在五样本MMLU测试中得分73.84，在MMLU-Pro上得分55.99，在GSM8K上得分92.49，而30B稠密模型在MMLU上达到80.16。<sup>[9](https://huggingface.co/ibm-granite/granite-4.1-8b?local-app=vllm)</sup><sup> • </sup><sup>[10](https://huggingface.co/ibm-granite/granite-4.1-3b?local-app=vllm)</sup>

## 安全、嵌入与视觉模型

除生成模型外，IBM还发布了Granite Guardian，这是一系列分类器模型，旨在检测提示和响应中的风险，涵盖危害、RAG幻觉和函数调用幻觉。<sup>[11](https://github.com/ibm-granite/granite-guardian)</sup> 在GuardBench上——该基准由欧盟委员会联合研究中心的研究人员创建，包含40个数据集，是首个测试AI安全分类器的独立基准——Granite Guardian模型占据前十名中的六席，领先的是Granite Guardian 3.1 8B、3.0 8B和3.2 5B。尽管这些模型仅用英语数据训练，它们在该基准的法语、德语、意大利语和西班牙语测试中也表现良好。<sup>[6](https://research.ibm.com/blog/granite-guardian-tops-guardbench)</sup>

Granite Embedding模型为RAG流水线提供检索组件。R2版本包括双编码器和[交叉编码器](https://www.edgepedia.org/zh/cross-encoder)架构、一个22层检索器及其高效的12层对应版本，以及一个重排序器，全部在治理监督下仅用适合企业的数据训练，并以Apache 2.0发布。<sup>[12](https://arxiv.org/abs/2508.21085)</sup> 多语言R2版本增加了两个基于ModernBERT的双编码器：一个3.11亿参数的完整模型，以及一个通过剪枝和词表选择构建的9700万参数紧凑模型。<sup>[13](https://arxiv.org/abs/2605.13521)</sup> Granite Vision是一个用于企业文档理解的轻量级开源多模态模型，在视觉文档理解基准以及LiveXiv（一个旨在避免测试集污染的基准）上表现强劲。<sup>[14](https://arxiv.org/abs/2502.09927)</sup>

## 可用性与定位

Granite模型在Hugging Face上通过ibm-granite组织分发，也发布在GitHub上并通过IBM watsonx.ai提供，部分Instruct模型还可通过LMStudio、Ollama和[Replicate](https://www.edgepedia.org/zh/replicate)等平台合作伙伴获取。<sup>[3](https://www.ibm.com/new/announcements/ibm-granite-3-3-speech-recognition-refined-reasoning-rag-loras)</sup><sup> • </sup><sup>[4](https://research.ibm.com/blog/granite-code-models-open-source)</sup> IBM表示，Granite模型为其许多产品和服务的AI提供动力，该系列一贯的设计目标是面向企业工作流、函数调用和RAG等智能体任务以及低成本部署的小巧高效模型，而非追求最大参数数量。<sup>[15](https://www.ibm.com/granite?cm_sp=ibmdev-_-developer-articles-_-ibmcom)</sup><sup> • </sup><sup>[5](https://www.ibm.com/new/announcements/ibm-granite-4-0-hyper-efficient-high-performance-hybrid-models)</sup>

## References

1. [IBM Announces Availability of watsonx Granite Model Series, Client Protections for IBM watsonx Models, IBM Newsroom (September 28, 2023)](https://newsroom.ibm.com/2023-09-28-IBM-Announces-Availability-of-watsonx-Granite-Model-Series%2C-Client-Protections-for-IBM-watsonx-Models)
2. [Granite Foundation Models, IBM Research technical report](https://www.ibm.com/downloads/cas/X9W4O6BM)
3. [IBM Granite 3.3: Speech recognition, refined reasoning, and RAG LoRAs, IBM](https://www.ibm.com/new/announcements/ibm-granite-3-3-speech-recognition-refined-reasoning-rag-loras)
4. [IBM's Granite code model family is going open source, IBM Research](https://research.ibm.com/blog/granite-code-models-open-source)
5. [IBM Granite 4.0: Hyper-efficient, High Performance Hybrid Models for Enterprise, IBM](https://www.ibm.com/new/announcements/ibm-granite-4-0-hyper-efficient-high-performance-hybrid-models)
6. [Granite Guardian tops third-party AI benchmark, IBM Research](https://research.ibm.com/blog/granite-guardian-tops-guardbench)
7. [Scaling Granite Code Models to 128K Context, arXiv](https://arxiv.org/abs/2407.13739)
8. [ibm-granite/granite-3.0-language-models, GitHub](https://github.com/ibm-granite/granite-3.0-language-models)
9. [ibm-granite/granite-4.1-8b, Hugging Face](https://huggingface.co/ibm-granite/granite-4.1-8b?local-app=vllm)
10. [ibm-granite/granite-4.1-3b, Hugging Face](https://huggingface.co/ibm-granite/granite-4.1-3b?local-app=vllm)
11. [ibm-granite/granite-guardian, GitHub](https://github.com/ibm-granite/granite-guardian)
12. [Granite Embedding R2 Models, arXiv](https://arxiv.org/abs/2508.21085)
13. [Granite Embedding Multilingual R2 Models, arXiv](https://arxiv.org/abs/2605.13521)
14. [Granite Vision: a lightweight, open-source multimodal model for enterprise Intelligence, arXiv](https://arxiv.org/abs/2502.09927)
15. [Granite, IBM](https://www.ibm.com/granite?cm_sp=ibmdev-_-developer-articles-_-ibmcom)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 11, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Model families and named models › Large language model families › Open-weight model families

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/ibm-granite

English original: https://www.edgepedia.org/ibm-granite
