Qianfan-OCR

Checkpointbaidu/Qianfan-OCRModel card indexedModel card

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
Source 1: baidu/Qianfan-OCR · publisher model cardSource 2: baidu/Qianfan-OCR · Hugging Face metadataSource 3: baidu/Qianfan-OCR · publisher configurationReviewed
Model notes and sources

Engine support

3 engines

Engine support for Qianfan-OCR
EngineReleaseCheckpoint supportEvidence scopeLast known supported
vLLM0.28.0Newest indexedCheckpoint evidenceSource: vLLM v0.28.0 · docs/models/supported_models.mdReviewed 0.28.0This release
Features, dependencies and evidence for vLLM 0.28.0
SGLang0.5.19Newest indexedNo matching evidence curatedNo supported release indexed
Features, dependencies and evidence for SGLang 0.5.19
TensorRT-LLM1.2.1Newest indexedNo matching evidence curatedNo 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.