Getting One Running
This chapter is the honest state of play on release week, and it starts with the sentence the rest of the series usually gets to save for later: the friendly tools cannot run Olmicro yet. What works today is Python. This chapter shows that path, verifies it, and then says plainly where Ollama, llama.cpp and LM Studio stand — because "download it and chat" is the route most readers will try first, and it currently ends in an error message.
Why the usual tools say no
Olmicro's architecture is new. Its
Hugging Face configuration names a
model type, olmicro, that the
standard tools do not know yet:
- Transformers, the reference Python
library, does not have the
architecture built in. Ai2 ships the
architecture code inside each model
repository (the files
configuration_olmicro.pyandmodeling_olmicro.py), and you load it by telling Transformers to trust and run that code. - llama.cpp — the engine underneath Ollama and LM Studio — supports other Gated DeltaNet hybrids (Qwen3-Next, Falcon-H1), but as of this guide's verification it has no Olmicro architecture and its converter has no Olmicro mapping. No GGUF files — the format those tools consume — exist for Olmicro, from Ai2 or anyone else.
- Ollama's library has no
olmicroentry (the lab checked; the page returns 404).
This is the normal shape of a research release: the reference implementation first, the convenience tools later, if the model catches on. When llama.cpp support lands, this chapter's second half becomes a short paragraph. Until then, treat any website offering "Olmicro GGUF" downloads with the suspicion you would give any too-convenient file.
The path that works: Python and Transformers
You need Python 3, and the three packages Ai2's model card specifies. The lab used exactly these versions:
pip install "torch==2.11.0" "transformers>=5.12,<5.16" \
"flash-linear-attention==0.5.2"
- torch is the arithmetic engine. Install the build for your machine — the CPU build if you have no suitable graphics card, the CUDA build if you do. The lab's machine has no GPU and used the CPU build throughout.
- transformers is the library that loads models from Hugging Face.
- flash-linear-attention provides fast kernels for the Gated DeltaNet layers. It needs a GPU. Without it — on the lab's CPU machine, for instance — the model falls back to a plain PyTorch implementation and prints a notice saying so. It still runs; it runs slower. Nothing in this guide needed the fast path.
Then the whole of it, from the model card, with the one flag that matters explained below:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "allenai/olmicro-275m-base"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo, trust_remote_code=True, dtype=torch.bfloat16
)
inputs = tok("The capital of France is", return_tensors="pt")
print(tok.decode(model.generate(**inputs, max_new_tokens=20)[0]))
Check: the lab ran this shape of code end to end (transcripts t01–t04). The 275M — a 551 MB download — loaded in about 2.5 seconds on a shared, GPU-less machine and generated at roughly 3–5 tokens per second there. Your machine will differ; a graphics card changes the picture entirely. What will not differ: it loads, and it generates.
The flag you should understand before using
trust_remote_code=True means what it
says: Transformers will download Python
code from the model repository and
run it on your machine. For Olmicro
today there is no alternative — the
architecture lives in that code. Ai2 is
a known, reputable publisher, and the
two files are short enough to read
before you run them (the lab did). But
make it a habit with any model, from
any publisher: remote code is code.
Read it, or don't run it. Ai2 also
publishes a plugin package in their
code repository that registers the
architecture properly, so serving tools
can load the model without the flag;
that is the route the next section
uses.
A note on downloading
from_pretrained normally downloads
the model for you into a local cache.
If your environment's proxy or network
makes the library's downloader fail —
the lab's did, with an httpx error
about an invalid port — the files are
ordinary downloads: fetch config.json,
model.safetensors, tokenizer.json,
tokenizer_config.json and the two
.py files from the repository's page
with your browser or curl, put them
in a folder, and pass the folder path
instead of the repository name.
Everything in this guide works the same
either way.
Serving it properly: vLLM (documented only)
If you want Olmicro behind an HTTP API
rather than inside a script, Ai2's
supported route is vLLM with the
Olmicro plugin package from
github.com/allenai/olmicro, which
registers the architecture so vLLM can
load it without remote code. The lab
did not run vLLM — it is a GPU serving
stack, and the lab machine has no GPU —
so this paragraph is documented
only, from Ai2's model card and code
repository, and labelled as such.
Expect a normal vLLM install, the
plugin installed alongside it, and the
model named by its Hugging Face
address.
Which size to start with
Start with the 275M. It downloads in under a minute on a decent connection, loads in seconds, and every exercise in chapters 4–6 was written against it — including the failures, which are cheaper to reach at 275M. Move to the 1.4B when the small model's judgement, not its format, is what limits you (chapter 5 shows the difference), and to the 2.7B when you want the suite's best reading comprehension or its long-context manners (chapter 7). The interfaces are identical; only the address changes.
Check: after the install above,
python -c "import torch, transformers;
print(torch.__version__,
transformers.__version__)" should
report torch 2.11.x and a transformers
in the 5.12–5.15 range. If the model
load then prints the "fast path is not
available" notice, you are on the CPU
fallback — expected, and fine for
everything in this guide.