Can the Apple M4 (16 GB) run surya-ocr-2.5?
surya-ocr-2.5·689M·Apple M4 (16 GB)·16 GB unified memory
Yes. The Apple M4 (16 GB) runs surya-ocr-2.5 fully in unified memory at FP16 / BF16 (about 2.0 GB of 11 GB).
- best quant
- FP16 / BF16
- needs
- 2.0 GB
- usable
- 11 GB
Estimates from the model's size.Try other contexts on the surya-ocr-2.5 page →
Every quantisation of surya-ocr-2.5 on the Apple M4 (16 GB)
| Quant | Memory | Fit |
|---|---|---|
| Q4_K_M | 1.0 GB | fits |
| Q8_0 | 1.2 GB | fits |
| FP16 / BF16 pick | 2.0 GB | fits |
Speed is a bandwidth-based estimate for generating text (120 GB/s); prompt processing and long contexts are slower.
Run surya-ocr-2.5 on the Apple M4 (16 GB)
Using Q8_0, the best fit for Apple M4 (16 GB).
ollama run hf.co/datalab-to/surya-ocr-2.5-gguf:Q8_0 llama-server -hf datalab-to/surya-ocr-2.5-gguf:Q8_0brew install llama.cpp ships with Metal. Downloads the GGUF on first run.
lms get datalab-to/surya-ocr-2.5-gguf@Q8_0Then load it from the LM Studio app or with `lms load`.
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="datalab-to/surya-ocr-2.5", 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 →| Model | Params | Best quant | Memory |
|---|---|---|---|
| 716M | FP16 / BF16 | ≈2.1 GBFits in memory | |
| 959M | FP16 / BF16 | ≈2.6 GBFits in memory | |
| 959M | FP16 / BF16 | ≈2.6 GBFits in memory | |
| 1.1B | FP16 / BF16 | ≈3.0 GBFits in memory | |
| 777M | FP16 / BF16 | ≈2.2 GBFits in memory | |
| 686M | FP16 / BF16 | ≈2.0 GBFits in memory |
Other GPUs that run surya-ocr-2.5
Frequently asked questions
- Can the Apple M4 (16 GB) run surya-ocr-2.5?
- Yes. The Apple M4 (16 GB) runs surya-ocr-2.5 fully in unified memory at FP16 / BF16 (about 2.0 GB of 11 GB).
- Which quantisation of surya-ocr-2.5 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.