llmrun
AppleM4Desktop

Best AI Models for iMac 24" M4 (24 GB)

Memory:24 GB UnifiedBandwidth:120.0 GB/sGPU Cores:10 GPU coresCPU Cores:10 CPU coresNeural Engine:38.0 TOPS

24 GB unified − 3.5 GB OS overhead = 20.5 GB available for AI models

How does this device compare with your machine?

42 of 293 featured models run great on iMac 24" M4 (24 GB) · best pick: Qwen3.8 27B at ~4.8 tok/s

largest that fits: 36.0B (Qwen3.6 35B A3B, IQ4_XS) · 70B needs CPU offload or more memory

What LLMs Can iMac 24" M4 (24 GB) Run?

1068 models · 262 run great · 240 run well

Score: model quality, 100 = average model. Fit: how well it runs on this hardware, S best to F won't fit. Ordered by quality, recency and Fit. How ranking works

Showing compatibility for iMac 24" M4 (24 GB)

LLM models compatible with iMac 24" M4 (24 GB) — ranked by quality, recency and Fit
ModelVRAMScoreFit
LFM2.5 2.6B
2.7B·Q4_K_M·41.2 t/s·131K ctx
2.3 GBA75, Runs well
DeepSeek R1 0528 Qwen3 8B
8.2B·Q4_K_M·15.2 t/s·131K ctx
7.6 GBB55, Decent
6M·BF16·238.5 t/s
0.3 GBS100, Runs great
27B·Q4_K_M·5.1 t/s·262K ctx
16.9 GBC38, Usable
Chandra
8.8B·Q4_K_M·14.3 t/s·262K ctx
8.0 GBB54, Decent
TwIL LM3
3.1B·Q4_K_M·36.5 t/s·66K ctx
3.4 GBA73, Runs well
23M·Q4_K_M·4200.0 t/s·0K ctx
0.0 GBS100, Runs great
GPT OSS 20B NPU2
20B·Q4_K_M·34.6 t/s·131K ctx
12.6 GBA73, Runs well
35.1B·Q3_K_M·32.1 t/s·262K ctx
17.6 GBB64, Decent
InternVL3 1B
938M·Q4_K_M·135.5 t/s
2.0 GBS96, Runs great
Qwen3 0.6B
0.6B·Q4_K_M·210.0 t/s
1.6 GBS100, Runs great
MiniCPM5 1B
1.1B·Q4_K_M·84.8 t/s·131K ctx
1.3 GBS88, Runs great
ZDTaichu5.0 9B
9.8B·Q4_K_M·13.0 t/s
9.2 GBB52, Decent
256M·Q4_K_M·168.0 t/s·8K ctx
0.6 GBS98, Runs great
Moore Lm
42M·BF16·933.3 t/s
0.7 GBS100, Runs great
Qwen3 0.6B
752M·Q4_K_M·96.6 t/s·41K ctx
1.7 GBS90, Runs great

iMac 24" M4 (24 GB) has 20.5 GB of memory for models. In the ranking below, Qwen3.8 27B leads at Q4_K_M: it needs 17.9 GB (87% of that memory) and generates about 4.8 tokens per second. 42 of the 293 featured models earn a Fit S here, meaning they load with room for context and run fast. Decode speed is set mostly by memory bandwidth (120 GB/s), so smaller and mixture-of-experts models are noticeably quicker than dense models of the same quality. 70B-class models need about 46 GB at Q4_K_M, more than the 20.5 GB available, so they require offloading layers to system RAM or a larger-memory setup.

Runs Well

  • Gemma 4 26B A4B IT (25.8B at Q4_K_M, ~25.8 tok/s)
  • GPT OSS 20B (20.9B at Q4_K_M, ~28.1 tok/s)
  • Qwen3.5 4B (4.7B at Q4_K_M, ~25.8 tok/s)
  • Ling 3.0 Tiny (7.9B at Q4_K_M, ~62.8 tok/s)
  • MiniCPM5 2B (2.5B at Q4_K_M, ~44.2 tok/s)

Challenging

  • Qwen3.8 27B (27.8B at Q4_K_M, ~4.8 tok/s) fits but uses 87% of memory, so keep context short
  • Qwen3.6 35B A3B (36.0B at IQ4_XS, ~25.7 tok/s) fits but uses 97% of memory, so keep context short
  • Qwen3.5 9B (9.7B at Q4_K_M, ~13.2 tok/s) fits but uses 32% of memory, so keep context short
  • 70B-class models need ~46 GB at Q4_K_M, so they need CPU offload or more memory
  • 120B-class models need ~77 GB at Q4_K_M, so they need CPU offload or more memory

iMac 24" M4 (24 GB) Specifications

Brand
Apple
Chip
M4
Type
Desktop
Unified Memory
24 GB
Memory Bandwidth
120.0 GB/s
GPU Cores
10
CPU Cores
10
Neural Engine
38.0 TOPS
Release Date
2024-11-08

Get Started

Ollama (Recommended)

Runs Qwen3.8 27B on Q4_K_M; this is our top choice here.

$curl -fsSL https://ollama.com/install.sh | sh
$ollama run hf.co/unsloth/Qwen3.8-27B-GGUF:Q4_K_M

LM Studio

LM Studio

Download LM Studio, search for "Qwen3.8 27B", and run it with one click.

Prompt Processing

Estimated for Qwen3.8 27B, the compute-bound phase that reads your prompt before the first reply token appears.

31tok/s prefill

Short chat

16.5 s

512 tok prompt

Long chat

132 s

4,096 tok prompt

Document / codebase

1057 s

32,768 tok prompt

Prefill is compute-bound and a different number from the decode tok/s shown elsewhere on this page — how prompt processing works →

Performance figures are estimates calibrated as of 2026-09-21 — see calibration basis →

What to do next with iMac 24" M4 (24 GB)

Which model to run first, a faster option with the same memory, and what more memory unlocks. Computed from the rankings and specs above.

Frequently Asked Questions

Can iMac 24" M4 (24 GB) run Qwen3.8 27B?

Yes. The iMac 24" M4 (24 GB) with 24 GB unified memory can run Qwen3.8 27B (Q4_K_M, 17.9 GB, 87% of memory). It is also the table's best pick, at ~4.8 tok/s. 42 of the 293 featured models get a Fit of S (runs great) here. The largest featured model that fits at Q4 or better is Qwen3.6 35B A3B (36.0B at IQ4_XS). 70B-class models need around 46 GB at Q4_K_M, meaning they need CPU offloading or extra memory beyond what's available in 20.5 GB. Check the compatibility table above for the full list with Fit, VRAM usage and estimated speed. Models are checked against the 20.5 GB available to AI (that is, the 24 GB of RAM minus roughly 3.5 GB for macOS), while Apple Silicon's unified memory allows the GPU to draw from that same pool without copying data.

How much memory is available for AI on iMac 24" M4 (24 GB)?

The iMac 24" M4 (24 GB) has 24 GB unified memory. After macOS reserves ~3.5 GB for the operating system, approximately 20.5 GB is available for AI models. Model rankings here use that 20.5 GB limit instead of the total 24 GB. Unlike discrete GPUs where VRAM is separate from system RAM, a unified-memory device shares one memory pool between the CPU and GPU — this means no data copying overhead, but you share memory with macOS and open apps.

Is iMac 24" M4 (24 GB) good for AI?

With 24 GB unified memory and 120.0 GB/s bandwidth, the iMac 24" M4 (24 GB) is solid for running local AI models. Models that run well include Gemma 4 26B A4B IT (25.8B at Q4_K_M, ~25.8 tok/s); GPT OSS 20B (20.9B at Q4_K_M, ~28.1 tok/s); Qwen3.5 4B (4.7B at Q4_K_M, ~25.8 tok/s). Mid-size models run at good quality, and Metal acceleration keeps interactive chat smooth.

What's the best model for iMac 24" M4 (24 GB)?

For the iMac 24" M4 (24 GB), the best pick right now is Qwen3.8 27B at ~4.8 tok/s. Also running well: Gemma 4 26B A4B IT (25.8B at Q4_K_M, ~25.8 tok/s); GPT OSS 20B (20.9B at Q4_K_M, ~28.1 tok/s); Qwen3.5 4B (4.7B at Q4_K_M, ~25.8 tok/s). The best choice depends on your use case: coding assistants benefit from code-tuned models, general chat from instruction-tuned ones. The list is ranked by quality, recency and Fit.

How fast is iMac 24" M4 (24 GB) for AI inference?

With 120.0 GB/s memory bandwidth, the iMac 24" M4 (24 GB) achieves approximately 19 tok/s on a 7B model at Q4_K_M — that's functional for interactive use. A 14B model runs at ~9 tok/s. In the ranking, the top pick Qwen3.8 27B runs at ~4.8 tok/s. Apple Silicon achieves high efficiency (~70%) thanks to unified memory — there's no PCIe bottleneck between CPU and GPU.

= (120 GB/s ÷ model GB) × efficiency

Apple Silicon achieves ~70% bandwidth efficiency thanks to and Metal acceleration.

Estimated speed on iMac 24" M4 (24 GB)

~5 tok/s
~26 tok/s
~26 tok/s
~13 tok/s

Real-world results typically within ±20%.

Learn more about tok/s estimation →

Can I run AI offline on iMac 24" M4 (24 GB)?

Yes — once you download a model, it runs entirely on the iMac 24" M4 (24 GB) without internet. Applications like Ollama and LM Studio make it straightforward to download, manage, and run models locally. All your conversations stay private on your device with zero data sent to external servers. This is one of the key advantages of local AI: complete privacy, no API costs, and no rate limits.