# Can the Apple M4 Max 40-core (128 GB) run MLExpert?

> Yes. The Apple M4 Max 40-core (128 GB) runs MLExpert fully in unified memory at FP16 / BF16 (about 69 GB of 96 GB), at roughly 43 tokens/s.

Apple M4 Max 40-core (128 GB): 128 GB (96 GB usable), 546 GB/s. Estimates at an 8K context.

## Every quantisation

| Quant | Quality | ≈ GB | Fit | Est. tok/s |
|---|---|---|---|---|
| Q2_K | Heavy loss | 14.66 | fits | 264 |
| Q3_K_M | Noticeable loss | 18.09 | fits | 178 |
| Q4_K_M | Small loss | 22.96 | fits | 143 |
| Q5_K_M | Near-lossless | 27.52 | fits | 122 |
| Q6_K | Near-lossless | 31.19 | fits | 106 |
| Q8_0 | Lossless | 37.23 | fits | 82 |
| F16 (pick) | Lossless | 68.97 | fits | 43 |

## Run it

BF16 straight from Hugging Face (ollama):

```bash
ollama run hf.co/bartowski/InternScience_MLExpert-GGUF:BF16
```

OpenAI-compatible server with a web UI (llama.cpp):

```bash
llama-server -hf bartowski/InternScience_MLExpert-GGUF:BF16
```

Download with the lms CLI (lmstudio):

```bash
lms get bartowski/InternScience_MLExpert-GGUF@BF16
```

Chat with the pipeline API (transformers):

```python
from transformers import pipeline

pipe = pipeline("text-generation", model="InternScience/MLExpert", dtype="auto", device_map="auto")
messages = [{"role": "user", "content": "Explain self-hosting in one paragraph."}]
out = pipe(messages, max_new_tokens=512)
print(out[0]["generated_text"][-1]["content"])
```


## Chat models that fit comfortably

- [ornith-ai/Ornith-1.5-35B-A3B](https://selfhost.directory/models/ornith-ai/ornith-1.5-35b-a3b/on/apple-m4-max-128gb-40c): Q8_0 ≈38.11 GB, est. 94 tok/s
- [zai-org/GLM-4.7-Flash](https://selfhost.directory/models/zai-org/glm-4.7-flash/on/apple-m4-max-128gb-40c): Q8_0 ≈38.98 GB, est. 61 tok/s
- [Qwen/Qwen3-32B](https://selfhost.directory/models/qwen/qwen3-32b/on/apple-m4-max-128gb-40c): Q8_0 ≈36.55 GB, est. 8.6 tok/s
- [RecursiveSI/flint](https://selfhost.directory/models/recursivesi/flint/on/apple-m4-max-128gb-40c): Q8_0 ≈42.64 GB, est. 226 tok/s
- [openai/gpt-oss-20b](https://selfhost.directory/models/openai/gpt-oss-20b/on/apple-m4-max-128gb-40c): Q8_0 ≈12.72 GB, est. 67 tok/s
- [Qwen/Qwen3-30B-A3B](https://selfhost.directory/models/qwen/qwen3-30b-a3b/on/apple-m4-max-128gb-40c): Q8_0 ≈33.01 GB, est. 94 tok/s

## Other GPUs that run it

- [Tesla P40](https://selfhost.directory/models/internscience/mlexpert/on/tesla-p40): Q3_K_M, est. 113 tok/s
- [Radeon RX 7900 XTX](https://selfhost.directory/models/internscience/mlexpert/on/rx-7900-xtx): Q3_K_M, est. 313 tok/s
- [Instinct MI50 32GB](https://selfhost.directory/models/internscience/mlexpert/on/instinct-mi50): Q5_K_M, est. 229 tok/s
- [GeForce RTX 5090](https://selfhost.directory/models/internscience/mlexpert/on/rtx-5090): Q5_K_M, est. 401 tok/s
- [Apple M4 Pro (48 GB)](https://selfhost.directory/models/internscience/mlexpert/on/apple-m4-pro-48gb): Q6_K, est. 53 tok/s
- [RTX A6000](https://selfhost.directory/models/internscience/mlexpert/on/rtx-a6000): Q8_0, est. 115 tok/s
- [Apple M1 Max (64 GB)](https://selfhost.directory/models/internscience/mlexpert/on/apple-m1-max-64gb): Q8_0, est. 60 tok/s
- [NVIDIA A100 80GB](https://selfhost.directory/models/internscience/mlexpert/on/a100-80gb): F16, est. 162 tok/s

---
Model: https://selfhost.directory/models/internscience/mlexpert. GPU: https://selfhost.directory/models/gpus/apple-m4-max-128gb-40c. Source: https://selfhost.directory/models/internscience/mlexpert/on/apple-m4-max-128gb-40c