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…
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.
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
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.
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.
| 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 |
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
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 |
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.
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.
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.
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:
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:
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:
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.
README.md 5 KB
Listed Hugging Face Spaces in the same category that share the most tags with this one.
| Product | Likes | Built with | License | Last change |
|---|---|---|---|---|
| Xiaomi OCR 0 Demo This page | 18 | docker | apache-2.0 | |
| AI JukeboxShares docker | 426 | docker | mit | |
| AUDIOShares docker | 25 | docker | apache-2.0 | |
| Swap Face ModelShares docker | 21 | docker | mit | |
| Image To ReliefShares docker | 3 | docker | mit | |
| Hermes Agent by Mega-EvolutionsShares docker | 3 | docker | mit |
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.
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…
LibertAIDAI · Kit
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…
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…
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…
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…
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…