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 files1 unmodified line2345678910111213149 unmodified lines242526272829303132333435363738391 unmodified linelicense: mitbase_model: Qwen/Qwen2.5-VL-7Btags:- vision-language- document-to-markdown- reinforcement-learning- grpo- qwen2.5- markdownmodel_name: NuMarkdown-reasoninglibrary_name: transformerspipeline_tag: text-generation---9 unmodified lines---# NuMarkdown-reasoning 📄**NuMarkdown-8B-reasoning** is the first reasoning vision-language model trained specifically to convert documents into clean GitHub-flavoured Markdown.It is a fine-tune of **Qwen 2.5-VL-7B** using ~10k synthetic Doc-to-Reasoning-to-Markdown pairs, followed by an RL phase (GRPO) with a layout-centric reward.*(Note: the number of thinking tokens can vary from 20% to 500% the number of tokens in the final answer)*## Results**NuMarkdown-reasoning** is significantly better than similar size non-reasoning models trained for markdown generation on complex documents, and achieves competitive results against top closed source alternatives.### Arena ranking against popular alternatives (using trueskill-2 ranking system, with around 500 anonymized votes):<p align="center">1 unmodified line2345678910111213141516179 unmodified lines272829303132333435363738394041421 unmodified linelicense: mitbase_model: Qwen/Qwen2.5-VL-7Btags:- OCR- vision-language- VLM- Reasoning- document-to-markdown- qwen2.5- markdown- extraction- RAGmodel_name: NuMarkdown-8B-Thinkinglibrary_name: transformerspipeline_tag: text-generation---9 unmodified lines---# Reasoning OCR Model 📄**NuMarkdown-8B-Thinking** is the first reasoning OCR VLM. It is specifically trained to convert documents into clean GitHub-flavoured Markdown.It 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.*(Note: the number of thinking tokens can vary from 20% to 500% the number of tokens in the final answer)*## Results**NuMarkdown-8B-Thinking** is significantly better than similar size non-reasoning models trained for markdown generation on complex documents, and achieves competitive results against top closed source alternatives.### Arena ranking against popular alternatives (using trueskill-2 ranking system, with around 500 anonymized votes):<p align="center">
README.md+10-7