SuperAPI AI Directory

OpenELM-3B-Instruct

OpenELM-3B-Instruct is the 3-billion-parameter instruction-tuned version in the series of open-source efficient language models released by Apple, employing a layer-wise scaling strategy to efficiently allocate parameters across the layers of the Transformer to improve accuracy. The model was pretrained based on the CoreNet library, with pretraining data of approximately 1.8 trillion tokens, covering RefinedWeb, deduplicated PILE, a RedPajama subset, and a Dolma v1.6 subset. The model is hosted on Hugging Face and provides a complete framework (data preparation, training, fine-tuning, evaluation) as well as multiple pretrained checkpoints and training logs for open research use. The model comes with no safety guarantees and may produce inaccurate, harmful, biased, or offensive content; users must conduct their own safety testing and filtering.

Open website

About this tool

OpenELM-3B-Instruct is an instruction-tuned model in the OpenELM (Open Efficient Language Models) series launched by Apple, with 3 billion parameters. The series also includes pretrained and instruction-tuned versions with 270M, 450M, and 1.1B parameters.

Purpose: OpenELM aims to provide the open research community with access to advanced language models, supports text generation tasks, and releases a complete framework to promote open research.

Key capabilities: The model employs a layer-wise scaling strategy to efficiently allocate parameters within each layer of the Transformer model, thereby improving accuracy. Pretraining was completed using the CoreNet library, and the pretraining dataset includes RefinedWeb, deduplicated PILE, a RedPajama subset, and a Dolma v1.6 subset, totaling approximately 1.8 trillion tokens. The model provides an instruction-tuned version that can be used for dialogue or instruction-following text generation.

Usage: The model is hosted on the Hugging Face Hub, and users can load it and generate outputs through the provided example function generate_openelm.py. Dependencies must be installed and a Hugging Face access token obtained before running. Additional parameters can be passed to Hugging Face's generate function via generate_kwargs, for example using prompt_lookup_num_tokens for lookup-based speculative generation to accelerate inference, or passing a smaller assistant model through the assistant_model parameter for model-level speculative generation.

Applicable scenarios: Suitable for open research, text generation experiments, language model efficiency research, and similar scenarios.

Limitations: The model was trained on public datasets and comes with no safety guarantees at release; it may generate inaccurate, harmful, biased, or offensive content in response to user prompts. Users and developers must conduct thorough safety testing according to their own needs and implement appropriate filtering mechanisms. The license agreements and terms of the pretraining datasets must be checked before use.