Local AI models on a Mac: sizes of Ollama and Hugging Face weights, and how to inspect, prune and move them
A model is just a big file, and people download them like apps. A 70B model is 43 GB. The Hugging Face cache can quietly keep six copies of the same weights. Here's where both tools keep them, what the real sizes are (we tested the Hugging Face side on this Mac), and how to find and remove what you don't use.
How big are the models, really?
Sizes from Ollama's own library pages (checked 13 November 2026). The default tag in each row is the one you get from <code>ollama run <name></code>:
| Model | Size of the default (q4_K_M) | Same model, fp16 (full precision) |
|---|---|---|
| Llama 3.1 8B | 4.9 GB | 16 GB |
| Llama 3.1 70B | 43 GB | 141 GB |
| Llama 3.1 405B | 243 GB | 812 GB |
| Gemma 3 1B | 806 MB | 2.0 GB |
| Gemma 3 4B | 3.4 GB | 8.6 GB |
| Gemma 3 12B | 8.2 GB | 24 GB |
| Gemma 3 27B | 17 GB | 55 GB |
And the quantisation ladder for one model, Llama 3.1 8B instruct: q2_K 3.2 GB, q3_K_M 4.0 GB, q4_K_M 4.9 GB, q5_K_M 5.7 GB, q6_K 6.6 GB, q8_0 8.5 GB, fp16 16 GB. Pull three of them while you compare quality and you're at 14 GB for one model.
Where Ollama keeps them
~/.ollama/modelsis the default on macOS (Ollama's FAQ).- Inside,
blobsholds the weight files named by their hash, andmanifestsholds the small files that say which blobs make up each model tag. That's the layout as we know it, not something we measured: Ollama isn't installed on the Mac we tested. - Commands that matter:
ollama lslists what you have with sizes,ollama rm gemma3:27bremoves one (docs:ollama rm gemma4),ollama psshows what's loaded,ollama stopunloads it from memory (that frees RAM, not disk).
Remove with <code>ollama rm</code>, not by deleting files in <code>blobs</code>. Blobs are shared between tags, and a manifest that points at a missing blob leaves a model that fails to load.
Where Hugging Face keeps them: our test
Python libraries (transformers, sentence-transformers, diffusers) and the <code>hf</code> command download to <code>~/.cache/huggingface/hub</code>. Change it with <code>HF_HOME</code> or <code>HF_HUB_CACHE</code>. Inside each model there are <code>blobs</code> (the real files, named by hash), <code>snapshots</code> (one folder per revision, made of symlinks to the blobs) and <code>refs</code>.
We downloaded one small, popular embedding model, <code>sentence-transformers/all-MiniLM-L6-v2</code>, with <code>hf download</code> into a clean cache (huggingface_hub, 13 November 2026). The model has 22 million parameters, so you'd expect around 90 MB.
| What | Result |
|---|---|
Size reported by hf cache ls | 930.9 MB |
| Files with the same weights in different formats | safetensors 90.9 MB, pytorch_model.bin 90.9 MB, tf_model.h5 91.0 MB, rust_model.ot 90.9 MB |
onnx/ folder (many variants of one model) | 484 MB |
openvino/ folder | 109 MB |
What du -sh says about the model's own folder | 1.3 MB |
What du -sh says about hub/blobs | 895 MB |
Two lessons. First, <code>hf download <repo></code> with no filter pulls <i>every</i> file in the repo, and many repos ship the same weights as PyTorch, TensorFlow, Rust, ONNX and OpenVINO. We got 10x the size we expected. Second, <code>du</code> on a model's folder is wrong with the current cache: the big files sit in a shared <code>blobs</code> folder one level up and the model folder holds only links, which is why it said 1.3 MB for a 900 MB download. Use <code>hf cache ls</code> for sizes.
Inspect and prune with the supported commands
To remove one format and keep the rest, give <code>hf cache rm</code> the file's <code>hf://</code> address. We tried it on the TensorFlow weights:
The cache went from 930.9 MB to 839.9 MB in <code>hf cache ls</code> and from 896 MB to 809 MB on disk. The model still loads from the safetensors file; a deleted file is simply downloaded again if something asks for it. <code>hf cache prune</code> had nothing to remove in our clean test, and it's the one that clears <code>.incomplete</code> leftovers from interrupted downloads.
Next time, download only what you need
For GGUF repos (llama.cpp and similar) pick one quantisation file instead of the whole repo, for example <code>--include "*Q4_K_M.gguf"</code>.
Move them to another drive
- Hugging Face: set
HF_HOME(orHF_HUB_CACHE) in your shell profile to a folder on the external drive, then move the existing~/.cache/huggingfacethere with Finder orrsync. Symlinks inside are relative, so they keep working after a copy that preserves them (rsync -a). - Ollama: set
OLLAMA_MODELSto the new folder. Ollama's FAQ says that if you run the Mac app, set variables withlaunchctl setenvand restart the app. Copy the old~/.ollama/modelsacross first, or pull again. - Keep the drive on APFS or Mac OS Extended: exFAT has no symlinks, which the Hugging Face cache depends on. See our external drive format test.
- Model load time depends on the drive. A slow USB disk makes every launch slow. Put the models you use daily on the internal SSD and the rest on the external one.
Related: Developer disk hogs: Gradle, npm, node_modules and the caches that never go away and macOS System Data.
Zofle, our free Mac app, measures big folders like ~/.ollama and ~/.cache/huggingface and shows what each one is before you remove anything.
Download Zofle for MacSources
- Hugging Face docs: Understand caching (layout,
hf cache ls/rm/prune,HF_HOME). - Ollama: FAQ (
~/.ollama/models,OLLAMA_MODELS) and CLI reference; model sizes from Llama 3.1 and Gemma 3 tag pages, 13 November 2026. - Our own download test of sentence-transformers/all-MiniLM-L6-v2 on macOS 27.0.1 with huggingface_hub, 13 November 2026.
- Ollama wasn't installed on the Mac we tested, so its folder layout isn't our measurement. Model sizes change when authors re-upload, so re-check a tag page before planning a disk.
Zofle Pro news
People signing up now will get Zofle Pro, with more features, for free when we launch it.