Olmicro local hardware requirements depend on the length of the documents you plan to process. Budget for the weights and context state first, then leave room for the GPU to process the prompt.
Olmicro local hardware requirements by context length
Olmicro 2.7B Base needs about 5.01 GiB for BF16 weights. Weights plus context state come to 5.24 GiB at 8K, 5.81 GiB at 32K, and 6.56 GiB at 64K, assuming one sequence on one GPU. The estimates exclude activations, temporary buffers and other processes sharing the GPU. Ai2 model card · Ai2 technical report, Table 20
| Total sequence length | Context state | BF16 weights + state | Space left within 8 GiB before overhead |
|---|---|---|---|
| 8,192 tokens | 240 MiB | 5.24 GiB | 2.76 GiB |
| 32,768 tokens | 816 MiB | 5.81 GiB | 2.19 GiB |
| 65,536 tokens | 1,584 MiB | 6.56 GiB | 1.44 GiB |
The calculation uses 2.69 billion parameters × 2 bytes for weights. Six of the 30 layers use full attention, adding 24 KiB per token at 16-bit cache precision alongside 48 MiB of fixed 32-bit recurrent state. Ai2 model card · Ai2 technical report, Table 20
For 64K, test a 12 GiB card first if available. It leaves about 5.44 GiB before runtime overhead.
Which Olmicro checkpoint should you load?
Use allenai/olmicro-2.7b-base at its default main revision for the 65,536-token window. Ai2’s earlier pretraining and midtraining checkpoints used 8,192-token sequences. The release contains base models for text continuation and research, so use a completion prompt for the first run. Ai2 model card
When to use Olmicro 1.4B instead
Use Olmicro 1.4B Base if you need the 64K window and the 2.7B checkpoint leaves too little GPU headroom. The 1.4B checkpoint uses about 3.68 GiB for BF16 weights plus full-context state, roughly 2.9 GiB less than 2.7B before runtime overhead. Ai2 model card · Ai2 technical report, Table 20
For memory-constrained experiments, the three smallest checkpoints each use under 800 MiB of context state at 64K. Compare results on representative documents before switching sizes for a quality-sensitive workload. Ai2 technical report, Table 20
Which local runtimes can load Olmicro?
Ai2 documents Transformers on CUDA for a first completion and vLLM with Ai2’s Olmicro plugin for serving. Both documented paths need Olmicro-specific integration code. Ai2 repository and quickstart
| Runtime | What to check before budgeting memory |
|---|---|
| Transformers | Ai2’s example uses BF16 and trust_remote_code=True. The flash-linear-attention package supplies fast Gated DeltaNet kernels. Ai2 describes its PyTorch fallback as substantially slower. |
| vLLM | Ai2 documents vLLM 0.25 plus its Olmicro plugin, which depends on the Transformers plugin. Start with a single sequence when checking the memory budget. |
| Ollama, llama.cpp, LM Studio or MLX | Ai2’s release quickstart documents neither a GGUF nor an MLX path. Check for model-specific support in your chosen runtime before downloading weights. |
Quantization changes the weight budget. Cache precision and allocation depend on the engine. For CPU-only and Apple Silicon setups, check device support, available system memory and prompt processing speed on your platform. Ai2 quickstart · Ai2 technical report, Table 20
Check peak memory on your own GPU
Start with one request and record peak GPU memory during prompt processing and generation. Olmicro Base’s 65,536-token sequence budget covers the prompt and completion, so reserve space for new tokens before constructing the longest test case. Ai2 model card
- Load the checkpoint in a fresh process and run a short text completion using Ai2’s example. Record the model, runtime version, weight precision and peak device memory.
- Repeat with a representative document at 8K and then 32K. Measure peak memory and time to first token at each length. A short completion can fit while processing a much longer prompt causes a memory spike.
- Try the longest sequence your workload needs, with enough room for output. If 2.7B runs out of memory on an 8 GiB card, shorten the prompt or repeat the same test with 1.4B before trying concurrent requests.