alt.freeweights.olmo / olmOCR-7B-0725
From: allenai <huggingface.co/allenai>Newsgroups: alt.freeweights.olmoSubject:

olmOCR-7B-0725

Date: 2026-11-15Commit: 827f174Signed: 2DC28CC7B26A283B ✓

Image text to text model with 8.3B parameters. Safetensors weights, 16.6 GB in all. Published by allenai under Apache-2.0.

8.3B params16.6GBolmOCR-7B-0725safetensorspermissive
FactsParams8.3BSize16.6 GBFormatssafetensorsTaskimage text to textLicenseApache-2.0From sourcepermissive
$ fw get allenai/olmOCR-7B-0725
# manifest sha256 76f8e95b5a42… · 16.6 GB · 15 files
$ fw verify ./olmOCR-7B-0725 allenai/olmOCR-7B-0725
From sourceHosted (signed)allenai/olmOCR-7B-0725Last check: 2026-11-15 03:46 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Fine-tune of Qwen2.5-VL-7B-Instruct.

Works with

Overview

Size
16.6 GB
Weights
16.6 GB (safetensors)
Parameters
8.3B
Formats
safetensors
Task
image text to text
License
Apache-2.0 (permissive)
Files
15, each with a sha256
Publisher
allenai
Added
2026-11-15
Section
alt.freeweights.olmo
Lineage

Original release from the publisher.

Base model: Qwen/Qwen2.5-VL-7B-Instruct

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:46 UTCpassed

Model card

From the publisher at commit 827f174. Shown as plain text with links; images open at the publisher.

Image: olmOCR Logo

olmOCR-7B-0725#

This is a release of the olmOCR model that's fine tuned from Qwen2.5-VL-7B-Instruct using the olmOCR-mix-0225 dataset.

Quick links:

The best way to use this model is via the olmOCR toolkit. The toolkit comes with an efficient inference setup via sglang that can handle millions of documents at scale.

Usage#

This model expects as input a single document image, rendered such that the longest dimension is 1288 pixels.

The prompt must then contain the additional metadata from the document, and the easiest way to generate this is to use the methods provided by the olmOCR toolkit.

A simple way to infer using transformers is as follows:

import torch from transformers import AutoModelForImageTextToText, AutoProcessor 

model_id = "allenai/olmOCR-7B-0725" 
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id, torch_dtype=torch.float16 ).to("cuda").eval()

PROMPT = """
Below is the image of one page of a PDF document , as well as some raw textual content that
was previously extracted for it that includes position information for each image and
block of text ( The origin [0 x0 ] of the coordinates is in the lower left corner of the
image ).
Just return the plain text representation of this document as if you were reading it
naturally .
Turn equations into a LaTeX representation , and tables into markdown format . Remove the
headers and footers , but keep references and footnotes .
Read any natural handwriting .
This is likely one page out of several in the document , so be sure to preserve any sentences
that come from the previous page , or continue onto the next page , exactly as they are .
If there is no text at all that you think you should read , you can output null .
Do not hallucinate .
RAW_TEXT_START
{ base_text }
RAW_TEXT_END
"""

messages = [
    {
        "role": "user",
        "content": [
            {
                "type": "image",
                "image": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/smolvlm_table.png",
            },
            {"type": "text", "text": PROMPT},
        ],
    }
]

text = processor.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True
)
inputs = processor.apply_chat_template(
    messages,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt"
).to(model.device)

output_ids = model.generate(**inputs, max_new_tokens=1000)
generated_ids = [output_ids[len(input_ids):] for input_ids, output_ids in zip(inputs.input_ids, output_ids)]
output_text = processor.batch_decode(generated_ids, skip_special_tokens=True, clean_up_tokenization_spaces=True)
print(output_text)

License and use#

olmOCR is licensed under the Apache 2.0 license. olmOCR is intended for research and educational use. For more information, please see our Responsible Use Guidelines.

Files

15 files · 16.6 GBWeights 16.6 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 15 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.74 KB05e02d1adb7ef8f893b241572e579670c192cb95e26416627dd5bbe731a8611b
chat_template.json1.05 KBad60d90252ed0b0705ba14e2d0ad0fec0beac1ea955642b54059b36052d8bc96
config.json2.52 KB28ef0ce510b3b55f738c8100833bd27bf32b1edbe4934928ef58e99149589df3
generation_config.json260 B549bd3dd57183a0aab12c3cb40dd25644fb0f600e379541a1bfeaa745a703bec
merges.txt1.67 MB599bab54075088774b1733fde865d5bd747cbcc7a547c5bc12610e874e26f5e3
model-00001-of-00004.safetensors4.97 GBd1f9ca78fc8e1d7ce4aa093bd8840b4b21b6e0ae3be2ab8a737934dff1bd3f21
model-00002-of-00004.safetensors4.99 GB6a98ed17ed7e9c89bec3b0da0fd0d87f616ac7a35cf88340956d2bf3dabc4d26
model-00003-of-00004.safetensors4.93 GB9f3df59d3ee5c4e850e020aa137bfca7fb479c5914fc68b87e55dfa5c42f4b43
model-00004-of-00004.safetensors1.69 GB35b02cceac8312f2da698c91428dc4b6c3891e58f34436ff7f866a59b278f4ad
model.safetensors.index.json57.6 KB3067e9b0f35596ff3426a0d0ec8c982a51fa1e110c4fc30dcf3be9ea37409df6
preprocessor_config.json350 Bf2058c716eef96ccaed1cc1e2d0c08306b62586d535b28d9d08e691b2fab7ca0
tokenizer.json7.03 MBc0382117ea329cdf097041132f6d735924b697924d6f6fc3945713e96ce87539
tokenizer_config.json5.70 KB4abd3520120e266da84c0864fee064d1fb10806f02225911a47253dd38dc5f56
vocab.json2.78 MBca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
827f1746ab pinned now2026-11-15 03:46 UTC15 files · 16.6 GB

Use it

$ fw get allenai/olmOCR-7B-0725
# manifest sha256 76f8e95b5a42… · 16.6 GB · 15 files
$ fw verify ./olmOCR-7B-0725 allenai/olmOCR-7B-0725
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/allenai/olmOCR-7B-0725.json --dir ./olmOCR-7B-0725 $ python3 fw.py verify ./olmOCR-7B-0725 ./allenai__olmOCR-7B-0725.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download allenai/olmOCR-7B-0725 --revision 827f1746abc5375c530620c03aa4758fd4fa5674 --local-dir ./olmOCR-7B-0725
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForImageTextToText, AutoProcessor processor = AutoProcessor.from_pretrained("allenai/olmOCR-7B-0725", revision="827f1746abc5375c530620c03aa4758fd4fa5674") model = AutoModelForImageTextToText.from_pretrained("allenai/olmOCR-7B-0725", revision="827f1746abc5375c530620c03aa4758fd4fa5674", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve allenai/olmOCR-7B-0725 --revision 827f1746abc5375c530620c03aa4758fd4fa5674

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
05e02d1adb7ef8f893b241572e579670c192cb95e26416627dd5bbe731a8611b
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: allenai <huggingface.co/allenai>Newsgroups: alt.freeweights.olmoSubject: olmOCR-7B-0725Date: 2026-11-15Commit: 827f174Signed: 2DC28CC7B26A283B ✓
Upstream
allenai/olmOCR-7B-0725
Pinned commit
827f1746abc5375c530620c03aa4758fd4fa5674
Manifest
olmOCR-7B-0725.json · .minisig
Manifest sha256
76f8e95b5a42953889e8067c59b8e94611630626c6d9b713b6e3268375dde9cc
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:46 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/allenai/olmOCR-7B-0725.json $ curl -O https://freeweights.allternit.com/manifests/allenai/olmOCR-7B-0725.json.minisig $ minisign -Vm olmOCR-7B-0725.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

Qwen/Qwen2.5-VL-7B-Instruct · this model is a finetune of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download allenai/olmOCR-7B-0725
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. olmOCR-7B-0725.json. Provenance. Takedown history: none.
From: bartowski <huggingface.co/bartowski>Subject: allenai_Olmo-3-7B-Instruct-GGUF
From: bartowski <huggingface.co/bartowski>Subject: allenai_Olmo-3-7B-Think-GGUF
From: bartowski <huggingface.co/bartowski>Subject: allenai_Olmo-3.1-32B-Instruct-GGUF
From: bartowski <huggingface.co/bartowski>Subject: allenai_Olmo-3.1-32B-Think-GGUF
From: bartowski <huggingface.co/bartowski>Subject: allenai_olmOCR-2-7B-1025-GGUF
From: bartowski <huggingface.co/bartowski>Subject: allenai_olmOCR-7B-0225-preview-GGUF