---
title: Granite-Docling-V2
canonical_url: "https://www.modelscope.ai/studios/AI-ModelScope/Granite-Docling-V2"
md_url: "https://www.modelscope.ai/studios/AI-ModelScope/Granite-Docling-V2.md"
repository: AI-ModelScope/Granite-Docling-V2
chinese_name: "Granite Docling V2 Playground"
last_updated: 2026-12-01
sdk_type: gradio
sdk_version: 5.49.1
downloads: 0
stars: 32
---

# Granite-Docling-V2

> Granite-Docling-V2 - An interactive demo by AI-ModelScope on ModelScope. Convert images and PDFs into structured DocLang with IBM Granite Docling V2. Preview each page and export DCLX, HTML, or Markdown.

AI-ModelScope/Granite-Docling-V2 is an interactive demo (Studio) on ModelScope. built with gradio 5.49.1. also known as 「Granite Docling V2 Playground」.

- **Repository**: AI-ModelScope/Granite-Docling-V2
- **SDK**: gradio
- **SDK version**: 5.49.1
- **Downloads**: 0
- **Stars**: 32
- **Last updated**: 2026-12-01

Source: https://www.modelscope.ai/studios/AI-ModelScope/Granite-Docling-V2

---

# Granite Docling V2 Playground

The Granite-Docling v2 checkpoints,
[500M](https://modelscope.cn/models/ibm-granite/granite-docling-v2-500m) and
[2B](https://modelscope.cn/models/ibm-granite/granite-docling-v2-2b), in the
DocLang viewer.

Drop a PNG, JPG or PDF on the viewer, or pick one of the samples on its start
screen: the pages are converted one by one, and the viewer's page, DocLang and
preview panes fill in while the model streams. PDFs rasterize with
docling-parse (max 10 pages). Each sample (`src/samples.py`) converts with its
own prompt and shows a card on what to look at; **← Samples** goes back to them.

The toolbar holds the model's name, **Download** (DCLX, HTML or Markdown) once something is converted, **Stop** while
converting, and **Advanced**, which opens a row with the document and how its
conversion goes (progress, then the time it took) and, to run it again, the
prompt (default `<doclang>`; a sample puts its own there), the checkpoint
dropdown and **Convert**. Changing the prompt or the checkpoint closes a
sample's "what to look at" card. **Reset all** closes the document, sets the
prompt and checkpoint back, closes Advanced and clears the viewer's saved
settings. Advanced stays open or closed as left, in this browser;
`?advanced=on` opens it from the start.

The Studio includes the original pinned DocLang viewer, served from this
Space. Conversion runs locally on the selected GPU. The first use of each
checkpoint downloads and caches its public weights.

This Space is the **playground** (`src/simple_app.py`), not the
full workbench demo.

Install pins (see `requirements.txt`):

- transformers: [`5.23.0`](https://github.com/huggingface/transformers/releases/tag/v5.23.0), the first release with `granite_docling` ([#49012](https://github.com/huggingface/transformers/pull/49012))
- PDF pages: `docling-parse`
