# Can the Apple M4 Pro (48 GB) run h2o-lightning-31b?

> Yes. The Apple M4 Pro (48 GB) runs h2o-lightning-31b fully in unified memory at Q6_K (about 28 GB of 36 GB), at roughly 5.8 tokens/s.

Apple M4 Pro (48 GB): 48 GB (36 GB usable), 273 GB/s. Estimates at an 8K context.

## Every quantisation

| Quant | Quality | ≈ GB | Fit | Est. tok/s |
|---|---|---|---|---|
| Q2_K | Heavy loss | 12.58 | fits | 15 |
| Q3_K_M | Noticeable loss | 17.47 | fits | 9.8 |
| Q4_K_M | Small loss | 21.06 | fits | 7.9 |
| Q5_K_M | Near-lossless | 24.27 | fits | 6.8 |
| Q6_K (pick) | Near-lossless | 27.72 | fits | 5.8 |
| Q8_0 | Lossless | 35.02 | tight | 4.5 |
| F16 | Lossless | 63.69 | no | — |

## Run it

Ask about an image (transformers):

```python
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="h2oai/h2o-lightning-31b", 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"])
```


## Vision models that fit comfortably

- [google/gemma-4-31B-it](https://selfhost.directory/models/google/gemma-4-31b-it/on/apple-m4-pro-48gb): Q6_K ≈32.64 GB, est. 5.8 tok/s
- [Qwen/Qwen3.8-27B](https://selfhost.directory/models/qwen/qwen3.8-27b/on/apple-m4-pro-48gb): Q8_0 ≈30.9 GB, est. 5.1 tok/s
- [Qwen/Qwen3.6-35B-A3B](https://selfhost.directory/models/qwen/qwen3.6-35b-a3b/on/apple-m4-pro-48gb): Q6_K ≈30.09 GB, est. 61 tok/s
- [Qwen/Qwen3.6-27B](https://selfhost.directory/models/qwen/qwen3.6-27b/on/apple-m4-pro-48gb): Q8_0 ≈30.46 GB, est. 5.1 tok/s
- [google/gemma-4-26B-A4B-it](https://selfhost.directory/models/google/gemma-4-26b-a4b-it/on/apple-m4-pro-48gb): Q8_0 ≈28.65 GB, est. 35 tok/s
- [meta-models/Muse-Glimmer-30B](https://selfhost.directory/models/meta-models/muse-glimmer-30b/on/apple-m4-pro-48gb): Q8_0 ≈29.87 GB, est. 4.7 tok/s

## Other GPUs that run it

- [Tesla P40](https://selfhost.directory/models/h2oai/h2o-lightning-31b/on/tesla-p40): Q4_K_M, est. 10 tok/s
- [Radeon RX 7900 XTX](https://selfhost.directory/models/h2oai/h2o-lightning-31b/on/rx-7900-xtx): Q4_K_M, est. 28 tok/s
- [Instinct MI50 32GB](https://selfhost.directory/models/h2oai/h2o-lightning-31b/on/instinct-mi50): Q6_K, est. 22 tok/s
- [GeForce RTX 5090](https://selfhost.directory/models/h2oai/h2o-lightning-31b/on/rtx-5090): Q6_K, est. 38 tok/s
- [RTX A6000](https://selfhost.directory/models/h2oai/h2o-lightning-31b/on/rtx-a6000): Q8_0, est. 13 tok/s
- [Apple M1 Max (64 GB)](https://selfhost.directory/models/h2oai/h2o-lightning-31b/on/apple-m1-max-64gb): Q8_0, est. 6.6 tok/s
- [NVIDIA A100 80GB](https://selfhost.directory/models/h2oai/h2o-lightning-31b/on/a100-80gb): F16, est. 18 tok/s
- [Apple M4 Max 40-core (128 GB)](https://selfhost.directory/models/h2oai/h2o-lightning-31b/on/apple-m4-max-128gb-40c): F16, est. 4.8 tok/s

---
Model: https://selfhost.directory/models/h2oai/h2o-lightning-31b. GPU: https://selfhost.directory/models/gpus/apple-m4-pro-48gb. Source: https://selfhost.directory/models/h2oai/h2o-lightning-31b/on/apple-m4-pro-48gb