This repository contains GGUF format quantizations (Q4_K_M, Q5_K_M, Q6_K, Q8_0) of Qianfan-OCR, a 4B-parameter end-to-end document intelligence model developed by the Baidu Qianfan Team. It unifies document parsing, layout analysis, and document understanding within a single vision-language architecture.
Qianfan-OCR is designed to replace traditional multi-stage OCR pipelines. Instead of chaining separate layout detection and text recognition modules, it performs direct image-to-Markdown conversion. It introduces Layout-as-Thought, an optional thinking phase where the model generates structured layout representations before producing the final output.
1./koboldcpp \
2 --model qianfan-ocr-4b-Q4_K_M.gguf \
3 --mmproj qianfan-ocr-mmproj.gguf \
4 --usecuda 0 \
5 --gpulayers 99 \
6 --contextsize 8192 \
7 --remotetunnel