How to use from the
Use from the
MLX library
# Make sure mlx-vlm is installed
# pip install --upgrade mlx-vlm

from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
from mlx_vlm.utils import load_config

# Load the model
model, processor = load("goodmai/DeepSeek-OCR-8bit")
config = load_config("goodmai/DeepSeek-OCR-8bit")

# Prepare input
image = ["http://images.cocodataset.org/val2017/000000039769.jpg"]
prompt = "Describe this image."

# Apply chat template
formatted_prompt = apply_chat_template(
    processor, config, prompt, num_images=1
)

# Generate output
output = generate(model, processor, formatted_prompt, image)
print(output)

Запустить через Basalt Run with Basalt bas-alt.vercel.app Basalt v0.11.0

⚡ Запустить в Basalt v0.11.0 · bas-alt.vercel.app (macOS 27+ · Swift 6.4 · Apple Silicon, без Python) · Upstream source: mlx-community/DeepSeek-OCR-8bit:

basalt serve --model goodmai/gemma-4-12B-it-qat-4bit --pipeline-ocr-model goodmai/DeepSeek-OCR-8bit --rest

mlx-community/DeepSeek-OCR-8bit

This model was converted to MLX format from prince-canuma/DeepSeek-OCR using mlx-vlm version 0.3.10. Refer to the original model card for more details on the model.

Use with mlx

pip install -U mlx-vlm
python -m mlx_vlm.generate --model mlx-community/DeepSeek-OCR-8bit --max-tokens 100 --temperature 0.0 --prompt "Describe this image." --image <path_to_image>
Downloads last month
117
Safetensors
Model size
3B params
Tensor type
BF16
·
U32
·
MLX
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including goodmai/DeepSeek-OCR-8bit