OpenELM: An Efficient Language Model Family with Open Training and Inference Framework

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Mehta, Sachin, Sekhavat, Mohammad Hossein, Cao, Qingqing, Horton, Maxwell, Jin, Yanzi, Sun, Chenfan, Mirzadeh, Iman, Najibi, Mahyar, Belenko, Dmitry, Zatloukal, Peter, Rastegari, Mohammad
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911862454484992
author Mehta, Sachin
Sekhavat, Mohammad Hossein
Cao, Qingqing
Horton, Maxwell
Jin, Yanzi
Sun, Chenfan
Mirzadeh, Iman
Najibi, Mahyar
Belenko, Dmitry
Zatloukal, Peter
Rastegari, Mohammad
author_facet Mehta, Sachin
Sekhavat, Mohammad Hossein
Cao, Qingqing
Horton, Maxwell
Jin, Yanzi
Sun, Chenfan
Mirzadeh, Iman
Najibi, Mahyar
Belenko, Dmitry
Zatloukal, Peter
Rastegari, Mohammad
contents 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}.
format Preprint
id arxiv_https___arxiv_org_abs_2404_14619
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle OpenELM: An Efficient Language Model Family with Open Training and Inference Framework
Mehta, Sachin
Sekhavat, Mohammad Hossein
Cao, Qingqing
Horton, Maxwell
Jin, Yanzi
Sun, Chenfan
Mirzadeh, Iman
Najibi, Mahyar
Belenko, Dmitry
Zatloukal, Peter
Rastegari, Mohammad
Computation and Language
Artificial Intelligence
Machine Learning
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}.
title OpenELM: An Efficient Language Model Family with Open Training and Inference Framework
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2404.14619