olmOCR-7B-0225-preview
Ai2 · allenai/olmOCR-7B-0225-preview
Weights license: Apache 2.0 · code and components may use other terms
Quality
No comparable score
We track no public, comparable benchmark that covers this model yet. No score is inferred.
Reported by the publisher
Runs on
Fast memory holds it 90
The planning estimate fits the memory the model can use quickly: graphics card VRAM, or unified memory within the macOS GPU share.
Show all 90
Within memory, outside the fast part 26
Within the machine's memory, outside its fast part: on a graphics card the layers that do not fit run on the CPU from PC RAM (the listed RAM, or 32 GB assumed); on a Mac, above the macOS default GPU share. Not a speed figure.
Show all 26
One memory tier short 3
The same machines with the next memory size up would hold it in fast memory.
Hardware profiles grouped by the Q4 planning estimate on each machine (dedicated GPUs reserve 2 GB; unified and system memory 25%, 2 to 8 GB): the fast memory holds it, it is within memory but outside the fast part (layers offloaded to PC RAM, or above the macOS GPU share), or the machine is one memory tier short. Not a measured fit or speed.
Ai2 released olmOCR-7B-0225-preview on 2025-02-25: a vision-language model that answers about images, with 8.3B parameters on the Hugging Face count and the Apache 2.0 license. Languages the publisher declares: en.
License: commercial use allowed. At Q4 the weights load about 6.2 GB before each machine's reserve; image resolution, video frames and context add memory, and the vision encoder needs support in the runtime you pick.
Measured speed
No published measurement for this checkpoint
Tokens per second are shown only when a source publishes them with hardware, build and setup. They are never estimated.
How to run
Runtime compatibility and tokens per second have not been measured for this entry. Published metadata and a memory estimate do not prove a successful local run.
Library in source: transformers
Documented ways to run it
Copied as printed in the linked source (read 2026-10-18); not run by this site.
pip install olmocrimport torch
import base64
import urllib.request
from io import BytesIO
from PIL import Image
from transformers import AutoProcessor, Qwen2VLForConditionalGeneration
from olmocr.data.renderpdf import render_pdf_to_base64png
from olmocr.prompts import build_finetuning_prompt
from olmocr.prompts.anchor import get_anchor_text
# Initialize the model
model = Qwen2VLForConditionalGeneration.from_pretrained("allenai/olmOCR-7B-0225-preview", torch_dtype=torch.bfloat16).eval()
processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-7B-Instruct")
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model.to(device)
# Grab a sample PDF
urllib.request.urlretrieve("https://molmo.allenai.org/paper.pdf", "./paper.pdf")
# Render page 1 to an image
image_base64 = render_pdf_to_base64png("./paper.pdf", 1, target_longest_image_dim=1024)
# Build the prompt, using document metadata
anchor_text = get_anchor_text("./paper.pdf", 1, pdf_engine="pdfreport", target_length=4000)
prompt = build_finetuning_prompt(anchor_text)
# Build the full prompt
messages = [
{
"role": "user",
"content": [
{"type": "text", "text": prompt},
{"type": "image_url", "image_url": {"url": f"data:image/png;base64,{image_base64}"}},
],
}
]
# Apply the chat template and processor
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
main_image = Image.open(BytesIO(base64.b64decode(image_base64)))
inputs = processor(
text=[text],
images=[main_image],
padding=True,
return_tensors="pt",
)
inputs = {key: value.to(device) for (key, value) in inputs.items()}
# Generate the output
output = model.generate(
**inputs,
temperature=0.8,
max_new_tokens=50,
num_return_sequences=1,
do_sample=True,
)
# Decode the output
prompt_length = inputs["input_ids"].shape[1]
new_tokens = output[:, prompt_length:]
text_output = processor.tokenizer.batch_decode(
new_tokens, skip_special_tokens=True
)
print(text_output)
# ['{"primary_language":"en","is_rotation_valid":true,"rotation_correction":0,"is_table":false,"is_diagram":false,"natural_text":"Molmo and PixMo:\\nOpen Weights and Open Data\\nfor State-of-the']Technical details
What the source and the catalog store for this checkpoint. Missing fields are left out, never zero.
- Checkpoint / source
- allenai/olmOCR-7B-0225-preview
- Task
- image-text-to-text
- Architecture
- Qwen2VLForConditionalGeneration
- Library in source
- transformers
- Weight license
- Apache 2.0allenai/olmOCR-7B-0225-preview model card (Hugging Face) · read 2026-10-18source
- Commercial use
- Allowed Apache License 2.0 text (SPDX) · read 2026-10-18license text
- Languages
- enModel card metadata · read 2026-10-25source
- Released
- olmOCR README release history: 'Feb 25, 2025 - v0.1.58 - Initial public launch and demo.' (Ai2, GitHub) · read 2026-10-18source
Every stored field
- Revision checked
- 6f102f3807c44450e4ea1ec3eae775e9e68927cb
- Architecture
- Qwen2VLForConditionalGeneration
- Library
- transformers
- Hub task tag
- image-text-to-text
- Declared base models
- Qwen/Qwen2-VL-7B-Instruct
- Formats
- transformers, safetensors
- Access
- Open download
- Publisher kind
- Official
- Repository created
- 2025-01-15creation is not the model's release
- Repository updated
- 2025-08-19a commit is not a release date
- Hub downloads (30 days) · likes
- 40,591 · 705this repository only · read 2026-10-25
- Catalog state
- Hub config or weights found; no inventory benchmark link
Sources
Identity and published specifications come from the checkpoint page. Benchmark scores belong to the named release and do not measure speed on your computer.
- Publisher model card
- License: allenai/olmOCR-7B-0225-preview model card (Hugging Face)
- Release date: olmOCR README release history: 'Feb 25, 2025 - v0.1.58 - Initial public launch and demo.' (Ai2, GitHub)
Curated facts checked: 2026-10-18. The license and release date cite the publisher's sources; parameters, files and task come from the Hugging Face record, and memory is a labelled estimate from its parameter count. A value no source states stays empty; a repository commit is not a model release date.






























































