Views
No views yet
tiiuae/Falcon-OCR for inference
on Apple Silicon via mlx-vlm.mlx_vlm.convert (mlx-vlm 0.4.4).bfloat16.3a4d95a8b0008f7430df30a82cf35e6c3b6bcb66.trust_remote_code=True — the repository ships a custom
FalconOCRProcessor / FalconOCRForCausalLM that is loaded via
dynamic module import.mlx_vlm.convert raises
AttributeError: 'FalconOCRProcessor' object has no attribute 'save_pretrained'
at the very end of the conversion step. The weights and tokenizer are written
successfully before the error — so the artifacts uploaded here are complete
and mlx_vlm.load(...) / docling's MlxVlmEngine can consume them.1from mlx_vlm import load, generate
2model, processor = load("mlx-community/Falcon-OCR-bf16", trust_remote_code=True)
3output = generate(model, processor, prompt="", image=["path/to/page.png"])
4print(output)