https://github.com/a-m-team/a-m-models
a-m-team's exploration in large language modeling
https://github.com/a-m-team/a-m-models
llm reasoning-language-models
Last synced: about 2 months ago
JSON representation
a-m-team's exploration in large language modeling
- Host: GitHub
- URL: https://github.com/a-m-team/a-m-models
- Owner: a-m-team
- Created: 2025-03-24T06:18:22.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-01T15:03:18.000Z (about 2 months ago)
- Last Synced: 2025-04-01T16:30:38.203Z (about 2 months ago)
- Topics: llm, reasoning-language-models
- Homepage:
- Size: 5 MB
- Stars: 27
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- StarryDivineSky - a-m-team/a-m-models - m-team/a-m-models项目是a-m-team在大语言模型领域的探索。该项目可能包含预训练模型、微调脚本、评估工具或其他与LLM相关的资源。具体内容需要查看项目仓库中的代码和文档。项目目标可能是研究LLM的性能、效率或应用。项目特色取决于具体的模型和方法,可能包括创新的训练技术、独特的模型架构或专门的应用领域。工作原理涉及LLM的训练和推理过程,可能使用Transformer架构或其他先进技术。项目可能提供预训练权重、数据集和示例代码,方便用户使用和研究。请查阅项目文档以获取更详细的信息,例如模型的性能指标、训练数据和使用指南。该项目可能对LLM研究人员和开发者有价值。 (A01_文本生成_文本对话 / 大语言对话模型及数据)
- awesome - a-m-team/a-m-models - a-m-team's exploration in large language modeling (miscellaneous)
README
#
a-m-models [](https://huggingface.co/a-m-team)
*Read this in [English](README_en.md).*
a-m-models 是由 a-m-teams 发起的一个开源项目,致力于对大语言模型(LLMs)以及通用人工智能(AGI)的前沿技术进行深入探索与实践。我们的团队由一群充满热情的研究人员和开发者组成,聚焦于大模型的理论创新、架构设计以及实战应用,旨在逐步逼近通用人工智能(AGI)的实现。本项目旨在开源分享我们在大模型领域的最新研究成果与实践经验,希望能够推动社区对AGI技术的深度交流与共同进步。
## 🔄 最近更新
* [2025-04-01] 更新技术报告 [How Difficulty-Aware Staged Reinforcement Learning Enhances LLMs' Reasoning Capabilities: A Preliminary Experimental Study](https://github.com/a-m-team/a-m-models/blob/main/docs/How-Difficulty-Aware-Staged-Reinforcement-Learning-Enhances-LLMs-Reasoning-Capabilities-A-Preliminary-Experimental-Study.pdf),介绍了一种分阶段训练方法,逐步让模型接触更具挑战性的任务,从而提高其推理能力
* [2025-03-25] 更新技术报告[1.4 Million Open-Source Distilled Reasoning Dataset to Empower Large Language Model Traning](https://github.com/a-m-team/a-m-models/blob/main/docs/AM-DeepSeek-R1-Distilled-Dataset.pdf),开源140万条蒸馏推理数据,复现DeepSeek-R1蒸馏模型效果
* [2025-03-25] 更新技术报告[Think Twice: Enhancing LLM Reasoning by Scaling Multi-round Test-time Thinking](https://github.com/a-m-team/a-m-models/blob/main/docs/Think-Twice.pdf),介绍了一种简单且有效的测试阶段扩展方法——多轮思考,其推动了SOTA模型效果的进一步提升
## 📑 研究报告
### [How Difficulty-Aware Staged Reinforcement Learning Enhances LLMs' Reasoning Capabilities: A Preliminary Experimental Study](https://github.com/a-m-team/a-m-models/blob/main/docs/How-Difficulty-Aware-Staged-Reinforcement-Learning-Enhances-LLMs-Reasoning-Capabilities-A-Preliminary-Experimental-Study.pdf)
提高大语言模型(LLMs)推理能力的效率和规模是人工智能研究中的一个关键挑战。本文研究了难度感知分阶段强化学习(RL)策略如何提升LLM性能。我们表明,基于难度等级选择训练数据有助于强化学习优化。此外,我们提出了一种分阶段训练方法,逐步让模型接触更具挑战性的任务,从而提高其推理能力。我们的结果还强调了在数学推理和代码生成任务上训练模型的显著好处。
#### 1. 数据难度选择
根据适当的难度指标精心选择RL训练数据至关重要。适中的难度水平能够提高学习效率,平衡充分挑战与避免用过于困难的情境压倒学习过程之间的需求。
#### 2. 分阶段训练
通过选择适当具有挑战性的数据并结合分阶段训练,我们可以显著提高LLM在推理任务上的表现。(由于没加入与代码相关的训练数据,模型在LiveCodeBench上的表现与基础模型基本相同。)
#### 3. 数学和代码的同时训练
在训练过程中混合数学推理和代码生成任务可以带来跨领域的提升,强有力地证明了多领域训练的好处。
### [Think Twice: Enhancing LLM Reasoning by Scaling Multi-round Test-time Thinking](https://github.com/a-m-team/a-m-models/blob/main/docs/Think-Twice.pdf)
近年来,以OpenAI-o1和DeepSeek-R1为代表的大语言模型(LLMs)取得了显著进展,这些进展表明,通过测试阶段扩展推理流程(test-time scaling),可显著提升模型表现。然而,目前的模型仍受到处理长文本能力和强化学习(RL)训练效率的限制。为解决这些问题,我们提出了一种简单且有效的测试阶段扩展方法——多轮思考(Multi-round Thinking)。该方法通过将模型先前的回答作为下一轮推理的提示(prompts),迭代地精进模型的推理过程。在包括QwQ-32B和DeepSeek-R1在内的多个模型上的大量实验表明,多轮思考能够在AIME 2024、MATH-500、GPQA-diamond和LiveCodeBench等多个基准测试中稳定提升模型表现。例如,在AIME 2024数据集中,QwQ-32B的准确率从第一轮的80.3%提高到第二轮的82.1%,DeepSeek-R1也表现出了类似的提升,从79.7%提高到82.0%。这些结果证明,多轮思考是一种适用广泛、实施简单且有效提升模型表现的方法,彰显出该方法在未来测试阶段扩展技术发展中的巨大潜力。
The key prompt:
```
Original question prompt
The assistant’s previous answer is: last round answer , and please re-answer.
```
![]()
### 不同基准测试中单轮思考(第1轮)与多轮思考(第2-4轮)的模型表现对比(pass@1)
| **Model** | **Round** | **AIME 2024 pass@1** | **MATH500 pass@1** | **GPQA-Diamond pass@1** | **LiveCodeBench pass@1** | **Average** |
|----------------------------------------|-----------|----------------------|--------------------|-------------------------|--------------------------|-------------|
| **Deepseek-R1** | 1 | 79.7 | 97.6 | 74.0 | 65.3 | 79.2 |
| | **2** | **82.0** | **97.6** | **74.8** | **67.1** | **80.4** |
| **QwQ-32B** | 1 | 80.3 | 97.2 | 65.9 | 63.0 | 76.6 |
| | 2 | 82.1 | 97.8 | 67.2 | 64.7 | 78.0 |
| | 3 | 82.8 | 97.8 | 67.5 | 65.2 | 78.3 |
| | **4** | **83.1** | **97.7** | **68.1** | **66.0** | **78.7** |
| **DeepSeek-R1-Distill-Qwen-32B** | 1 | 72.0 | 96.0 | 60.1 | 57.0 | 71.3 |
| | **2** | **75.1** | **96.3** | **61.3** | **57.6** | **72.6** |
| **DeepSeek-R1-Distill-Qwen-7B** | 1 | 56.9 | 93.4 | 49.2 | 35.0 | 58.6 |
| | **2** | **58.4** | **93.9** | **49.4** | **36.7** | **59.6** |
| **AM-Distill-Qwen-32B** | 1 | 72.8 | 96.2 | 62.3 | 58.3 | 72.4 |
| | **2** | **76.7** | **97.2** | **62.8** | **60.2** | **74.2** |---
---### [1.4 Million Open-Source Distilled Reasoning Dataset to Empower Large Language Model Traning](https://github.com/a-m-team/a-m-models/blob/main/docs/AM-DeepSeek-R1-Distilled-Dataset.pdf) [](https://huggingface.co/datasets/a-m-team/AM-DeepSeek-R1-Distilled-1.4M)
AM-DeepSeek-R1-Distilled 是一个大规模、带有推理过程的通用推理任务数据集,包含大量高质量且具备挑战性的推理问题。这些问题收集自多个开源数据集,经过语义去重和精细清理,以消除可能的测试集污染风险。数据集中所有的答案均由推理模型(主要为 DeepSeek-R1)蒸馏而成,并经过严格的验证流程:数学问题通过与标准答案对比进行验证,代码问题通过测试用例进行核验,而其他类型任务则通过奖励模型进行评估。基于该数据集仅使用简单监督微调(SFT)训练的 AM-Distill-Qwen-32B 模型,在 AIME2024、MATH-500、GPQA-Diamond 以及 LiveCodeBench 四项基准测试上,均超越了DeepSeek-R1-Distill-Qwen-32B 模型。为了推动更强大的推理导向大语言模型(LLMs)发展,我们开源了这140万条问题及其对应的答案。该数据集已公开在
## Citation
如果您觉得我们的工作对您的研究有所帮助,欢迎给我们点个星 :star:, 并引用我们的工作:pencil:
```BibTeX
@misc{ji2025difficultyawarestagedreinforcementlearning,
title={How Difficulty-Aware Staged Reinforcement Learning Enhances LLMs' Reasoning Capabilities: A Preliminary Experimental Study},
author={Yunjie Ji and Sitong Zhao and Xiaoyu Tian and Haotian Wang and Shuaiting Chen and Yiping Peng and Han Zhao and Xiangang Li},
year={2025},
eprint={2504.00829},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2504.00829},
}@misc{tian2025thinktwiceenhancingllm,
title={Think Twice: Enhancing LLM Reasoning by Scaling Multi-round Test-time Thinking},
author={Xiaoyu Tian and Sitong Zhao and Haotian Wang and Shuaiting Chen and Yunjie Ji and Yiping Peng and Han Zhao and Xiangang Li},
year={2025},
eprint={2503.19855},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2503.19855},
}@misc{zhao202514millionopensourcedistilled,
title={1.4 Million Open-Source Distilled Reasoning Dataset to Empower Large Language Model Training},
author={Han Zhao and Haotian Wang and Yiping Peng and Sitong Zhao and Xiaoyu Tian and Shuaiting Chen and Yunjie Ji and Xiangang Li},
year={2025},
eprint={2503.19633},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2503.19633},
}```