Model reference · open weights

PP-OCRv6_medium_rec_safetensors

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

PP-OCRv6_medium_rec_safetensors is an open-weight language model from Baidu. PP-OCRv6_medium_rec_safetensors (FP32) weighs 38 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-OCRv6_medium_rec is a text recognition model developed by Baidu that performs image-to-text tasks.
  • It contains 19M parameters and supports 50 languages.
  • The model is released under the apache-2.0 license.

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

What it is

Released byBaidu
Released2026-06-08
Parameters19M
VRAM38 MB for the weights

What it runs on

Memory and cards for PP-OCRv6_medium_rec_safetensors (FP32)

38 MBweights, file size
570 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-OCRv6_medium_rec_safetensors

Read the model card

PP-OCRv6: From 1.5M to 34.5M Parameters, Surpassing Billion-Scale VLMs on OCR Tasks

🔥 Official Website 📝 Technical Report

PP-OCRv6 Overview

PP-OCRv6 is a lightweight OCR system that combines architectural innovation with data-centric optimization. It redesigns the backbone, detection neck, and recognition neck around a unified MetaFormer-style building block with structural reparameterization. Three model tiers (medium, small, tiny) share the same block primitives, covering deployment scenarios from server to edge.

Key Features

  1. Unified and Scalable Model Family: A three-tier OCR model family spanning 1.5M to 34.5M parameters. PP-OCRv6_medium achieves 86.2% detection Hmean and 83.2% recognition accuracy, outperforming PP-OCRv5_server by +4.6% and +5.1% respectively.

  2. Lightweight Architectural Innovations: (i) LCNetV4, a MetaFormer-style lightweight backbone with structural reparameterization; (ii) RepLKFPN, a detection neck with dilated reparameterizable depthwise convolutions; (iii) EncoderWithLightSVTR, a recognition neck with local-global attention and additive skip connections.

  3. Multi-Language and Scenario Support: Supports 50 languages and diverse industrial scenes (digital displays, dot-matrix characters, tire prints, etc.), surpassing Qwen3-VL-235B, GPT-5.5, and Gemini-3.1-Pro with orders of magnitude fewer parameters.

PP-OCRv6_medium_rec

Introduction

PP-OCRv6 text recognition architecture overview

PP-OCRv6_medium_rec is the largest recognition model in the PP-OCRv6 series. It uses LCNetV4 as the backbone and EncoderWithLightSVTR as the recognition neck, with a CTC+NRTR multi-head decoder. The model supports 50 languages and contains 19M parameters. The key accuracy metrics are as follows:

ModelW-AvgHandwritten CNHandwritten ENPrinted CNPrinted ENTCAncientJPConfusableSpecialGeneralPinyinArtisticIndustrialScreenCard
GPT-5.564.219.256.975.782.257.563.758.649.148.367.750.453.062.467.771.1
Qwen3-VL-235B74.949.773.282.386.276.433.666.256.149.082.576.569.674.773.878.7
Kimi-K2.662.931.058.476.880.962.716.554.143.538.068.045.259.957.158.468.4
MiniMax-M354.115.560.363.581.553.22.243.742.242.853.850.344.344.156.667.0
Gemini-3.1-Pro71.446.473.080.090.569.518.067.254.450.374.675.963.169.173.275.9
PP-OCRv5_server78.158.059.690.185.174.760.473.759.456.886.574.464.070.268.187.6
PP-OCRv5_mobile73.741.750.986.086.072.057.875.855.754.880.772.554.059.357.681.7
PP-OCRv6_medium83.262.167.891.594.178.672.490.564.961.787.578.171.277.482.588.1
PP-OCRv6_small81.357.661.190.593.377.071.188.264.160.285.775.968.476.479.786.9
PP-OCRv6_tiny73.540.139.386.788.465.068.489.852.357.178.065.454.762.171.280.5

Quick Start

Installation

  1. PaddleOCR
# Install the basic version
pip install paddleocr

# Install the full version (includes all features)
pip install "paddleocr[all]"
  1. Transformers environment (required for safetensors models)
pip install transformers torch

Model Usage

You can quickly experience the functionality with a single command:

paddleocr text_recognition \
    --model_name PP-OCRv6_medium_rec \
    --engine transformers \
    -i https://cdn-uploads.huggingface.co/production/uploads/681c1ecd9539bdde5ae1733c/2PZfbirjfxA88695lRmgk.jpeg

You can also integrate the model inference of the text recognition module into your project. Before running the following code, please download the sample image to your local machine.

from paddleocr import TextRecognition
model = TextRecognition(model_name="PP-OCRv6_medium_rec", engine="transformers")
output = model.predict(input="2PZfbirjfxA88695lRmgk.jpeg", batch_size=1)
for res in output:
    res.print()
    res.save_to_json(save_path="./output/res.json")

After running, the obtained result is as follows:

{'res': {'input_path': '2PZfbirjfxA88695lRmgk.jpeg', 'page_index': None, 'rec_text': 'day as a reminder of the', 'rec_score': 0.9857}}

The visualized image is as follows:

For details about usage command and descriptions of parameters, please refer to the Document.

Pipeline Usage

The general OCR pipeline is used to solve text recognition tasks by extracting text information from images. The pipeline consists of several modules:

  • Document Image Orientation Classification Module (Optional)
  • Text Image Unwarping Module (Optional)
  • Text Line Orientation Classification Module (Optional)
  • Text Detection Module
  • Text Recognition Module

Run a single command to quickly experience the OCR pipeline:

paddleocr ocr -i https://cdn-uploads.huggingface.co/production/uploads/681c1ecd9539bdde5ae1733c/3ul2Rq4Sk5Cn-l69D695U.png \
    --text_detection_model_name PP-OCRv6_medium_det \
    --text_recognition_model_name PP-OCRv6_medium_rec \
    --engine transfo

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

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms