{"slug": "olmicro-five-hybrid-base-models-from-ai2-from-275m-to-2-7b-parameters", "title": "Olmicro: Five hybrid base models from Ai2, from 275M to 2.7B parameters", "summary": "Ai2 released Olmicro, a fully open suite of five hybrid base language models ranging from 275M to 2.7B parameters, published with all 1,707 intermediate checkpoints across three training stages (pretraining, midtraining and long-context extension). Each checkpoint is available as a branch of its Hugging Face model repo and as a folder in an Olmo-core training bucket with optimizer state, and the accompanying GitHub repository provides code to train, resume, evaluate, convert and run the models. Inference runs through transformers 5.12–5.16 with torch 2.11.0 and flash-linear-attention 0.5.2 for the fast Gated DeltaNet kernels, falling back to a slower PyTorch path without that package.", "body_md": "Olmicro is a fully open, controlled suite of five hybrid base language models from Ai2, from 275M to 2.7B\nparameters, released with every intermediate checkpoint. This repository has the code to train, resume, evaluate,\nconvert and run them. For the models themselves (architecture, data, hyperparameters and evaluations), see the\n[tech report](https://allenai.org/papers/olmicro).\n\n[Paper](https://allenai.org/papers/olmicro) · [Models](https://huggingface.co/collections/allenai/olmicro-6afa148b120d5e7cae0286e1) ·\n[Evaluations](https://huggingface.co/buckets/allenai/olmicro-evaluations)\n\nFive base models, three training stages each, 1,707 checkpoints in all\n([collection](https://huggingface.co/collections/allenai/olmicro-6afa148b120d5e7cae0286e1),\n[details](https://github.com/allenai/olmicro/blob/main/docs/checkpoints.md)).\n\n| Model | Hugging Face weights (every checkpoint a branch) | Olmo-core training checkpoints (with optimizer state) | \n|---|---|---|\n| Olmicro 275M | [allenai/olmicro-275m-base](https://huggingface.co/allenai/olmicro-275m-base) | [allenai/olmicro-275m-base](https://huggingface.co/buckets/allenai/olmicro-275m-base) (bucket) | \n| Olmicro 450M | [allenai/olmicro-450m-base](https://huggingface.co/allenai/olmicro-450m-base) | [allenai/olmicro-450m-base](https://huggingface.co/buckets/allenai/olmicro-450m-base) (bucket) | \n| Olmicro 810M | [allenai/olmicro-810m-base](https://huggingface.co/allenai/olmicro-810m-base) | [allenai/olmicro-810m-base](https://huggingface.co/buckets/allenai/olmicro-810m-base) (bucket) | \n| Olmicro 1.4B | [allenai/olmicro-1.4b-base](https://huggingface.co/allenai/olmicro-1.4b-base) | [allenai/olmicro-1.4b-base](https://huggingface.co/buckets/allenai/olmicro-1.4b-base) (bucket) | \n| Olmicro 2.7B | [allenai/olmicro-2.7b-base](https://huggingface.co/allenai/olmicro-2.7b-base) | [allenai/olmicro-2.7b-base](https://huggingface.co/buckets/allenai/olmicro-2.7b-base) (bucket) | \n\nEvery checkpoint is a branch of the model repo, `stage<k>-step<7-digit step>` (1 = pretraining, 2 = midtraining,\n3 = long-context extension), and a folder of the bucket, `stage<k>/checkpoints/step<7-digit step>/`. `main` is the final\nlong-context extension checkpoint.\n\n**Inference with transformers** (no install from this repo needed):\n\n```\npip install \"torch==2.11.0\" \"transformers>=5.12,<5.16\" \"flash-linear-attention==0.5.2\"\n# or, with uv, into a new virtualenv\nuv venv --python 3.12 && source .venv/bin/activate\nuv pip install \"torch==2.11.0\" \"transformers>=5.12,<5.16\" \"flash-linear-attention==0.5.2\"\npython\nimport torch\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nrepo = \"allenai/olmicro-1.4b-base\"\ntok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)\nmodel = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, dtype=torch.bfloat16).to(\"cuda\")\ninputs = tok(\"The capital of France is\", return_tensors=\"pt\").to(\"cuda\")\nprint(tok.decode(model.generate(**inputs, max_new_tokens=20)[0]))\n```\n\nPass `revision=\"stage1-step0100000\"` (any branch name) to `from_pretrained` to load an intermediate checkpoint.\n`flash-linear-attention` provides the fast Gated DeltaNet kernels; without it, the model falls back to a much slower\nPyTorch path. From a clone of this repository (see below), `uv run scripts/inference/hf_generate.py allenai/olmicro-1.4b-base \"The capital of France is\"` does the same.\n\n**To train, resume, convert checkpoints or use the other scripts**, set up this repository's environment with\n[uv](https://docs.astral.sh/uv/):\n\n```\ngit clone https://github.com/allenai/olmicro && cd olmicro\nuv sync\n```\n\nThis creates `.venv` with everything needed to train, resume from a released checkpoint, run inference with\ntransformers and convert checkpoints. A few features need extra packages that `uv sync` does not install:\n\n| To | Install | \n|---|---|\n| run inference with vLLM | `uv pip install --python .venv/bin/python ./plugins/vllm_plugin` (vLLM 0.25 and the vLLM plugin) | \n| train with FlashAttention 2 on A100 / Ampere GPUs | `uv pip install --python .venv/bin/python flash-attn --no-build-isolation` (compiles against the installed torch; needs the CUDA toolkit) | \n| train with FlashAttention 3 on H100 / Hopper GPUs | no wheel: build it from the `hopper/` directory of[flash-attention](https://github.com/Dao-AILab/flash-attention) into`.venv` | \n| train with FlashAttention 4 on B200 / B300 / Blackwell GPUs | `uv pip install --python .venv/bin/python \"flash-attn-4[cu13]==4.0.0b19\" \"quack-kernels==0.5.3\"` | \n| run downstream evals during training ( `--downstream-evals` ) | `uv pip install --python .venv/bin/python ai2-olmo-eval==0.9.0` | \n| log training to W&B ( `--wandb-project` ) | `uv pip install --python .venv/bin/python \"wandb<0.29\"` | \n\nTraining uses the FlashAttention version for your GPU if it is installed, and PyTorch SDPA otherwise (the same model, slightly different numerics). Install only the one for your GPU.\n\nWhen adding packages:\n\n- Keep `--python .venv/bin/python` : without it,`uv pip install` installs into any virtualenv or conda environment\nthat is active in your shell instead of`.venv` . If you set`UV_PROJECT_ENVIRONMENT` , point`--python` at that\nenvironment instead.\n- A later `uv sync` removes these packages again; use`uv sync --inexact` to keep them.\n- vLLM and FlashAttention 4 can't share an environment (their `apache-tvm-ffi` pins conflict, and training then\nfails at the first step). Use a separate clone or environment for each.\n- The pins matter: newer quack-kernels crash FlashAttention 4's backward pass, and wandb 0.29+ fails at the end of every run with Olmo-core 2.6.0.\n\nTo reproduce the released evaluations you need none of these: `scripts/eval/olmo_eval/run.py` sets up olmo-eval in\nits own environment.\n\nRun from the repository root. Training commands use 8 GPUs; see [training](https://github.com/allenai/olmicro/blob/main/docs/training.md) for other counts.\n\n```\n# Run inference with vLLM (after installing the vLLM plugin, above)\nuv run scripts/inference/vllm_generate.py allenai/olmicro-1.4b-base \"The capital of France is\"\n\n# Download a released Olmo-core checkpoint (weights, optimizer and data-loader state)\nuv run scripts/download_checkpoint.py --size 275m --stage 1 --step final --out ckpts/275m-s1-final\n\n# Convert an Olmo-core checkpoint to a transformers model directory\nuv run scripts/convert/convert_olmo_core_to_hf.py ckpts/275m-s1-final hf/275m-s1-final\n\n# Pretrain from scratch on the public data\nuv run torchrun --nproc-per-node 8 scripts/train/pretrain.py --size 275m --save-folder runs/275m-s1\n\n# Smoke test: any training command, stopped after ten steps and without in-loop evals\nuv run torchrun --nproc-per-node 8 scripts/train/pretrain.py --size 275m --save-folder /tmp/smoke --no-evals \\\n    '--trainer.hard_stop={value: 10, unit: steps}'\n\n# Start the next stage from the previous stage's final checkpoint. --load-path loads the weights only:\n# the stage starts at step 0 with a fresh optimizer, as the original runs did.\nuv run torchrun --nproc-per-node 8 scripts/train/midtrain.py --size 275m --save-folder runs/275m-s2 \\\n    --load-path ckpts/275m-s1-final\n\n# Resume an interrupted run: re-run the same command (it continues from the latest checkpoint\n# in --save-folder). To continue from another checkpoint of the same stage, e.g. a released one,\n# use --resume with a new --save-folder (a folder that already has checkpoints wins over --resume).\n# It restores the weights, optimizer, step and data position:\nuv run scripts/download_checkpoint.py --size 275m --stage 1 --step 100000 --out ckpts/275m-s1-step100000\nuv run torchrun --nproc-per-node 8 scripts/train/pretrain.py --size 275m \\\n    --save-folder runs/275m-s1-from-100k --resume ckpts/275m-s1-step100000\n\n# Evaluate with olmo-eval, the released evaluations' harness\nuv run scripts/eval/olmo_eval/run.py allenai/olmicro-1.4b-base\n```\n\nDetails: [checkpoints](https://github.com/allenai/olmicro/blob/main/docs/checkpoints.md), [training](https://github.com/allenai/olmicro/blob/main/docs/training.md) (including\n[resuming](https://github.com/allenai/olmicro/blob/main/docs/training.md#resuming)), [evaluation](https://github.com/allenai/olmicro/blob/main/docs/evaluation.md), [inference and conversion](https://github.com/allenai/olmicro/blob/main/docs/inference.md).\n\nAll training data is read from the public mirror `https://olmo-data.org` (no credentials needed). The training\ndata is licensed under ODC-BY 1.0. It is intended for research and educational use in accordance with\n[Ai2's Responsible Use Guidelines](https://allenai.org/responsible-use).\n\n- **Pretraining is reproducible from public data:** the same data in the same order, and the same hyperparameters\nand seeds. Resuming from a released checkpoint reproduces the logged loss step by step: per-step differences\nare about 1e-3 over the first 100 steps (about 4e-2 if the batches differ), with no drift over 1,000 steps.\nResults are not bitwise identical across GPU types, attention kernels or GPU counts. From scratch, the initial\nweights depend on the GPU type and sharding, so they match in distribution rather than bit for bit.\n- **Midtraining and long-context extension** use the runs' hyperparameters, seeds and token budgets on public data:\n  - **Midtraining** runs on Olmo Hybrid's public midtraining data, which for 275m, 450m and 2.7b is exactly the\ndata our runs used (fingerprints match). For 810m and 1.4b, 0.18% of the tokens differ.\n  - **Long-context extension** runs on Olmo Hybrid's public long-context mix (a different sample from our runs, whose\nexact data is not public).\n\nDetails: [training](https://github.com/allenai/olmicro/blob/main/docs/training.md#setup). The checks behind these statements (configs, data fingerprints,\ninitialization, loss, conversion parity) and the provenance of every run (commits, hardware, restarts) are on the\n[`testing`](https://github.com/allenai/olmicro/tree/testing) branch.\n\n```\nsrc/olmicro/        recipes (per size x stage hyperparameters), model and data configs, checkpoint helpers\nscripts/train/      pretrain.py, midtrain.py, long_context.py (torchrun; --dry-run prints the full config)\nscripts/eval/       olmo-eval template (the released evals' setup)\nscripts/inference/  transformers and vLLM generation\nscripts/convert/    olmo-core -> transformers checkpoint conversion\nplugins/            transformers and vLLM plugins (see below)\ndocs/               checkpoints, training, evaluation, inference\n```\n\nThe models use the `olmicro` architecture, which is not in transformers or vLLM yet. Until it is:\n\n- **transformers** : each model repo ships its modeling code, so`trust_remote_code=True` is enough.[`plugins/transformers_plugin`](https://github.com/allenai/olmicro/blob/main/plugins/transformers_plugin) registers the same code with the`Auto*` classes\nand holds the Olmo-core -> HF weight converter.\n- **vLLM** :[`plugins/vllm_plugin`](https://github.com/allenai/olmicro/blob/main/plugins/vllm_plugin) registers the architecture with stock vLLM. It is a\nstandalone package, not part of`uv sync` (to install it, see[Quickstart](#quickstart) ). It also needs`transformers_plugin` , which`uv sync` already installs; in another environment, install both at the same git\nref (see its README).\n\nBoth are bridges: once upstream support lands, the plugins (and their class names) may change.\n\nThe code is licensed under Apache 2.0 (see [LICENSE](https://github.com/allenai/olmicro/blob/main/LICENSE)); third-party components are listed in\n[THIRD_PARTY_NOTICES.md](https://github.com/allenai/olmicro/blob/main/THIRD_PARTY_NOTICES.md). The Olmicro models are licensed under Apache 2.0. They are\nintended for research and educational use in accordance with\n[Ai2's Responsible Use Guidelines](https://allenai.org/responsible-use).\n\n```\n@techreport{samaga2026olmicro,\n  title       = {{Olmicro}: Scaling Down to Accelerate the Science of Language Models},\n  author      = {Yashas Samaga and Saumya Malik and Malia Morgan and Jacob Morrison and Tyler Murray and Michael Noukhovitch and Jackson Petty and Noah A. Smith and William Merrill},\n  institution = {Allen Institute for AI},\n  year        = {2026},\n  month       = nov,\n  url         = {https://allenai.org/papers/olmicro}\n}\n```\n\n", "url": "https://wpnews.pro/news/olmicro-five-hybrid-base-models-from-ai2-from-275m-to-2-7b-parameters", "canonical_source": "https://github.com/allenai/olmicro", "published_at": "2026-12-01 06:55:09+00:00", "updated_at": "2026-12-01 07:15:51.161706+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-research", "machine-learning", "ai-tools"], "entities": ["Ai2", "Olmicro", "Hugging Face", "Olmo-core", "transformers", "flash-linear-attention", "vLLM", "Gated DeltaNet"], "also_reported_by": [], "takeaway": "Ai2's Olmicro models load in transformers 5.12–5.16 with torch 2.11.0 and flash-linear-attention 0.5.2, and any of the 1,707 checkpoints can be selected by passing a branch name such as revision=\"stage1-step0100000\" to from_pretrained.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/olmicro-five-hybrid-base-models-from-ai2-from-275m-to-2-7b-parameters", "markdown": "https://wpnews.pro/news/olmicro-five-hybrid-base-models-from-ai2-from-275m-to-2-7b-parameters.md", "text": "https://wpnews.pro/news/olmicro-five-hybrid-base-models-from-ai2-from-275m-to-2-7b-parameters.txt", "jsonld": "https://wpnews.pro/news/olmicro-five-hybrid-base-models-from-ai2-from-275m-to-2-7b-parameters.jsonld"}}