Skip to cookie settings

Local AI models on Mac: where Ollama, LM Studio and Hugging Face store them

Local AI tools store models in hidden folders. Here are the default locations from each tool documentation and a read-only way to see how big each one is.

Local AI tools download models, and models are big. Each tool keeps them in a hidden folder, so the space can vanish without you seeing where. Here are the default locations from each tool’s own documentation, and one read-only command to check how big each folder is.

The three places to check

Tool Default location on a Mac Documented in
Ollama ~/.ollama/models Ollama FAQ
LM Studio ~/.lmstudio/models/ LM Studio docs, “Import models”
Hugging Face libraries ~/.cache/huggingface/hub huggingface_hub docs, “Understand caching”

The Ollama FAQ also says you can use a different directory by setting the OLLAMA_MODELS environment variable. The Hugging Face docs say the default cache directory can be changed with the HF_HOME or HF_HUB_CACHE environment variable. LM Studio’s docs mention changing the models directory under My Models in the app. If someone set up your tools, or you changed these yourself, the folder may not be where the table says.

The Ollama FAQ describes ~/.ollama as holding models and configuration, and another Ollama page puts its logs in ~/.ollama/logs.

See how big each one is

du is read-only, and it reports the space a folder uses on disk:

du -sh ~/.ollama/models ~/.lmstudio/models ~/.cache/huggingface/hub

If a path does not exist on your Mac, du says so. That is fine; it means you do not use that tool. I checked du against a Hugging Face cache on a test folder and it reported the real size. None of the three default folders exists on the Mac I used for this article, so the paths come from the documentation and I did not see them filled.

The tools also have their own lists, which give per-model sizes. See the guides for Hugging Face and Ollama.

What is in each folder

  • Ollama. Models you pulled or created. Ollama’s CLI reference documents listing and removing them, so remove them through Ollama, not through Finder.
  • LM Studio. Model files arranged as publisher, then model, then file, for example infra-ai/ocelot-v1/ocelot-v1-instruct-q4_0.gguf in LM Studio’s own example.
  • Hugging Face cache. One folder per repository, such as models--bert-base-cased. Inside, the blobs folder holds the files, and snapshots holds symlinks to them. Datasets and other repository types share the same cache, so it can hold more than models.

Safe, risky, never

Item Verdict What breaks Cost to recreate
A model you no longer use, removed with its own tool Safe Nothing, unless a project names that model A re-download, sized like the model
The same model stored by two tools Safe to keep one The tool you removed it from Re-download, or re-import, into that tool
Hugging Face cache entries Safe with its own commands Scripts that load that repository download it again Re-download size shown by hf cache ls
Model files deleted by hand in Finder Risky The tool may list a model it can no longer load Pull again, with a possible broken state in between
A whole ~/.ollama, ~/.lmstudio or ~/.cache/huggingface folder Never, unless you mean to start over All models and, for Ollama, its configuration too Every model re-downloaded

What a re-download costs

Nothing is lost for good if you only downloaded it, but time and bandwidth are real. Before removing a large model, check its size in your tool’s listing so you know what you would pull again. Ollama’s model pages and Hugging Face’s repository pages show sizes. If your connection is slow or metered, keep what you use often.

Keeping models on another drive

Both Ollama and the Hugging Face libraries document an environment variable for this: OLLAMA_MODELS for Ollama, and HF_HOME or HF_HUB_CACHE for Hugging Face. LM Studio’s documentation says you can change its models directory under My Models. I did not test any of these. If you move a folder, set the variable first, make sure the tool is quitted, and check afterwards that models still load, before you remove the old folder.

A calm order

  1. Run the du command above to find the biggest folder.
  2. Open the tool’s own listing for that folder.
  3. Remove models you have not used in months, through the tool.
  4. If two tools hold the same model, see the duplicates guide.
  5. For uninstalling a tool and what stays behind, see AI tool leftovers.

How DiskJoy fits in

DiskJoy is our product. It is pre-alpha: it scans and shows reclaimable space, so a large model folder would appear in the results. Cleanup is not built yet, so it does not remove any models today. The download page shows the current status of the scan.

Frequently asked questions

Where does Ollama store models on a Mac?

Ollama documentation gives ~/.ollama/models as the macOS location. You can point it somewhere else by setting the OLLAMA_MODELS environment variable.

Where does LM Studio store models?

LM Studio documentation gives ~/.lmstudio/models/ as the default models directory, organised as publisher, model, then the model file.

Where is the Hugging Face cache on a Mac?

The default is ~/.cache/huggingface/hub, according to the huggingface_hub documentation. The HF_HOME or HF_HUB_CACHE environment variables change it.

How big are local AI models?

It varies a lot, from hundreds of megabytes to tens of gigabytes. Check the folder with du, or the listing in the tool itself, instead of guessing.

More in AI models

Tags:OllamaLM StudioHugging Face

See what’s taking up space on your Mac

DiskJoy explains every item and removes nothing until you review it.
Download for Mac

Cookies on diskjoy.com

Your browser sends a Global Privacy Control signal. We honoured it: analytics and marketing cookies are off.

Necessary cookies run this site. Analytics shows us how it is used: if you accept it, Google receives data about your visit. Change this anytime in Cookie Settings. How Google uses data Cookie Policy Privacy policy

Customize

Purpose
Needed for the site to work and to remember your cookie choice.

Cookies

  • sy_consent - Stores your cookie choice (Retention: 12 months)

Other browser storage

  • sy_consent_pending (localStorage) - Queues your choice until it reaches our server (Retention: until deleted)
Purpose
Show us which pages are visited and how the site is used, so we can improve it. Provider: Google Ireland Ltd (Google Analytics 4).

Cookies

  • _ga - Distinguishes visitors to count them (Retention: 400 days)
  • _ga_TP2XMLG27P - Keeps the state of your current visit (Retention: 400 days)

Recipients

Data controller

Sylentis Group sp. z o.o.. Contact: support@diskjoy.com. Privacy policy

Google may process data outside the European Economic Area (EEA). Safeguards: EU-US Data Privacy Framework, standard contractual clauses.

Right to withdraw

You can withdraw consent at any time, as easily as you gave it. Withdrawal does not affect the lawfulness of processing before it.