OpenELM:一个具有开放训练与推理框架的高效语言模型家族
OpenELM: An Efficient Language Model Family with Open Training and Inference Framework
AI总结:
OpenELM 通过逐层缩放策略高效分配 Transformer 各层参数,在约十亿参数规模下以更少预训练 token 超越 OLMo,并完整开放训练、评估与推理框架,推动开放研究可复现性。
摘要:
大型语言模型的可复现性和透明度对于推进开放研究、确保结果的可信度以及支持对数据和模型偏差及潜在风险的研究至关重要。为此,我们发布了 OpenELM,一个最先进的开放语言模型。OpenELM 采用逐层缩放策略,在 Transformer 模型的每一层中高效分配参数,从而提升准确率。例如,在约十亿参数的预算下,OpenELM 的准确率相比 OLMo 提高了 2.36%,同时所需的预训练 token 数量减少了 2 倍。与以往仅提供模型权重和推理代码并在私有数据集上进行预训练的做法不同,我们的发布内容包括在公开数据集上训练和评估语言模型的完整框架,涵盖训练日志、多个检查点和预训练配置。我们还发布了将模型转换为 MLX 库的代码,以便在 Apple 设备上进行推理和微调。这一全面发布旨在赋能并加强开放研究社区,为未来的开放研究工作铺平道路。我们的源代码以及预训练模型权重和训练配方可在 https://github.com/apple/corenet 获取。此外,OpenELM 模型可在 HuggingFace 上找到:https://huggingface.co/apple/OpenELM。
英文摘要:
The reproducibility and transparency of large language models are crucial for advancing open research, ensuring the trustworthiness of results, and enabling investigations into data and model biases, as well as potential risks. To this end, we release OpenELM, a state-of-the-art open language model. OpenELM uses a layer-wise scaling strategy to efficiently allocate parameters within each layer of the transformer model, leading to enhanced accuracy. For example, with a parameter budget of approximately one billion parameters, OpenELM exhibits a 2.36% improvement in accuracy compared to OLMo while requiring $2\times$ fewer pre-training tokens. Diverging from prior practices that only provide model weights and inference code, and pre-train on private datasets, our release includes the complete framework for training and evaluation of the language model on publicly available datasets, including training logs, multiple checkpoints, and pre-training configurations. We also release code to convert models to MLX library for inference and fine-tuning on Apple devices. This comprehensive release aims to empower and strengthen the open research community, paving the way for future open research endeavors. Our source code along with pre-trained model weights and training recipes is available at \url{https://github.com/apple/corenet}. Additionally, \model models can be found on HuggingFace at: \url{https://huggingface.co/apple/OpenELM}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。