Quantization
Quantization allows models to run more efficiently with a relatively small loss of capability. This makes it possible to run models on resource-constrained hardware or reduce cloud costs. The quantization process compresses large language models by reducing precision (e.g. from 32-bit float to 4-bit integers). This enables inference on hardware that can't run full-precision models, such as laptops, edge devices, or limited-GPU servers. Ai2 provides quantized versions of Olmo, OlmoE, and Tülu models in formats designed for efficient runtime performance.
Many formats exist for quantized models. This guide focuses on the two best-supported and production-ready formats:
- GGUF (GPT-Generated Unified Format) — ideal for CPU-only and edge deployments
- GPTQ (GPT Quantization) — optimized for high-throughput GPU inference
Note: GPT stands for "Generative Pre-trained Transformer" in both GGUF and GPTQ formats.
GGUF
GGUF is a lightweight format designed for fast, memory-efficient inference on CPUs and edge devices. A popular way of running GGUF models is with llama.cpp.
Hardware requirements
| Model Size | RAM Needed | Notes |
|---|---|---|
| 7B | ~6 GB | Runs on M1 MacBooks, Raspberry Pi 5 (8 GB), Intel laptops |
| 13B | ~12 GB | Suitable for 16 GB systems |
Advantages
- No GPU needed
- Small minimum binary (~1GB with llama.cpp)
- Relatively fast cold starts (<1 second on Apple Silicon)
- Works on edge devices, like laptops and smart phones
- Supports Metal, AVX2, NEON
GPTQ
GPTQ is a pre-quantized format compatible with high-throughput GPU inference. A popular way of running GPTQ models is with vLLM.
Hardware requirements
| Model Size | GPU VRAM Needed | Notes |
|---|---|---|
| 7B | 8 GB | RTX 3060, 3090, A10, A100, L4 OK |
| 70B | 48 GB+ | Multi-GPU or large enterprise cards |
Advantages
- Higher throughput for parallel requests
- Better performance on GPU hardware
- More efficient memory usage for large models
Comparison at a glance
| Use Case | Format | Runtime | Hardware | Pros |
|---|---|---|---|---|
| Offline apps | GGUF | llama.cpp | CPU (Mac/ARM/x86) | Fast startup, no GPU, small memory use |
| Real-time APIs | GPTQ | vLLM | GPU (8–48 GB) | Scalable, OpenAI API, high throughput |
Where to find pre‑quantized Ai2 models
Ai2 publishes official quantized models on Hugging Face.
| Model | Link |
|---|---|
| Olmo‑2‑0425‑1B‑Instruct | Olmo-2-0425-1B-Instruct-GGUF |
| Olmo‑2‑0325‑32B‑Instruct | Olmo-2-0325-32B-Instruct-GGUF |
| Olmo‑2‑1124‑13B‑Instruct | Olmo-2-1124-13B-Instruct-GGUF |
| Olmo‑2‑1124‑7B‑Instruct | Olmo-2-1124-7B-Instruct-GGUF |
| Olmo‑2‑0425‑1B | Olmo-2-0425-1B-GGUF |
| OlmoE‑1B‑7B‑0125‑Instruct | OlmoE-1B-7B-0125-Instruct-GGUF |
Resources
For more information about quantization formats and techniques, we recommend the following resources:
- Hugging Face's Quantization Guide - Comprehensive overview of quantization methods and implementation details
- llama.cpp Documentation - Quantization for llama.cpp.
- vLLM Quantization Guide - Quantization for vLLM.