Granite Docling V2 Playground: Convert Pages to DocLang in Your Browser
The Granite Docling V2 Playground is a free Hugging Face Space for turning document pages into DocLang. This guide explains the 500M and 2B checkpoints it exposes, PNG/JPG/PDF inputs, the ten-page PDF limit, viewer panes, toolbar controls, downloadable DCLX/HTML/Markdown output, and how it differs from the full workbench demo.
View 2 referencesAllow the functional cookie to save your likes. Privacy details
What is the Granite Docling V2 Playground?
The Granite Docling V2 Playground is a Gradio-based Hugging Face Space published by IBM that converts document pages into DocLang in the browser. Its tagline is "Drop a page, get DocLang." The Space README states plainly that it is the playground, not the full workbench demo.
It exists so you can test document conversion without installing Transformers, vLLM or Docling locally. You upload a page, watch the model stream its output, and download the result.
What you can and cannot do
It is a conversion sandbox. It does not provide batch pipelines, schema-based extraction or a hosted API. For those, use the Docling library or the companion Granite Vision models.
Which checkpoints does the playground expose?
The playground exposes both Granite-Docling v2 checkpoints: a 500M model and a 2B model. They are hosted as separate Hugging Face repositories under the ibm-granite organization and can be switched from the Advanced panel. Both are Apache-2.0 licensed and can be swapped without changing the input file or prompt.
| Label | Repository | Strength |
|---|---|---|
| 500M | ibm-granite/granite-for-docling-500m |
Faster throughput with density routing |
| 2B | ibm-granite/granite-for-docling-2b |
Higher accuracy on dense pages |
IBM's release post reports benchmark scores of 94.0 for the 500M and 95.8 for the 2B on one H100, with speeds of 18.5 and 10 pages per second respectively. Those are publisher figures from November 30, 2026.
What files can I upload?
The playground accepts PNG, JPG and PDF files, and also offers sample pages on its start screen. PDFs are rasterized with docling-parse and are limited to ten pages. Each page is converted one by one. For larger documents, test representative pages.
| Input | Support | Limit |
|---|---|---|
| PNG | Yes | Single page image |
| JPG | Yes | Single page image |
| Yes, rasterized | Maximum 10 pages | |
| Samples | Yes | Chosen from start screen |
The ten-page cap is the most important constraint. This is a page-level demo, not a tool for digitizing a whole manual in one upload. For larger documents, test a representative set of pages rather than expecting a single bulk run.
How do I convert a page step by step?
Conversion is a short loop: choose a checkpoint, drop a file or sample, optionally edit the prompt, then watch the panes fill as the model streams. The loop is short, and Advanced settings can stay at defaults for a first test.
- Open the Space and pick a sample or drop a PNG, JPG or PDF on the viewer.
- Set the checkpoint in Advanced if you want the 2B model instead of the 500M default.
- Edit the prompt if needed; the default is the doclang prompt token and a sample supplies its own.
- Click Convert to start the page-by-page conversion.
- Watch the panes populate while the model streams its output.
- Download the result as DCLX, HTML or Markdown.
Changing the prompt or checkpoint closes a sample's "what to look at" card, so read that card first if you are using a guided example. The sequence is deliberately short so you can compare a page across both checkpoints quickly. Advanced settings are optional and can be left at defaults.
What do the viewer panes show?
The viewer shows three panes by default: original page, DocLang markup and a rendered preview. They fill in progressively as the model generates output, which makes it easy to see where structure is lost. The markup pane is the best place to debug structure.
| Pane | Content |
|---|---|
| Original | The source page image |
| Markup | Raw DocLang with element types and positions |
| Preview | Rendered interpretation of the DocLang |
The default pane set is original,markup,preview and can be configured through the VIEWER_PANES setting when self-hosting. The embedded viewer is the DocLang viewer at a pinned commit, downloaded at startup and served with the app. The markup pane is the most useful for debugging because it exposes element types and positions directly.
What can I download and what is DCLX?
Once conversion finishes, the Download button offers DCLX, HTML and Markdown. DCLX is the document container used by the DocLang ecosystem; the Space README does not describe its internal structure beyond being a downloadable result format. Match the format to your next pipeline step.
| Format | Best use |
|---|---|
| DCLX | Preserving the structured DocLang record |
| HTML | Rendering the page on the web |
| Markdown | Feeding text-oriented downstream tools |
If you need JSON or a lossless round trip into another format, the DocLang viewer and Docling library are the documented paths. Choose the format that matches the next step in your pipeline rather than downloading all three by default. The playground's role is inspection and quick export.
What do the toolbar controls do?
The toolbar contains the model name, Download, Stop and Advanced. Each control is documented in the Space README with explicit behavior. The toolbar is small by design. Advanced is where you change the checkpoint, edit the prompt and inspect progress.
| Control | Behavior |
|---|---|
| Download | Exports DCLX, HTML or Markdown after conversion |
| Stop | Halts an in-progress conversion |
| Advanced | Shows prompt, checkpoint dropdown, Convert, progress and elapsed time |
| Reset all | Closes the document, restores defaults and clears saved viewer settings |
Advanced state persists in the current browser, and ?advanced=on opens it from the start. Reset all also clears viewer settings that were saved locally, which is useful after experimenting with pane layouts. The toolbar is intentionally small, which keeps the Space focused on single-page conversion. Advanced is where you change the checkpoint, edit the prompt and inspect progress.
How does it differ from the full workbench demo?
The README explicitly says this Space is the playground rather than the full workbench demo. The playground is a single-page conversion viewer with three panes and simple controls; the workbench is the broader demonstration of the model family. Both run in the browser with no local install.
| Aspect | Playground | Workbench demo |
|---|---|---|
| Scope | One page at a time | Broader model demonstration |
| Interface | DocLang viewer with three panes | Full demo interface |
| Controls | Download, Stop, Advanced | Additional workflow options |
| Setup | No install required | No install required |
For a quick accuracy check on your own document, the playground is the faster route. For exploring how Docling and the sibling Granite Vision models combine, use the workbench and the demos linked from IBM's announcement. Both run in the browser, so neither requires a local install.
Frequently asked questions about the playground
These questions resolve the small decisions that slow down a first Playground session: cost, PDF length, checkpoint choice and programmatic access. The answers come from the Space README and IBM's announcement, not from an unsupported API contract. These come from the Space README, not an API contract.
Is the Granite Docling V2 Playground free?
It runs as a public Hugging Face Space on Zero hardware and needs no account for ordinary use. The Space is Apache-2.0 licensed, consistent with the underlying models.
Can I convert a 50-page PDF?
No. PDFs are limited to ten pages in this Space, and pages are rasterized first. Split larger documents and test representative pages instead.
Which model should I choose?
Use 500M for speed and 2B when a page is dense or structurally difficult. Convert the same page with both and compare the markup pane before deciding.
Can I call the playground from my app?
The README documents a Gradio app, not a supported production API. For programmatic use, run the checkpoints through Transformers, vLLM, mlx-vlm or Docling.