Image-to-Text
Transformers
Safetensors
qwen2_5_vl
image-text-to-text
OCR
vision-language
VLM
Reasoning
document-to-markdown
qwen2.5
markdown
extraction
RAG
text-generation-inference
Instructions to use numind/NuMarkdown-8B-Thinking with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use numind/NuMarkdown-8B-Thinking with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="numind/NuMarkdown-8B-Thinking")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("numind/NuMarkdown-8B-Thinking") model = AutoModelForMultimodalLM.from_pretrained("numind/NuMarkdown-8B-Thinking", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -27,18 +27,19 @@ pipeline_tag: text-generation
|
|
| 27 |
|
| 28 |
---
|
| 29 |
|
| 30 |
-
# Reasoning
|
| 31 |
|
| 32 |
-
**NuMarkdown-8B-Thinking** is the first reasoning OCR VLM. It is specifically trained to convert documents into clean GitHub-flavoured Markdown.
|
| 33 |
-
It is
|
| 34 |
|
| 35 |
-
*
|
| 36 |
|
| 37 |
## Results
|
| 38 |
|
| 39 |
-
**NuMarkdown-8B-Thinking** is
|
|
|
|
| 40 |
|
| 41 |
-
### Arena ranking against popular alternatives (using trueskill-2 ranking system, with around 500 anonymized votes):
|
| 42 |
<p align="center">
|
| 43 |
|
| 44 |
| Rank | Model | μ | σ | μ − 3σ |
|
|
@@ -63,8 +64,8 @@ It is a fine-tune of **Qwen 2.5-VL-7B** using synthetic Doc → Reasoning &ra
|
|
| 63 |
|
| 64 |
## Training
|
| 65 |
|
| 66 |
-
1. **SFT**: Single epoch supervised fine-tuning on synthetic reasoning traces generated from public PDFs
|
| 67 |
-
2. **RL (GRPO)**: RL phase using a layout-centric reward
|
| 68 |
|
| 69 |
## Example:
|
| 70 |
|
|
|
|
| 27 |
|
| 28 |
---
|
| 29 |
|
| 30 |
+
# Reasoning comes to OCR 📄
|
| 31 |
|
| 32 |
+
**NuMarkdown-8B-Thinking** is the first reasoning OCR VLM. It is specifically trained to convert documents into clean GitHub-flavoured Markdown. It generates thoughts tokens to figure out the layout of the document before generating the Markdown file.
|
| 33 |
+
It is particularly good at understanding documents with weird layout and complex tables. The number of thinking tokens can vary from 20% to 500% of the number of tokens for the final answer, depending on the task difficulty.
|
| 34 |
|
| 35 |
+
**NuMarkdown-8B-Thinking** is a fine-tune of **Qwen 2.5-VL-7B** using synthetic Doc → Reasoning → Markdown examples, followed by an RL phase (GRPO) with a layout-centric reward.
|
| 36 |
|
| 37 |
## Results
|
| 38 |
|
| 39 |
+
**NuMarkdown-8B-Thinking** is outperforming generic non-reasoning models like GPT-4o and specialized markdown generation models like OCRFlux.
|
| 40 |
+
It is competitive against large reasoning closed-source models like Gemini 2.5.
|
| 41 |
|
| 42 |
+
### Arena ranking against popular alternatives (using trueskill-2 ranking system, with around 500 model-anonymized votes):
|
| 43 |
<p align="center">
|
| 44 |
|
| 45 |
| Rank | Model | μ | σ | μ − 3σ |
|
|
|
|
| 64 |
|
| 65 |
## Training
|
| 66 |
|
| 67 |
+
1. **SFT**: Single epoch supervised fine-tuning on synthetic reasoning traces generated from public PDFs.
|
| 68 |
+
2. **RL (GRPO)**: RL phase using a layout-centric reward with difficult image examples.
|
| 69 |
|
| 70 |
## Example:
|
| 71 |
|