Downloads · 30 days
153
10% of all-time downloads
olragon/PaddleOCR-VL-1.6-8bit
PaddleOCR-VL-1.6-8bit is a image-text-to-text model from olragon. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as apache-2.0.
MLX-quantized (8-bit, groupsize=64) version of PaddlePaddle/PaddleOCR-VL-1.6 for Apple Silicon inference via mlx-vlm.
Downloads · 30 days
153
10% of all-time downloads
All-time downloads
1.5K
Public
Parameters
906M
1.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.1 GB · 99%
How the weights are stored.
U32771M · 85%
From the Hugging Face model README
MLX-quantized (8-bit, group_size=64) version of PaddlePaddle/PaddleOCR-VL-1.6 for Apple Silicon inference via mlx-vlm.
from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
from mlx_vlm.utils import load_config
model_id = "olragon/PaddleOCR-VL-1.6-8bit"
model, processor = load(model_id)
config = load_config(model_id)
prompt = apply_chat_template(
processor, config,
"OCR the text in this image.",
num_images=1
)
result = generate(
model, processor, prompt,
image=["page.png"],
max_tokens=6000,
repetition_penalty=1.1,
verbose=False,
)
text = result.text if hasattr(result, "text") else str(result)
print(text)
Or via CLI:
uv run --python 3.12 --with "mlx-vlm>=0.3.11" --with pillow \
python3 -m mlx_vlm.generate \
--model olragon/PaddleOCR-VL-1.6-8bit \
--image page.png \
--prompt "OCR the text in this image." \
--max-tokens 6000
Converted using:
python3 -m mlx_vlm.convert \
--hf-path PaddlePaddle/PaddleOCR-VL-1.6 \
--mlx-path ./PaddleOCR-VL-1.6-8bit \
--quantize --q-bits 8
PaddleOCR-VL 1.6 improvements over 1.5:
Apache 2.0 (same as the base model)