SuperAPI AI Directory

OpenELM-450M

OpenELM-450M is a 450 million parameter text generation model in the OpenELM (Open Efficient Language Models) series released by Apple, hosted on Hugging Face. The series adopts a layer-wise scaling strategy to efficiently allocate parameters within each Transformer layer to improve accuracy. OpenELM is pretrained using the CoreNet library and offers pretrained and instruction-tuned versions at four parameter scales: 270M, 450M, 1.1B, and 3B. It also publicly releases a complete framework for data preparation, training, fine-tuning, and evaluation, along with multiple checkpoints and training logs, to promote open research. The pretraining data comprises approximately 1.8 trillion tokens, sourced from RefinedWeb, deduplicated PILE, a RedPajama subset, and a Dolma v1.6 subset. The model can be loaded via the Hugging Face Hub; the repository provides the example generation script generate_openelm.py and supports passing additional generation parameters via generate_kwargs, for example using prompt_lookup_num_tokens for lookup-based speculative generation, or passing a smaller model via assistant_model for model-level speculative generation to accelerate inference. The official notes state that the model is trained on public datasets and provides no safety guarantees; it may produce inaccurate, harmful, biased, or offensive content, and users must conduct their own safety testing and deploy filtering mechanisms.

Open website

About this tool

OpenELM-450M belongs to the OpenELM (Open Efficient Language Models) family of open efficient language models proposed by Apple, with a parameter scale of approximately 0.5B (450 million), released on Hugging Face as a text generation model.

Purpose and design: OpenELM adopts a layer-wise scaling strategy to efficiently allocate parameters within each layer of the Transformer model, thereby improving model accuracy. The series releases both pretrained models and instruction-tuned models, with parameter scales including 270M, 450M, 1.1B, and 3B.

Main capabilities: As a text generation model, OpenELM-450M can generate text based on input prompts. The official provides an example function generate_openelm.py for loading the model via the Hugging Face Hub and generating outputs. Users can pass additional parameters to Hugging Face's generate function via generate_kwargs; for example, passing the prompt_lookup_num_tokens parameter attempts lookup token speculative generation to accelerate inference, or passing a smaller assistant model via the assistant_model parameter for model-level speculative generation.

Training and open resources: OpenELM models are pretrained using the CoreNet library. The official releases a complete framework covering data preparation, training, fine-tuning, and evaluation processes, along with multiple pretrained checkpoints and training logs, to support open research. The pretraining dataset includes RefinedWeb, deduplicated PILE, a subset of RedPajama, and a subset of Dolma v1.6, totaling approximately 1.8 trillion tokens; the official reminds users to check the license agreements and terms of these datasets before use.

Usage: The model is hosted on Hugging Face and can be downloaded, have its files browsed, and be run online. Before use, dependencies must be installed according to the official instructions, and a Hugging Face access token obtained by referring to the link. The repository provides an example generation script; the specific installation commands and run commands are not fully given in the materials and are not provided here.

Applicable scenarios: Suitable for open research, language model experiments, exploration of text generation tasks, and fine-tuning and evaluation based on public checkpointsand other research purposes.

Limitations and risks: The official explicitly states that these models are trained on public datasets and are released without any safety guarantees, and may generate inaccurate, harmful, biased, or offensive content in response to user prompts. Therefore, users and developers need to conduct thorough safety testing according to their own needs and implement appropriate filtering mechanisms. The materials do not provide specific information such as fees, pricing, or commercial use terms.