Qianfan-OCR

OCR Baidu Verified
  • Structured output
  • Open weights

Prices

1 offering · prices as listed
Baidu Qianfan (opens in a new tab) Official China · CNY Qianfan-OCR
Conditions/ 1K tokensInputOutput
Standard ¥0.00045¥0.0018

Prices from 百度智能云千帆:模型价格 (opens in a new tab) (checked Nov 1, 2026)

Standard: the price a request with no conditions pays (the headline price elsewhere on the site).

Details

Output formats
json
Context
32K
Max output
28K
Model ID

Not stated on Baidu’s pages: input modalities, output modalities, file formats, max file size (mb), languages, licence.

Run locally

Weights: baidu/Qianfan-OCR
  • Parameters 4.7B
  • Dense
  • Native precision BF16
  • Layers 36
  • KV cache per token 144 KB
  • Config positions 32K (config.json max_position_embeddings)
  • API context 31K (maker’s API)
My hardware GeForce RTX 4090 24 GB · 1008 GB/s · 64 GB DDR5 dual channel · 89.6 GB/s
On your hardware · GeForce RTX 4090
Runs well BF16 (native) (automatic) 8K context 47–71 tok/sOne GPU
WeightsKV cacheOverheadUsable
Needs
≈ 10.5 GB (weights 8.8 (maker’s file) + KV cache 1.1 + overhead 0.5)
Usable
21.6 GB (90% of its memory)
Generation speed
47–71 tok/s
Longest context
31K (the model’s limit)
First token
about 0.15–0.23 s for a 2K prompt
PrecisionWeightsNeeds at 8KOn your hardwareLongest context
BF16 (native)maker’s file8.8 GB≈ 10.5Runs well 47–71 tok/s31K
Q8_04.7 GB≈ 6.3Runs well 81–121 tok/s31K
FP84.4 GB≈ 6.0Runs well 85–127 tok/s31K
Q6_K3.6 GB≈ 5.3Runs well 99–148 tok/s31K
Q5_K_M3.1 GB≈ 4.8Runs well 110–165 tok/s31K
Q5_03.0 GB≈ 4.7Runs well 113–169 tok/s31K
Q4_K_M2.7 GB≈ 4.3Runs well 123–185 tok/s31K
Q4_02.5 GB≈ 4.1Runs well 130–195 tok/s31K
IQ4_XS2.3 GB≈ 4.0Runs well 135–203 tok/s31K
Q3_K_Mquality drops2.2 GB≈ 3.8Runs well 143–214 tok/s31K
IQ3_XXSquality drops1.7 GB≈ 3.3Runs well 167–250 tok/s31K
Q2_Kquality drops1.7 GB≈ 3.3Runs well 169–253 tok/s31K
IQ2_XXSquality drops1.1 GB≈ 2.8Runs well 208–311 tok/s31K

Click a row to choose a precision. “Maker’s file” sizes are the maker’s own files; others are parameters × bits per weight.

Compared with other hardware

Each at the highest precision it runs. Click one for details.

Smallest that runs it (Q4_K_M, 8K): GPU GeForce RTX 3080; unified memory Apple M5 · 16 GB.

Run commands

vLLM
vllm serve baidu/Qianfan-OCR --max-model-len 8192
Memory to fine-tune
Full≈ 72.8 GBDoesn’t fit your hardware
LoRA≈ 11.2 GBFits your hardware
QLoRA≈ 4.8 GBFits your hardware

Batch 1, 2,048-token sequences, gradient checkpointing; LoRA and QLoRA train rank-16 adapters on the attention projections.

Estimates; facts from the maker’s Hugging Face repositories, as of 2026-11-06. How it’s estimated

Cited scores

From third-party leaderboards, not measured by us

No cited leaderboard covers OCR models yet. We will cite one when its license allows.

  1. Now priced on Baidu Qianfan, China Input ¥0.00045 · Output ¥0.0018

Sources

Baidu · China · cloud.baidu.com

Snapshots, the same family and other models from this provider