Merged 4-bit MLX model for Apple Silicon.
from mlx_lm import load
model, tok = load('RivinduT/qwen2.5-1.5b-receipt-extractor-mlx-4bit')
Receipt OCR text in, JSON out (items with name / quantity / unit_price / price, plus subtotal, tax, service_charge, discount, total, cash, change, credit_card, item_count). Values are copied verbatim from the receipt.
| Run | Field F1 | Doc exact match | Valid JSON (first try) | p50 latency |
|---|---|---|---|---|
| base-qwen2.5-1.5b | 0.300 | 0.00 | 0.97 | 3.76s |
| gemini-3.5-flash-lite | 0.900 | 0.43 | 0.99 | 0.94s |
| lora-gguf-q4km-docker-cpu | 0.925 | 0.56 | 0.99 | 3.88s |
| lora-qwen2.5-1.5b | 0.928 | 0.57 | 0.99 | 2.86s |
Training, evaluation, API, MCP server and demo code: https://github.com/RivinduT/receipt-extractor-lora