selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

baidu logo

Can the Apple M4 (16 GB) run Unlimited-OCR-2?

Unlimited-OCR-2·3.3B (1.1B active)·Apple M4 (16 GB)·16 GB unified memory

Saved in this browser, used on every model page.
Yes

Yes. The Apple M4 (16 GB) runs Unlimited-OCR-2 fully in unified memory at FP16 / BF16 (about 7.1 GB of 11 GB).

best quant
FP16 / BF16
needs
7.1 GB
usable
11 GB

Estimates from the model's size.Try other contexts on the Unlimited-OCR-2 page →

Every quantisation of Unlimited-OCR-2 on the Apple M4 (16 GB)

QuantMemoryFit
Q4_K_M 2.8 GBfits
Q8_0 4.0 GBfits
FP16 / BF16 pick7.1 GBfits

Speed is a bandwidth-based estimate for generating text (120 GB/s); prompt processing and long contexts are slower.

Run Unlimited-OCR-2 on the Apple M4 (16 GB)

Using FP16 / BF16, the best fit for Apple M4 (16 GB).

llama.cpp · OpenAI-compatible server with a web UIdocs
llama-server -hf AtomicChat/Unlimited-OCR-2-GGUF:BF16

brew install llama.cpp ships with Metal. Downloads the GGUF on first run.

Transformers · Ask about an imagedocs
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="baidu/Unlimited-OCR-2", dtype="auto", device_map="auto")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"},
            {"type": "text", "text": "Describe this image."},
        ],
    }
]
out = pipe(text=messages, max_new_tokens=256)
print(out[0]["generated_text"][-1]["content"])

OCR models that fit the Apple M4 (16 GB) comfortably

All that fit →
ModelParamsBest quantMemoryLicence
3.3BA1.1BFP16 / BF16≈8.0 GBFits in memoryCommercial OK
deepseek-ai logoDeepSeek-OCRdeepseek-ai
3.3BA1.1BFP16 / BF16≈8.0 GBFits in memoryCommercial OK
deepseek-ai logoDeepSeek-OCR-2deepseek-ai
3.4BA1.2BFP16 / BF16≈8.1 GBFits in memoryCommercial OK
3.8BFP16 / BF16≈8.9 GBFits in memoryCheck licence
dots-studio logodots.ocrdots-studio
3BFP16 / BF16≈7.3 GBFits in memoryCommercial OK
3.8BFP16 / BF16≈8.9 GBFits in memoryCheck licence

Other GPUs that run Unlimited-OCR-2

Frequently asked questions

Can the Apple M4 (16 GB) run Unlimited-OCR-2?
Yes. The Apple M4 (16 GB) runs Unlimited-OCR-2 fully in unified memory at FP16 / BF16 (about 7.1 GB of 11 GB).
Which quantisation of Unlimited-OCR-2 should I use on the Apple M4 (16 GB)?
FP16 / BF16: the largest one that fits. Expected quality: lossless compared with the full-precision weights.

Memory and speed are estimates from the model's size and the card's memory bandwidth; real numbers depend on the runtime, drivers and context length. Community figures are medians of user reports.