Model reference · open weights

OpenELM

Available as managed deployment Licence fee LLMs apple Text gen 1 variants 610 dl/mo

OpenELM is an open-weight language model from apple. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

Released byapple
TypeLanguage models
TaskText gen
Parameters (lead)3.0B
Runs withtransformers
Released2024-04-12
Popularity610 downloads / month
LicenceCommercial licence needed

About

What OpenELM is

Sachin Mehta, Mohammad Hossein Sekhavat, Qingqing Cao, Maxwell Horton, Yanzi Jin, Chenfan Sun, Iman Mirzadeh, Mahyar Najibi, Dmitry Belenko, Peter Zatloukal, Mohammad Rastegari

We introduce OpenELM, a family of Open Efficient Language Models. OpenELM uses a layer-wise scaling strategy to efficiently allocate parameters within each layer of the transformer model, leading to enhanced accuracy. We pretrained OpenELM models using the CoreNet library. We release both pretrained and instruction tuned models with 270M, 450M, 1.1B and 3B parameters. We release the complete framework, encompassing data preparation, training, fine-tuning, and evaluation procedures, alongside multiple pre-trained checkpoints and training logs, to facilitate open research.

Our pre-training dataset contains RefinedWeb, deduplicated PILE, a subset of RedPajama, and a subset of Dolma v1.6, totaling approximately 1.8 trillion tokens. Please check license agreements and terms of these datasets before using them.

Read the full model card

Usage

We have provided an example function to generate output from OpenELM models loaded via HuggingFace Hub in generate_openelm.py.

You can try the model by running the following command:

python generate_openelm.py --model apple/OpenELM-3B-Instruct --hf_access_token [HF_ACCESS_TOKEN] --prompt 'Once upon a time there was' --generate_kwargs repetition_penalty=1.2

Please refer to this link to obtain your hugging face access token.

Additional arguments to the hugging face generate function can be passed via generate_kwargs. As an example, to speedup the inference, you can try lookup token speculative generation by passing the prompt_lookup_num_tokens argument as follows:

python generate_openelm.py --model apple/OpenELM-3B-Instruct --hf_access_token [HF_ACCESS_TOKEN] --prompt 'Once upon a time there was' --generate_kwargs repetition_penalty=1.2 prompt_lookup_num_tokens=10

Alternatively, try model-wise speculative generation with an assistive model by passing a smaller model through the assistant_model argument, for example:

python generate_openelm.py --model apple/OpenELM-3B-Instruct --hf_access_token [HF_ACCESS_TOKEN] --prompt 'Once upon a time there was' --generate_kwargs repetition_penalty=1.2 --assistant_model [SMALLER_MODEL]

Main Results

Zero-Shot

Model SizeARC-cARC-eBoolQHellaSwagPIQASciQWinoGrandeAverage
OpenELM-270M26.4545.0853.9846.7169.7584.7053.9154.37
OpenELM-270M-Instruct30.5546.6848.5652.0770.7884.4052.7255.11
OpenELM-450M27.5648.0655.7853.9772.3187.2058.0157.56
OpenELM-450M-Instruct30.3850.0060.3759.3472.6388.0058.9659.95
OpenELM-1_1B32.3455.4363.5864.8175.5790.6061.7263.44
OpenELM-1_1B-Instruct37.9752.2370.0071.2075.0389.3062.7565.50
OpenELM-3B35.5859.8967.4072.4478.2492.7065.5167.39
OpenELM-3B-Instruct39.4261.7468.1776.3679.0092.5066.8569.15

LLM360

Model SizeARC-cHellaSwagMMLUTruthfulQAWinoGrandeAverage
OpenELM-270M27.6547.1525.7239.2453.8338.72
OpenELM-270M-Instruct32.5151.5826.7038.7253.2040.54
OpenELM-450M30.2053.8626.0140.1857.2241.50
OpenELM-450M-Instruct33.5359.3125.4140.4858.3343.41
OpenELM-1_1B36.6965.7127.0536.9863.2245.93
OpenELM-1_1B-Instruct41.5571.8325.6545.9564.7249.94
OpenELM-3B42.2473.2826.7634.9867.2548.90
[OpenELM-3B-Instruct](https

From the published model card. Full card on the HuggingFace links in the sidebar.

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys openelm for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (openelm below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/chat/completions \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openelm","messages":[{"role":"user","content":"Hello"}]}'

Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms