Mindket

Xiaomi OCR 0 Demo

Newversion 1 · updated

Overview

Parses images and PDFs, extracts fields and answers questions about documents with the Xiaomi-OCR-0 model, in a Docker-based document workbench that needs a GPU.

Xiaomi OCR 0 Demo is a kit in the Productivity category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Docker on Windows, macOS or Linux
  • Python and pip, only to fetch the files
  • A GPU, since the README recommends an A10G large with 24 GB of GPU memory, 12 vCPU and 46 GB of RAM
  • A first startup that downloads the model weights
Runs in
  • A browser, by visiting the Space on Hugging Face
  • Windows, macOS or Linux with Docker, for a copy on your own computer
  • Port 7860 on your machine, once the container runs
Start with
pip install -U huggingface_hub
hf download loongwayX/Xiaomi-OCR-0-demo --repo-type space --local-dir Xiaomi-OCR-0-demo
cd Xiaomi-OCR-0-demo

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system
DockerContainer

About

What it is

Xiaomi OCR 0 Demo is a document workbench that parses images and PDFs, extracts key information and answers questions about a document. It serves the Xiaomi-OCR-0 model with vLLM on the Space's GPU, next to two separate PP-DocLayoutV3 layout workers. It runs from a Docker image on port 7860.

Who it suits

People who handle scanned or photographed documents and want text, fields and answers out of them, and engineers studying a document AI stack.

IndustryWho uses itHow they use itExample
FinanceBack-office teamsPull fields from invoices and formsUpload a PDF and read the extracted fields
LegalParalegalsRead the text of scanned pagesParse a scanned contract page
OperationsRecords teamsTurn paper into searchable textProcess a photo of a page
SoftwareEngineersStudy a vLLM and layout worker setupRead layout_server.py and start.py

People whose documents are confidential should skip the hosted Space, because uploads are archived and relayed as described below.

Where to use it

  • A browser, by visiting the Space on Hugging Face
  • Windows, macOS or Linux with Docker, for a copy on your own computer
  • Port 7860 on your machine, once the container runs
Use caseWhoWhat they get back
Parse an image or PDFDocument teamsThe parsed content of the page
Extract key informationFinance and operationsFields pulled from the document
Ask about a documentAnyoneAn answer from visual question answering

How to set it up

  • Docker on Windows, macOS or Linux
  • Python and pip, only to fetch the files
  • A GPU, since the README recommends an A10G large with 24 GB of GPU memory, 12 vCPU and 46 GB of RAM
  • A first startup that downloads the model weights
  1. Install the Hugging Face hub package.
  2. Download the Space with the hf command.
  3. Move into the new folder.
  4. Build the Docker image.
  5. Run the container and publish port 7860.
pip install -U huggingface_hub
hf download loongwayX/Xiaomi-OCR-0-demo --repo-type space --local-dir Xiaomi-OCR-0-demo
cd Xiaomi-OCR-0-demo
docker build -t xiaomi-ocr-0-demo .
docker run -it -p 7860:7860 xiaomi-ocr-0-demo

How to use it

Online, visit the Space on Hugging Face and add an image or PDF to the workbench. With a local container, open port 7860 in your browser once the model and both layout workers report ready.

VariableDefault
XIAOMI_OCR_MODELSeerRay-Lab/Xiaomi-OCR-0
MAX_MODEL_LEN16384
MAX_NUM_SEQS4
GPU_MEMORY_UTILIZATION0.65
REGION_CONCURRENCY4
LAYOUT_CPU_THREADS2 per layout worker

Example

You add a PDF to the workbench and ask for its key fields. The app parses the pages with the layout workers, reads them with the model, and returns the extracted information.

For newcomers and experts

If you are new, start with one image of a printed page and ask for a plain parse. A page that is clear and upright gives the easiest first result.

If you know the field, the stack runs vLLM 0.19.1 with CUDA 12 PyTorch 2.10 and Transformers 5.8.1, while PaddlePaddle GPU 3.3.1 and PaddleX 3.7.2 live in a separate environment. Both layout workers share GPU 0 with vLLM and take requests when idle. It starts with BF16 precision, a context of about 16 thousand tokens, four sequences at a time and four region workers.

  1. You add an image or PDF
  2. Layout workers find the regions
  3. Xiaomi-OCR-0 reads them through vLLM
  4. You get text, fields or an answer

Good to know

  • Startup: the public port opens only after the model and both layout workers are ready
  • Weights: they download on first startup, and caches may need to be fetched again after a rebuild
  • License: apache-2
  • Cost to run: a GPU such as an A10G large, no API key or paid service is named
  • Data it reaches: on the hosted Space, uploads are archived locally, and a relay copies inputs and OCR results to Xiaomi FDS, with no document data sent to a Hugging Face dataset
  • Not for: confidential documents on the hosted Space, because of the upload archive

README and files

README

Xiaomi OCR 0 Demo

Parses images and PDFs, extracts fields and answers questions about documents with the Xiaomi-OCR-0 model, in a Docker-based document workbench that needs a GPU.

Made by loongwayX on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: Xiaomi OCR 0 Demo is a document workbench that parses images and PDFs, extracts key information and answers questions about a document. It serves the Xiaomi-OCR-0 model with vLLM on the Space's GPU, next to two separate PP-DocLayoutV3 layout workers. It runs from a Docker image on port 7860.

Who it suits: People who handle scanned or photographed documents and want text, fields and answers out of them, and engineers studying a document AI stack.

Industry | Who uses it | How they use it | Example
Finance | Back-office teams | Pull fields from invoices and forms | Upload a PDF and read the extracted fields
Legal | Paralegals | Read the text of scanned pages | Parse a scanned contract page
Operations | Records teams | Turn paper into searchable text | Process a photo of a page
Software | Engineers | Study a vLLM and layout worker setup | Read layout_server.py and start.py

People whose documents are confidential should skip the hosted Space, because uploads are archived and relayed as described below.

Where to use it:

  • A browser, by visiting the Space on Hugging Face
  • Windows, macOS or Linux with Docker, for a copy on your own computer
  • Port 7860 on your machine, once the container runs
Use case | Who | What they get back
Parse an image or PDF | Document teams | The parsed content of the page
Extract key information | Finance and operations | Fields pulled from the document
Ask about a document | Anyone | An answer from visual question answering

How to set it up:

  • Docker on Windows, macOS or Linux
  • Python and pip, only to fetch the files
  • A GPU, since the README recommends an A10G large with 24 GB of GPU memory, 12 vCPU and 46 GB of RAM
  • A first startup that downloads the model weights
  1. Install the Hugging Face hub package.
  2. Download the Space with the hf command.
  3. Move into the new folder.
  4. Build the Docker image.
  5. Run the container and publish port 7860.
pip install -U huggingface_hub
hf download loongwayX/Xiaomi-OCR-0-demo --repo-type space --local-dir Xiaomi-OCR-0-demo
cd Xiaomi-OCR-0-demo
docker build -t xiaomi-ocr-0-demo .
docker run -it -p 7860:7860 xiaomi-ocr-0-demo

How to use it: Online, visit the Space on Hugging Face and add an image or PDF to the workbench. With a local container, open port 7860 in your browser once the model and both layout workers report ready.

Variable | Default
XIAOMI_OCR_MODEL | SeerRay-Lab/Xiaomi-OCR-0
MAX_MODEL_LEN | 16384
MAX_NUM_SEQS | 4
GPU_MEMORY_UTILIZATION | 0.65
REGION_CONCURRENCY | 4
LAYOUT_CPU_THREADS | 2 per layout worker

Example: You add a PDF to the workbench and ask for its key fields. The app parses the pages with the layout workers, reads them with the model, and returns the extracted information.

For newcomers and experts: If you are new, start with one image of a printed page and ask for a plain parse. A page that is clear and upright gives the easiest first result.

If you know the field, the stack runs vLLM 0.19.1 with CUDA 12 PyTorch 2.10 and Transformers 5.8.1, while PaddlePaddle GPU 3.3.1 and PaddleX 3.7.2 live in a separate environment. Both layout workers share GPU 0 with vLLM and take requests when idle. It starts with BF16 precision, a context of about 16 thousand tokens, four sequences at a time and four region workers.

You add an image or PDF
Layout workers find the regions
Xiaomi-OCR-0 reads them through vLLM
You get text, fields or an answer

Good to know:

  • Startup: the public port opens only after the model and both layout workers are ready
  • Weights: they download on first startup, and caches may need to be fetched again after a rebuild
  • License: apache-2
  • Cost to run: a GPU such as an A10G large, no API key or paid service is named
  • Data it reaches: on the hosted Space, uploads are archived locally, and a relay copies inputs and OCR results to Xiaomi FDS, with no document data sent to a Hugging Face dataset
  • Not for: confidential documents on the hosted Space, because of the upload archive

On Hugging Face, 13 November 2026

  • Likes: 18
  • Built with: docker
  • License: apache-2.0

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
Xiaomi OCR 0 Demo This page18dockerapache-2.0
AI JukeboxShares docker426dockermit
AUDIOShares docker25dockerapache-2.0
Swap Face ModelShares docker21dockermit
Image To ReliefShares docker3dockermit
Hermes Agent by Mega-EvolutionsShares docker3dockermit
Numbers as Mindket last read them, on 2026-11-12.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

Searched

More from Mindket

See all from Mindket

Bonsai-27B-GGUF

lmstudio-community · Kit

A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

New

Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…

New

MusicGen Small

facebook · Kit

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…

New

Similar in Productivity

See all in Productivity

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Frontend Slides

zarazhangrui · Skill

Builds HTML presentations from scratch or from a PowerPoint file and shows visual style previews to pick from, for people who want web slides with no CSS or Ja…

New32.3k