Instructions to use fwgpiyawudk/OvisOCR3-mlx-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use fwgpiyawudk/OvisOCR3-mlx-4bit with MLX:
# 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("fwgpiyawudk/OvisOCR3-mlx-4bit") config = load_config("fwgpiyawudk/OvisOCR3-mlx-4bit") # 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) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use fwgpiyawudk/OvisOCR3-mlx-4bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "fwgpiyawudk/OvisOCR3-mlx-4bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "fwgpiyawudk/OvisOCR3-mlx-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use fwgpiyawudk/OvisOCR3-mlx-4bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "fwgpiyawudk/OvisOCR3-mlx-4bit"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default fwgpiyawudk/OvisOCR3-mlx-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use fwgpiyawudk/OvisOCR3-mlx-4bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "fwgpiyawudk/OvisOCR3-mlx-4bit"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "fwgpiyawudk/OvisOCR3-mlx-4bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
OvisOCR3 โ MLX (4bit)
Affine-quantized 4-bit (group size 64) MLX conversion of
ATH-MaaS/OvisOCR3 โ a unified 0.8B
OCR / document-understanding model (document Markdown/JSON/layout parsing,
plain OCR, KIE, figure captioning, cross-page tables), fine-tuned from
Qwen/Qwen3.5-0.8B (qwen3_5
architecture).
Converted on 2026-11-14 with mlx-vlm 0.7.12:
python -m mlx_vlm convert \
--hf-path ATH-MaaS/OvisOCR3 \
--mlx-path OvisOCR3-4bit \
-q --q-bits 4 --q-group-size 64
Use
Requires mlx-vlm >= 0.3.12 (the first version that knows qwen3_5).
mlx_vlm.server --model fwgpiyawudk/OvisOCR3-mlx-4bit --port 8080 \
--min-pixels 200704 --max-pixels 8294400 # official 448*448 / 2880*2880
from mlx_vlm import load, generate
model, processor = load("fwgpiyawudk/OvisOCR3-mlx-4bit")
prompt = "<an official task prompt, e.g. document_markdown from prompts/>"
output = generate(model, processor, prompt=prompt, image="page.png",
max_tokens=6000, temperature=0)
- Prompts: the official task prompts ship in this repo's
prompts/folder (document_markdown,document_structured,document_layout,plain_ocr, ...) and define the output contract โ use them verbatim. - Request shape: image first, then the prompt text; thinking disabled
(
enable_thinking=Falseโ the source card's apply_chat_template passes it). - Sampling: greedy, temperature 0.0 (the source card's SamplingParams);
max_tokens 16384officially, 6000 in our eval runs.
Quantization note
No official 4-bit numbers exist for OvisOCR3. On the official Typhoon OCR V2 cards (same Qwen3.5 family) the 4-bit versions lost ~10 points on Thai pages (2B: 70.5 vs 80.6 MDPBench TH) while 8-bit matched bf16 โ prefer 8-bit for Thai documents.
- Downloads last month
- 87
4-bit