OpenELM is a family of open-source efficient language models introduced by Apple, with the related paper titled "OpenELM: An Efficient Language Model Family with Open Training and Inference Framework." The core feature of this model family is the use of a layer-wise scaling strategy to efficiently allocate parameters within each layer of the Transformer model, thereby improving model accuracy.
Key capabilities and model specifications: OpenELM offers both pretrained and instruction-tuned versions, with parameter scales including 270M, 450M, 1.1B, and 3B. The instruction-tuned versions include OpenELM-270M-Instruct, OpenELM-450M-Instruct, OpenELM-1_1B-Instruct, and OpenELM-3B-Instruct. The pretraining dataset consists of RefinedWeb, deduplicated PILE, a RedPajama subset, and a Dolma v1.6 subset, totaling approximately 1.8 trillion tokens. The models are pretrained using the CoreNet library.
Usage: The models are hosted on the Hugging Face Hub, where users can download them, browse files, and run them. The official example function generate_openelm.py is provided for generating outputs from OpenELM models loaded via the Hugging Face Hub. Running the models requires obtaining a Hugging Face access token. Users can pass additional parameters to Hugging Face's generate function via generate_kwargs. For example, to accelerate inference, users can pass the prompt_lookup_num_tokens parameter to attempt prompt lookup token speculative generation, or pass a smaller model via the assistant_model parameter to attempt model-level speculative generation using an assistant model. The official documentation also provides dependency installation instructions and methods for evaluating OpenELM, and mentions the OpenLLM Leaderboard and technical report for more results and comparisons.
Applicable scenarios: OpenELM is intended for the open research community and is suitable for users who need an open-source language model for research, experimentation, and development. Because it offers multiple parameter scales, it can accommodate different computational resource conditions.
Limitations and risks: The official documentation explicitly statesthat OpenELM models are trained on public datasets and provide no safety guarantees at release. The models may generate inaccurate, harmful, biased, or offensive content in response to user prompts. Therefore, users and developers must conduct thorough safety testing according to their own needs and implement appropriate filtering mechanisms. In addition, before using the pretraining datasets, the relevant license agreements and terms of each dataset must be checked.