lucid.page MLX and llama.cpp directory layout on Mac: common mistakes and fixes
Text size
Read time4 min

# MLX and llama.cpp directory layout on Mac: common mistakes and fixes

Contents

# The question behind “MLX and llama.cpp directory layout on Mac”

One models root; symlink per backend; avoid duplicate multi-GB copies. Most hardware threads about local LLMs jump straight to a card model. A better starting point is the workload: which model families you actually need, the quantisation you can live with, the context length your users paste, and how many people will hit the box at once. Only then does a shopping list make sense.

# Work out the memory budget first

Model weights are only part of the picture. The KV cache grows with context length and concurrent sessions, the runtime keeps its own buffers, and the desktop or display server may already be holding a slice of VRAM before you load anything. Write down free memory after a cold boot, not the number on the box. If the model plus a realistic context does not fit with headroom, it will spill to system RAM and feel slow in a way that no setting fixes. A 5000 CNY budget tier is useful here because it lets you reason in parameter counts and quant levels instead of marketing tiers.

# Platform matters as much as the card

A good GPU on a weak platform is a common regret. Check:

# New, used, or unified memory

Used cards can be good value, but inspect them: missing screws, replaced fans, discoloured connectors and odd thermals under a short load test are reasons to walk away. Apple Silicon machines take a different route: unified memory means the model and the system share one pool, so leave clear headroom for macOS and anything else you run. Mini PCs are fine for small models and kiosks if you accept their thermal limits. Whatever you choose, record serial numbers, invoices and photos on install day.

# A sane buying sequence

  1. Write the workload in one paragraph: models, context, users, hours.
  2. Map it to memory needs with headroom.
  3. Choose the platform (PSU, board, case, RAM), then the GPU.
  4. Burn in for at least half an hour while watching temperatures and logs.
  5. Run your own small eval set before declaring the build done.

# Questions to ask before you buy

If any answer is unclear, rent or borrow time on similar hardware first. A week of real use teaches more than a month of reading spec sheets, and it keeps your purchase grounded in your own workload.

See also device-to-model matching.

# Quick reminders

Published by MicroAI One (本地AI 1号网), a Shenzhen team working on local LLM hardware, software and deployment.

End