7B 全开源 Moxin-LLM/VLM——从预训练到基于 GRPO 的强化学习增强
7B Fully Open Source Moxin-LLM/VLM -- From Pretraining to GRPO-based Reinforcement Learning Enhancement
AI总结:
本文推出完全开源的 7B 模型 Moxin-LLM/VLM,公开预训练代码、数据与检查点,并通过指令微调、DeepSeek R1 思维链蒸馏及 GRPO 强化学习构建推理模型,在多项评估中取得优异表现。
摘要:
近年来,大语言模型(LLMs)经历了重大变革,其受欢迎程度和能力均迅速提升。引领这一发展的是 GPT-4 和 GPT-o1 等专有 LLM,它们凭借卓越的性能和多功能性在人工智能界引起了广泛关注。与此同时,LLaMA 等开源 LLM 由于易于在不同应用中定制和部署,也为 LLM 日益增长的普及做出了巨大贡献。尽管开源 LLM 为创新和研究带来了前所未有的机遇,但 LLM 的商业化引发了人们对透明度、可复现性和安全性的担忧。许多开源 LLM 因保留训练代码和数据等关键组件而未能满足基本的透明度要求,这可能阻碍 LLM 的进一步创新。为缓解这一问题,我们推出了 Moxin 7B,这是一个完全开源的 LLM,其开发遵循开放科学、开放源代码、开放数据和开放获取的原则。我们发布了预训练代码和配置、训练和微调数据集以及中间和最终检查点,旨在持续致力于完全开源的 LLM。在预训练基础模型之后,我们使用 SOTA 后训练框架和指令数据对 Moxin Base 模型进行微调,以获得 Moxin Instruct 模型。为了提高推理能力,我们进一步使用从 DeepSeek R1 蒸馏的思维链数据微调我们的 Instruct 模型,然后按照 DeepSeek R1 的方法使用分组相对策略优化(GRPO)对模型进行微调,从而得到 Moxin Reasoning 模型。此外,我们基于 Moxin 模型开发了视觉语言模型。实验表明,我们的模型在零样本评估、少样本评估和 CoT 评估等各种评估中均取得了优异的性能。
英文摘要:
Recently, Large Language Models (LLMs) have undergone a significant transformation, marked by a rapid rise in both their popularity and capabilities. Leading this evolution are proprietary LLMs like GPT-4 and GPT-o1, which have captured widespread attention in the AI community due to their remarkable performance and versatility. Simultaneously, open-source LLMs, such as LLaMA, have made great contributions to the ever-increasing popularity of LLMs due to the ease to customize and deploy the models across diverse applications. Although open-source LLMs present unprecedented opportunities for innovation and research, the commercialization of LLMs has raised concerns about transparency, reproducibility, and safety. Many open-source LLMs fail to meet fundamental transparency requirements by withholding essential components like training code and data, which may hinder further innovations on LLMs. To mitigate this issue, we introduce Moxin 7B, a fully open-source LLM developed, adhering to principles of open science, open source, open data, and open access. We release the pre-training code and configurations, training and fine-tuning datasets, and intermediate and final checkpoints, aiming to make continuous commitments to fully open-source LLMs. After pre-training the base model, we finetune the Moxin Base model with SOTA post-training framework and instruction data to obtain Moxin Instruct model. To improve the reasoning capability, we further finetune our Instruct model with chain-of-thought data distilled from DeepSeek R1, and then use Group Relative Policy Optimization (GRPO) following DeepSeek R1 to finetune our model, leading to the Moxin Reasoning model. Moreover, we develop our vision language model based on our Moxin model. Experiments show that our models achieve superior performance in various evaluations such as zero-shot evaluation, few-shot evaluation, and CoT evaluation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。