# Where LM Studio, Ollama and Hugging Face Store Models

> Every path local AI tools use to store model weights on macOS, Linux and Windows — Ollama, LM Studio, Hugging Face, PyTorch, GPT4All, Whisper — how to move the store, and what is safe to delete.

Canonical: https://bytesweep.app/ai-model-storage.html
Last updated: 2026-11-13

## Where local AI models are stored

Every tool keeps its weights somewhere different, and together they are often the largest thing on a developer's disk. Here is each default folder, per platform, with the tool's own documentation as the source.

Updated 11 November 2026

[Find every model store](https://bytesweep.app/download.html) [Buy · $29.99](https://bytesweep.app/pricing.html)

**Free to try for 3 days.** Cleaning needs a licence: one payment per computer, Mac, Windows or Linux.

### Why these folders are easy to miss

Each tool picks its own folder, and most of them start with a dot, so the Finder does not show them. A cleaner that works from a fixed list of cache folders finds only the folders on its list, so check that yours reports the Ollama folder before you trust a clean result.

### The paths

#### Ollama

```
macOS    ~/.ollama/models
Linux    /usr/share/ollama/.ollama/models   standard installer (systemd service)
         ~/.ollama/models                   ollama serve run as your own user
Windows  %USERPROFILE%\.ollama\models
```

List and remove with Ollama itself, so its manifest stays consistent:

```
ollama list
ollama rm llama3:70b
```

Move the store to an external drive by setting `OLLAMA_MODELS` before starting the server.

On Linux with the standard installer, the service user needs read and write access to the new folder.

Source: [Ollama FAQ](https://docs.ollama.com/faq)

#### LM Studio

```
macOS    ~/.lmstudio/models
Linux    ~/.lmstudio/models
Windows  %USERPROFILE%\.lmstudio\models
```

Older versions used `~/.cache/lm-studio/models`; if you have upgraded through several releases, check both. The directory is configurable in the app's My Models tab, which is the safe way to relocate it.

Source: [LM Studio Docs](https://lmstudio.ai/docs/app/advanced/import-model)

#### Hugging Face — transformers, diffusers, datasets

```
macOS/Linux  ~/.cache/huggingface/hub
Windows      %USERPROFILE%\.cache\huggingface\hub
```

Usually the largest and the messiest, because every library that touches the Hub writes here. Inspect and prune interactively with the official tool:

```
pip install -U huggingface_hub
hf cache ls
hf cache rm model/bert-base-cased
hf cache prune
```

Relocate it with `HF_HOME`. Note that the hub cache uses symlinks into a blobs folder — copying it with a tool that follows symlinks will double its size.

Source: [Hugging Face Hub Docs](https://huggingface.co/docs/huggingface_hub/guides/manage-cache)

#### PyTorch

```
~/.cache/torch/hub
~/.cache/torch/hub/checkpoints
```

Pretrained checkpoints downloaded by `torch.hub`. Relocate with `TORCH_HOME`.

Source: [PyTorch Docs](https://docs.pytorch.org/docs/stable/hub.html)

#### Seven paths, and the one you have forgotten

This list is accurate today. It grows every time you try a new tool, and the store you lose track of is the expensive one. Bytesweep finds all of these plus the ones added since, reports them by size, and marks weights for review rather than sweeping — because a model you fine-tuned yourself is not a cache, and nothing else on your disk is that expensive to get wrong.

[Try it free for 3 days](https://bytesweep.app/download.html) [Buy · $29.99](https://bytesweep.app/pricing.html)

#### GPT4All

```
macOS    ~/Library/Application Support/nomic.ai/GPT4All
Linux    ~/.local/share/nomic.ai/GPT4All
Windows  %LOCALAPPDATA%\nomic.ai\GPT4All
```

Source: [GPT4All Docs](https://docs.gpt4all.io/gpt4all_desktop/settings.html)

#### Whisper and whisper.cpp

```
~/.cache/whisper
./models  (inside a whisper.cpp checkout)
```

#### Also worth checking

```
~/.cache/torch/sentence_transformers
~/.keras/models
```

### Before you delete a model

#### A cache is not a weight

Everything else on a developer's disk regenerates in seconds. A 40 GB model is a re-download over your connection, and a quantisation you produced locally or a model you fine-tuned yourself does not come back at all. These folders deserve review, not a sweep.

#### Delete through the tool where there is one

Ollama and Hugging Face both keep a manifest alongside the blobs. Delete the files yourself and the manifest still lists them, which shows up later as confusing errors. `ollama rm` and `hf cache rm` exist for this.

#### Move rather than delete

Every tool above supports relocating its store through an environment variable or a setting. If you have an external drive, moving the store beats repeatedly deleting and re-pulling the same weights.

### Questions

#### How do I change where Ollama stores models?

Set the `OLLAMA_MODELS` environment variable to the directory you want, then restart the Ollama server. On macOS, set it for the app's launch environment rather than only in your shell, or the desktop app will not see it.

#### Is it safe to delete ~/.cache/huggingface?

Safe in the sense that nothing breaks — anything missing is re-downloaded on next use. Expensive in the sense that "next use" may mean pulling 30 GB again. Use `hf cache ls` to see what is there and delete selectively.

#### Why do the model folders not show up in the Finder?

Most of them start with a dot, which macOS hides by default. Press `Cmd-Shift-.` in a Finder window to show them, or open the path directly with Go → Go to Folder.

#### Can I keep models on an external drive?

Yes, and it is the better answer once you pass a hundred gigabytes. Ollama uses `OLLAMA_MODELS`, Hugging Face uses `HF_HOME`, PyTorch uses `TORCH_HOME`, and LM Studio has a setting in the app. Expect slower first loads over USB.

#### Why is my model folder bigger than the models I downloaded?

Usually partial downloads and superseded revisions. The Hugging Face hub cache keeps every revision you have ever pulled of a repository, not just the current one, which is exactly what `hf cache ls --revisions` is designed to show you.

### From the blog

Shorter pieces that go deeper on one part of this guide.

[Every article](https://bytesweep.app/blog/index.html)

- [**Moving AI model stores to an external drive, properly** Every local AI tool keeps its weights somewhere different and each has a supported way to relocate them. The environment variables and settings that work, the file system that will break symlinks, and the performance you actually lose.](https://bytesweep.app/blog/move-ai-models-external-drive.html)
- [**The Hugging Face cache keeps every revision you ever pulled** The hub cache is content-addressed, symlinked and versioned, which makes it efficient and makes it grow. How to read the structure, what hf cache prune and rm do, and why deleting blobs by hand breaks it.](https://bytesweep.app/blog/huggingface-cache-cleanup.html)
- [**LM Studio’s model folder, and what it keeps besides weights** LM Studio stores models in a Hugging Face-shaped tree that is easy to read once you know the convention. Where it is on each platform, what the extra files are, and how to share one model store with other tools.](https://bytesweep.app/blog/lm-studio-storage.html)
- [**Where Ollama stores models on Mac, Linux and Windows** Ollama's model store is often the largest folder on a developer's machine, and it lives in a hidden folder the Finder does not show. The exact paths on macOS, Linux, Windows and Docker, how to find the one your install really uses, how to delete models safely and how to move the store to another drive.](https://bytesweep.app/blog/ollama-models-disk.html)

### Find every model store on your disk

Bytesweep knows all of these paths, reports them by size next to Docker, Xcode and node_modules, and marks weights as worth reviewing rather than safe to sweep — because a fine-tuned model is not a cache.

[Try it free for 3 days](https://bytesweep.app/download.html) [Buy a licence · $29.99](https://bytesweep.app/pricing.html)

- [Mac Pro](https://bytesweep.app/mac.html)
- [Mac Lite](https://bytesweep.app/mac-app-store.html)
- [Windows](https://bytesweep.app/windows.html)
- [Linux](https://bytesweep.app/linux.html)

Related: [Docker disk space](https://bytesweep.app/docker-disk-space-mac.html) · [Xcode cleanup](https://bytesweep.app/xcode-storage-cleanup.html) · [the full Mac list](https://bytesweep.app/free-up-space-on-mac.html) · [every developer cache on a Mac](https://bytesweep.app/mac-cleaner-for-developers.html)

[See everything Bytesweep Pro for Mac does](https://bytesweep.app/mac.html)
