# OpenHermes

**OpenHermes** 是由开发者 Teknium（Ryan Teknium）创建的一系列开源指令微调大语言模型及配套的指令数据集，其后与 Nous Research 产生关联。该系列始于对 [Llama 2](https://www.edgepedia.org/zh/llama-2) 的微调，随后转向基于 [Mistral](https://www.edgepedia.org/zh/mistral-model-family) 7B 的模型，其中 2023 年 11 月发布的 OpenHermes-2.5-Mistral-7B 成为该系列最知名的模型。支撑这些模型的 OpenHermes-2.5 数据集汇集了约一百万条指令与对话样本，主要为合成生成，且大部分蒸馏自 GPT-4 的输出。<sup>[1](https://huggingface.co/datasets/teknium/OpenHermes-2.5)</sup><sup> • </sup><sup>[2](https://simonwillison.net/2024/Feb/1/open-hermes-25/)</sup>

| 关键事实 | 详情 |
|---|---|
| 数据集规模 | OpenHermes-2.5 达到 100 万条样本，主要为合成生成的指令与对话样本，以更大规模和更高质量延续了 Open Hermes 1 数据集<sup>[1](https://huggingface.co/datasets/teknium/OpenHermes-2.5)</sup> |
| 数据集文件 | 以 1.94 GB 的 JSON 文件（openhermes2_5.json）分发，英文，标签为合成数据、GPT-4、蒸馏、汇编<sup>[3](https://huggingface.co/datasets/teknium/OpenHermes-2.5/blob/main/openhermes2_5.json)</sup> |
| 许可证 | 2.5 数据集与 Mistral 7B 模型均采用 Apache 2.0，允许商业使用<sup>[4](https://llmconfigurator.com/en/datasets/openhermes-2.5/)</sup><sup> • </sup><sup>[5](https://huggingface.co/teknium/OpenHermes-2.5-Mistral-7B)</sup> |
| 旗舰模型 | OpenHermes-2.5-Mistral-7B，基于 Mistral 7B 的 7B 微调模型，使用 ChatML 提示格式，2023 年 11 月发布，知识截止日期为 2023 年 9 月 30 日<sup>[5](https://huggingface.co/teknium/OpenHermes-2.5-Mistral-7B)</sup><sup> • </sup><sup>[6](https://openrouter.ai/teknium/openhermes-2.5-mistral-7b/)</sup> |
| 训练构成 | Open Hermes 2 在 90 万条指令上训练；2.5 版本新增了约 10 万条由 Glaive AI 创建的代码指令<sup>[7](https://ollama.com/library/openhermes:v2.5)</sup> |
| 主要基准 | 开放大语言模型排行榜平均分 57.82，其中 MMLU（5-shot）63.82，ARC（25-shot）64.93<sup>[8](https://huggingface.co/teknium/OpenHermes-2.5-Mistral-7B/blob/91dc5b2b9a4954bdb11025471f8c6b500a7ef921/README.md)</sup> |
| 代码效果 | 在 Glaive 的测试中，HumanEval Pass@1 从 Open Hermes 2 的 43% 提升至 Open Hermes 2.5 的 50.7%<sup>[5](https://huggingface.co/teknium/OpenHermes-2.5-Mistral-7B)</sup> |

## OpenHermes-2.5 数据集

该数据集由众多开源数据集精选汇编而成，并加入了自定义合成数据。模型卡列出的来源包括 Airoboros 2.2、CamelAI 领域专家数据集（物理、数学、化学和生物）、仅限 GPT-4 的 ChatBot Arena 对话、Collective Cognition、CoT Alpaca GPT4、Evol Instruct 70K 与 140K、Glaive Code Assistant、GPT4-LLM、GPTeacher、Medical Tasks、MetaMath 40k、SlimOrca 550K、Platypus、ShareGPT（仅 GPT4）以及 Unnatural Instructions GPT4。<sup>[1](https://huggingface.co/datasets/teknium/OpenHermes-2.5)</sup> 每条条目带有类别、来源、语言和模型名称等元数据字段，对话以人类与 GPT 交替的轮次存储。<sup>[1](https://huggingface.co/datasets/teknium/OpenHermes-2.5)</sup>

以撰写大语言模型工具相关文章而闻名的软件开发者 Simon Willison 将该发布描述为一个 2 GB 的 JSON 文件，包含超过一百万条提示、回复以及若干多轮提示对话的示例，采集自多个不同来源，并在数据卡中加以记录。<sup>[2](https://simonwillison.net/2024/Feb/1/open-hermes-25/)</sup> 该数据集以 Apache 2.0 发布，允许商业使用，包括训练随产品交付的模型。<sup>[4](https://llmconfigurator.com/en/datasets/openhermes-2.5/)</sup>

## 模型系列

最早的 OpenHermes 模型是对 Llama 2 的微调。OpenHermes-13B 于 2023 年 9 月发布，其创建者称其为首个使用完全开源的 Hermes 数据集进行微调的模型；它在 24.2 万条条目上训练，这些条目主要为 GPT-4 生成的数据，取自 GPTeacher、WizardLM evol instruct 70k、Airoboros GPT-4、Camel-AI 领域数据集、CodeAlpaca 以及微软的 GPT4-LLM 和 Unnatural Instructions 等开源数据集，并经过过滤，去除了 OpenAI 的拒答、免责声明和“作为 AI”式的示例。它采用 MIT 许可证，以 NousResearch 的 Llama-2-13b 为基础。<sup>[9](https://huggingface.co/teknium/OpenHermes-13B)</sup> 同月还发布了更小的基于 Llama-2 的版本，包括 OpenHermes-7B 和 Phi-Hermes-1.3B。<sup>[10](https://huggingface.co/teknium/models)</sup>

该系列通过 OpenHermes-2-Mistral-7B 转向 Mistral 7B，该模型于 2023 年 11 月 2 日发布，在 90 万条指令上训练；其模型卡称它在部分基准上可与 70B 模型匹敌，并超越了此前 13B 及以下的 Nous-Hermes 版本。<sup>[7](https://ollama.com/library/openhermes:v2.5)</sup>

## OpenHermes 2.5 Mistral 7B

**OpenHermes-2.5-Mistral-7B** 是该系列最知名的模型。它是 Mistral 7B 的 70 亿参数微调模型，在 OpenHermes 2 数据加上约 10 万条由 Glaive AI 创建的代码指令上训练，使用带 <|im_start|> 和 <|im_end|> 分隔符的 ChatML 提示格式，并以 Apache 2.0 发布。<sup>[5](https://huggingface.co/teknium/OpenHermes-2.5-Mistral-7B)</sup><sup> • </sup><sup>[7](https://ollama.com/library/openhermes:v2.5)</sup> [OpenRouter](https://www.edgepedia.org/zh/openrouter) 列出的发布日期为 2023 年 11 月 20 日，上下文窗口为 4,096 个词元，知识截止日期为 2023 年 9 月 30 日。<sup>[6](https://openrouter.ai/teknium/openhermes-2.5-mistral-7b/)</sup>

模型卡称，基于 Mistral-7B 的 Hermes 2.5 优于此前所有 Nous-Hermes 和 Open-Hermes 模型（Hermes 70B 除外），并超越了当时可用的大多数 Mistral 微调模型。其在[开放大语言模型排行榜](https://www.edgepedia.org/zh/open-llm-leaderboard)上的平均分为 57.82，具体分解如下：ARC（25-shot）64.93，[HellaSwag](https://www.edgepedia.org/zh/hellaswag)（10-shot）84.3，MMLU（5-shot）63.82，[TruthfulQA](https://www.edgepedia.org/zh/truthfulqa)（0-shot）52.31，Winogrande（5-shot）77.9，GSM8K（5-shot）25.47，DROP（3-shot）35.99。<sup>[8](https://huggingface.co/teknium/OpenHermes-2.5-Mistral-7B/blob/91dc5b2b9a4954bdb11025471f8c6b500a7ef921/README.md)</sup>

**代码数据效应。** 此次发布被引用最多的发现是，加入代码指令改善了非代码基准的表现。模型卡估计代码数据约占总数据集的 7% 至 14%，并报告 TruthfulQA、AGIEval 和 GPT4All 套件的得分有所提升，同时 BigBench 得分有所下降，总体上取得了显著的净增益。<sup>[6](https://openrouter.ai/teknium/openhermes-2.5-mistral-7b/)</sup> Glaive 的 [HumanEval](https://www.edgepedia.org/zh/humaneval) 测试测得 Open Hermes 2 的 Pass@1 为 43%，Open Hermes 2.5 为 50.7%。<sup>[5](https://huggingface.co/teknium/OpenHermes-2.5-Mistral-7B)</sup>

## 衍生模型与研究用途

该模型和数据集成为社区工作中常见的起点。

学术论文也将该数据集用作标准的指令微调语料库。在 NeurIPS 2024 上提出的 MoICE 方法使用 OpenHermes 中最长的一千条条目训练其上下文感知路由器，并将其描述为一个多源集成数据集，包含高质量的合成生成指令与对话样本。<sup>[11](https://proceedings.neurips.cc/paper_files/paper/2024/file/91315fbb83ce353ae5538cba395f70d1-Paper-Conference.pdf)</sup> 在 [Infinity-Instruct](https://www.edgepedia.org/zh/infinity-instruct) 对比中，OpenHermes-2.5-Mistral-7B 在 MMLU 上得 61.7 分，GSM8K 上得 73.0 分，HumanEval 上得 41.5 分，HellaSwag 上得 80.6 分，平均 64.2 分，高于 Mistral-7B-Instruct-v0.2 的 50.7 分。<sup>[12](https://github.com/FlagOpen/Infinity-Instruct/blob/main/README.md)</sup>

Teknium 后来加入了 Nous Research 的 Hermes 产品线，该产品线推出了 Hermes 3——一个中立对齐的通用指令与工具使用模型，作者称其 405B 版本在多项公开基准上达到了开放权重模型中的最先进水平。<sup>[13](https://arxiv.org/abs/2408.11857)</sup> Hermes 4 技术报告（2025 年）描述了一个混合推理模型系列，所有模型权重均已公开发布。<sup>[14](https://arxiv.org/abs/2508.18255)</sup>

## References

1. [teknium/OpenHermes-2.5 dataset card, Hugging Face](https://huggingface.co/datasets/teknium/OpenHermes-2.5)
2. [teknium/OpenHermes-2.5, Simon Willison's Weblog (1 February 2024)](https://simonwillison.net/2024/Feb/1/open-hermes-25/)
3. [openhermes2_5.json file page, teknium/OpenHermes-2.5, Hugging Face](https://huggingface.co/datasets/teknium/OpenHermes-2.5/blob/main/openhermes2_5.json)
4. [OpenHermes 2.5 — Instruction / SFT Dataset for LLM Training, LLM Configurator](https://llmconfigurator.com/en/datasets/openhermes-2.5/)
5. [teknium/OpenHermes-2.5-Mistral-7B model card, Hugging Face](https://huggingface.co/teknium/OpenHermes-2.5-Mistral-7B)
6. [OpenHermes 2.5 Mistral 7B, OpenRouter](https://openrouter.ai/teknium/openhermes-2.5-mistral-7b/)
7. [openhermes:v2.5, Ollama Library](https://ollama.com/library/openhermes:v2.5)
8. [README.md, teknium/OpenHermes-2.5-Mistral-7B (Open LLM Leaderboard results), Hugging Face](https://huggingface.co/teknium/OpenHermes-2.5-Mistral-7B/blob/91dc5b2b9a4954bdb11025471f8c6b500a7ef921/README.md)
9. [teknium/OpenHermes-13B model card, Hugging Face](https://huggingface.co/teknium/OpenHermes-13B)
10. [teknium model list, Hugging Face](https://huggingface.co/teknium/models)
11. [MoICE paper (NeurIPS 2024 proceedings)](https://proceedings.neurips.cc/paper_files/paper/2024/file/91315fbb83ce353ae5538cba395f70d1-Paper-Conference.pdf)
12. [Infinity-Instruct README, FlagOpen on GitHub](https://github.com/FlagOpen/Infinity-Instruct/blob/main/README.md)
13. [Hermes 3 Technical Report, arXiv:2408.11857](https://arxiv.org/abs/2408.11857)
14. [Hermes 4 Technical Report, arXiv:2508.18255](https://arxiv.org/abs/2508.18255)

---
*Initially written 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/openhermes

English original: https://www.edgepedia.org/openhermes
