Qianfan-OCR
Support summary
Qianfan-OCR is a checkpoint published by Baidu, built on the QianfanOCRForConditionalGeneration architecture. vLLM 0.28.0, the newest indexed vLLM release, documents support.
vLLM documents support in 11 of 20 indexed releases, from 0.21.0 to 0.28.0.
- Configured context
- 32,768 tokens
- License
- apache-2.0
Hugging Face model card
- Publisher
- Baidu
- Task
- image text to text
- License
- apache-2.0
- Library
- transformers
- Architecture
- QianfanOCRForConditionalGeneration
- Weight tensor elements
- 4.7B
- Tensor types
- BF16
- Configured context
- 32,768 tokens
- Languages
- multilingual
- Weight access
- Public
- Repository created
- 2026-03-18
Model notes and sources
- vLLM v0.28.0 · docs/models/supported_models.md · 11 indexed revisions, v0.21.0 to v0.28.0
- baidu/Qianfan-OCR · publisher model card
- baidu/Qianfan-OCR · Hugging Face metadata
- baidu/Qianfan-OCR · publisher configuration
- Reviewed
Engine support
3 engines
| Engine | Release | Checkpoint support | Evidence scope | Last known supported |
|---|---|---|---|---|
| vLLM | 0.28.0Newest indexed | Checkpoint evidenceSource: vLLM v0.28.0 · docs/models/supported_models.mdReviewed | 0.28.0This release | |
Features, dependencies and evidence for vLLM 0.28.0 | ||||
| SGLang | 0.5.19Newest indexed | No matching evidence curated | No supported release indexed | |
Features, dependencies and evidence for SGLang 0.5.19 | ||||
| TensorRT-LLM | 1.2.1Newest indexed | No matching evidence curated | No supported release indexed | |
Features, dependencies and evidence for TensorRT-LLM 1.2.1 | ||||
Plan a deployment of Qianfan-OCR
Pin checkpoint baidu/Qianfan-OCR at revision 623bf5d20d446abdb36606aa4547cd0c18886fe5 on a documented release (vLLM). Verify quantized kernels, chat templates, and parser flags on your target GPU before production rollout.
- Indexed weights store BF16 tensors; confirm your GPU architecture and engine build support this format natively.
- Configured maximum context is 32,768 tokens; cap
--max-model-len(or SGLang’s--context-length) to the longest prompt your workload actually serves so KV blocks stay available for concurrency. - Estimate weight and KV-cache memory for Qianfan-OCR, leaving headroom for runtime activations and CUDA graphs, then benchmark TTFT, TPOT, and throughput on representative traffic.
No standalone engine cookbook is indexed for baidu/Qianfan-OCR; check the publisher’s model card and release table above for launch arguments.