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
Run this model with HF Jobs
Run numind/NuMarkdown-8B-Thinking on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/numind/NuMarkdown-8B-Thinking. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/numind/NuMarkdown-8B-Thinking on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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 files29 unmodified lines3031323334353637383940414229 unmodified lines# Reasoning comes to OCR 🧠✨📄🤘**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.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.**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.## Results**NuMarkdown-8B-Thinking** is outperforming generic non-reasoning models like GPT-4o and specialized markdown generation models like OCRFlux.It is competitive against large reasoning closed-source models like Gemini 2.5.### Arena ranking against popular alternatives (using trueskill-2 ranking system, with around 500 model-anonymized votes):29 unmodified lines3031323334353637383940414229 unmodified lines# Reasoning comes to OCR 🧠✨📄🤘**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.It is particularly good at understanding documents with weird layouts and complex tables. The number of thinking tokens can vary from 20% to 500% of the final answer, depending on the task difficulty.**NuMarkdown-8B-Thinking** is a fine-tune of **Qwen 2.5-VL-7B** on synthetic Doc → Reasoning → Markdown examples, followed by an RL phase (GRPO) with a layout-centric reward.## Results**NuMarkdown-8B-Thinking** is outperforming generic non-reasoning models like GPT-4o and specialized OCR models like OCRFlux.It is competitive against large reasoning closed-source models like Gemini 2.5.### Arena ranking against popular alternatives (using trueskill-2 ranking system, with around 500 model-anonymized votes):
README.md+3-3