Model reference · open weights

PP-OCRv5_mobile_det_safetensors

LLMs PaddlePaddle Image→text 1 build Open weights 871 dl/mo

PP-OCRv5_mobile_det_safetensors is an open-weight language model from Baidu. PP-OCRv5_mobile_det_safetensors (FP32) weighs 7 MB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • PP-OCRv5_mobile_det_safetensors is a 4M parameter image-to-text model developed by Baidu for detecting text in diverse scenarios.
  • It supports English and Chinese languages and is designed to handle complex layouts, varying text sizes, and challenging backgrounds.
  • The model is distributed under the apache-2.0 licence.

Summary of the PaddlePaddle/PP-OCRv5_mobile_det_safetensors model card, 2026-10-01

What it is

Released byBaidu
Released2026-01-15
Parameters4M
VRAM7 MB for the weights

What it runs on

Memory and cards for PP-OCRv5_mobile_det_safetensors (FP32)

7 MBweights, file size
762 MBruntime overhead, at least

How much memory each request adds isn't estimated yet for this architecture. The weights need at least the cards below, plus room for the context.

CardWeights alone
RTX 3060 12 GBfits
RTX 4060 Ti 16 GBfits
RTX 3090 24 GBfits
RTX 4090 24 GBfits
RTX 5090 32 GBfits
L40S 48 GBfits
A100 80 GBfits
H100 80 GBfits
RTX PRO 6000 Blackwell 96 GBfits
DGX Spark (GB10) 128 GB unifiedfits
H200 141 GBfits
B200 180 GBfits

From the model card

What Baidu says about PP-OCRv5_mobile_det_safetensors

Read the model card

Introduction

PP-OCRv5_mobile_det is one of the PP-OCRv5_det series, the latest generation of text detection models developed by the PaddleOCR team. It aims to efficiently and accurately supports the detection of text in diverse scenarios—including handwriting, vertical, rotated, and curved text—across multiple languages such as Simplified Chinese, Traditional Chinese, English, and Japanese. Key features include robust handling of complex layouts, varying text sizes, and challenging backgrounds, making it suitable for practical applications like document analysis, license plate recognition, and scene text detection. The key accuracy metrics are as follow:

Handwritten ChineseHandwritten EnglishPrinted ChinesePrinted EnglishTraditional ChineseAncient TextJapaneseGeneral ScenarioPinyinRotationDistortionArtistic TextAverage
0.7440.7770.9050.9100.8230.5810.7270.7210.5750.6470.8270.5250.770

Model Usage

import requests
from PIL import Image
from transformers import AutoImageProcessor, AutoModelForObjectDetection

model_path="PaddlePaddle/PP-OCRv5_mobile_det_safetensors"
model = AutoModelForObjectDetection.from_pretrained(model_path, device_map="auto")
image_processor = AutoImageProcessor.from_pretrained(model_path)

image = Image.open(requests.get("https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/general_ocr_001.png", stream=True).raw).convert("RGB")
inputs = image_processor(images=image, return_tensors="pt").to(model.device)
outputs = model(**inputs)

results = image_processor.post_process_object_detection(outputs, target_sizes=inputs["target_sizes"])

for result in results:
    print(result["boxes"])
    print(result["scores"])

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

How it works

How language models work

Your prompttext / messagesTransformerattention over tokensNext-token loopgenerate + streamResponsetext · tool callsA language model reads your tokens and predicts the next one, again and again, streaming the reply back.
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms