How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "tngtech/olmOCR-7B-faithful"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "tngtech/olmOCR-7B-faithful",
		"messages": [
			{
				"role": "user",
				"content": [
					{
						"type": "text",
						"text": "Describe this image in one sentence."
					},
					{
						"type": "image_url",
						"image_url": {
							"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
						}
					}
				]
			}
		]
	}'
Use Docker
docker model run hf.co/tngtech/olmOCR-7B-faithful
Quick Links

olmOCR-7B-faithful

This is a fine-tuned version of the olmOCR-7B-0225-preview model that aims to extract all information from a given document, including header and footer information.

More information on how we fine-tuned the model can be found in our blog post.

Acknowledgment

We thank the Allen Institute for AI and Alibaba Cloud for their great open-source work, which enabled this fine-tuning project.

Improved using Qwen.

Downloads last month
76
Safetensors
Model size
8B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for tngtech/olmOCR-7B-faithful

Base model

Qwen/Qwen2-VL-7B
Finetuned
(7)
this model
Quantizations
3 models

Article mentioning tngtech/olmOCR-7B-faithful