Local AI models on a Mac: sizes of Ollama and Hugging Face weights, and how to inspect, prune and move them

By the Zofle team · 13 November 2026 · 6 min read

Ollama and Hugging Face model weights on a Mac, by size

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 &lt;name&gt;</code>:

ModelSize of the default (q4_K_M)Same model, fp16 (full precision)
Llama 3.1 8B4.9 GB16 GB
Llama 3.1 70B43 GB141 GB
Llama 3.1 405B243 GB812 GB
Gemma 3 1B806 MB2.0 GB
Gemma 3 4B3.4 GB8.6 GB
Gemma 3 12B8.2 GB24 GB
Gemma 3 27B17 GB55 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/models is the default on macOS (Ollama's FAQ).
  • Inside, blobs holds the weight files named by their hash, and manifests holds 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 ls lists what you have with sizes, ollama rm gemma3:27b removes one (docs: ollama rm gemma4), ollama ps shows what's loaded, ollama stop unloads it from memory (that frees RAM, not disk).
bash
ollama ls                 # name, ID, size, modified
du -sh ~/.ollama/models   # what the whole folder takes
ollama rm llama3.1:70b    # removes the tag and any blobs nothing else uses

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.

WhatResult
Size reported by hf cache ls930.9 MB
Files with the same weights in different formatssafetensors 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/ folder109 MB
What du -sh says about the model's own folder1.3 MB
What du -sh says about hub/blobs895 MB

Two lessons. First, <code>hf download &lt;repo&gt;</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

bash
hf cache ls                                   # one line per repo, with size
hf cache ls --revisions --filter "size>1GB"   # per snapshot
hf cache ls --filter "accessed>30d"           # not used in 30 days
hf cache rm model/org/name --dry-run          # preview a delete
hf cache prune                                # unreferenced revisions + .incomplete files

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:

bash
hf cache rm hf://models/sentence-transformers/all-MiniLM-L6-v2/tf_model.h5 --dry-run
# About to delete 1 file(s) totalling 91.0M.
hf cache rm hf://models/sentence-transformers/all-MiniLM-L6-v2/tf_model.h5 -y
# files_deleted=1 freed=91.0M

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

bash
hf download sentence-transformers/all-MiniLM-L6-v2 \
  --include "*.json" "model.safetensors" "tokenizer*" 

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 (or HF_HUB_CACHE) in your shell profile to a folder on the external drive, then move the existing ~/.cache/huggingface there with Finder or rsync. Symlinks inside are relative, so they keep working after a copy that preserves them (rsync -a).
  • Ollama: set OLLAMA_MODELS to the new folder. Ollama's FAQ says that if you run the Mac app, set variables with launchctl setenv and restart the app. Copy the old ~/.ollama/models across 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 Mac

Sources

  • 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.

One email when it's ready. No spam, ever.