Skip to main content

modelmap

CI Python License: BSD-3-Clause Version Poetry DOI pre-commit ORCID

modelmap -- Find, Map and Remove Local LLM Models

See every language-model file on a machine, how much space each one takes, and remove the ones you no longer need.

modelmap reads the stores of Hugging Face, Ollama, oMLX, LM Studio, llama.cpp, GPT4All, Jan and Whisper, follows the settings and symlinks that move them, and sweeps your home folder for loose GGUF, safetensors and checkpoint files. It reads file headers for parameter counts and quantization, counts each file once however many names point at it, and draws everything as a map you can open down to the individual files.

The map: one block per store, one tile per model, sized by space used

It runs on macOS and Linux with Python 3.10 or later and needs nothing beyond the standard library.

Install

pipx install modelmap      # or: uv tool install modelmap, or: pip install modelmap

Use

modelmap serve                  # the map in your browser, with a Remove button per model
modelmap map --open             # the map as a file that works offline
modelmap scan                   # totals by store
modelmap list                   # every model, largest first
modelmap providers              # where each store is looked for
modelmap rm ollama:qwen3:4b     # remove a model, after showing what goes and asking

On the map, click a tile to open the model; the square is redrawn as its files, with each file's path and the modelmap rm command beside it. Escape goes back up. Under modelmap serve, the panel's Remove button does what modelmap rm does: it shows what will go and asks first.

modelmap rm removes Ollama models with ollama rm, Hugging Face cache repositories with hf cache rm, and moves anything else to the Trash. It shows every file or command first, asks, and refuses caches and files that another model also uses.

Mac app

macos/ builds modelmap.app: the same map in its own window, with a Remove button per model, a Map menu to rescan or choose the folders and drives to scan, a server log, and built-in help. It runs modelmap serve from a Python bundled inside the app, so the Mac needs nothing else installed, and it reads your login shell's settings, so stores moved by HF_HOME or OLLAMA_MODELS are found.

Download modelmap-<version>.dmg from the latest release, open it, and drag modelmap to Applications. It is signed with a Developer ID and notarized by Apple, and needs macOS 15 or later on Apple silicon.

To build it from a clone instead (Xcode, XcodeGen, uv and Poetry):

cd macos && make run

See the Mac app page for what it does and how to use it.

Other machines

To map a machine you cannot reach, ask its owner for an inventory:

modelmap scan --json --redact > inventory.json     # on their machine
modelmap map --from-json inventory.json --open     # on yours

Documentation

The documentation site is at flux-frontiers.github.io/modelmap:

  • Guide: what is scanned, how sizes are counted, the map, serving it, removing models, and the limits.
  • CLI reference: every command and option.
  • Cheat sheet: one page.
  • Mac app: the map in its own window; built from macos/.
  • API reference: the Python modules.

Development

poetry install --with dev,docs
.venv/bin/pytest
poetry run mkdocs serve        # the docs site at http://127.0.0.1:8000

Citation

If you use modelmap in your research or project, please cite it:

Suchanek, E. G. (2026). modelmap: Find, Map and Remove Local LLM Models (Version 0.3.0) [Software]. Flux-Frontiers. https://doi.org/10.5281/zenodo.24520428

@software{suchanek_modelmap,
  author    = {Suchanek, Eric G.},
  title     = {{modelmap}: Find, Map and Remove Local LLM Models},
  version   = {0.3.0},
  year      = {2026},
  publisher = {Flux-Frontiers},
  url       = {https://github.com/Flux-Frontiers/modelmap},
  doi       = {10.5281/zenodo.24520428},
}

The DOI is the Zenodo concept DOI, which always resolves to the newest archived release. The citation metadata is also in CITATION.cff. See the changelog for release history.

License

BSD-3-Clause. See LICENSE.

Metadata

Release files for modelmap 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for modelmap 0.3.0
File Size Uploaded Provenance Actions
modelmap-0.3.0.tar.gz 72.3 kB With provenance Details for modelmap-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for modelmap 0.3.0
File Interpreter ABI Platform Actions
modelmap-0.3.0-py3-none-any.whl Python 3 none any Details for modelmap-0.3.0-py3-none-any.whl

Total release size: 154.4 kB

Release files / modelmap-0.3.0.tar.gz

Download URL modelmap-0.3.0.tar.gz
Size 72.3 kB
Tags Source
SHA-256 checksum
How to use checksums
756f582b1bac1d0c0e84cfb3c01dcaf8c6308570f1075e10503515bdb555e50c
BLAKE2b-256 checksum
How to use checksums
aeae8cdcc6b8d10107b0e955dd937468a52552c59f9f6e6416a0564b6227b345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / modelmap-0.3.0-py3-none-any.whl

Download URL modelmap-0.3.0-py3-none-any.whl
Size 82.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b5255e37ec1e9b051d42a9401f14db47500a01165fa34a9195b359f213c094b
BLAKE2b-256 checksum
How to use checksums
e5201edb1d8e36a0fcf4d03179647de43862a58f9345135c49abce24023a3e7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for modelmap 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for modelmap-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page