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.

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:

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.2.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.2.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.2.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.2.0
File Size Uploaded Provenance Actions
modelmap-0.2.0.tar.gz 70.4 kB With provenance Details for modelmap-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 150.8 kB

Release files / modelmap-0.2.0.tar.gz

Download URL modelmap-0.2.0.tar.gz
Size 70.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1b31e3d6e0e5ff4d17a9d4e6c3d57fa2a9127142b82dc7f39e69f5229f0d1069
BLAKE2b-256 checksum
How to use checksums
25c8d33b4d32adb9318af8d8d5acbb03aec64d3401560beba87c88b256aa9f81
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 25, 2026.

Transparency log

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

Download URL modelmap-0.2.0-py3-none-any.whl
Size 80.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4936db95d092424d690f38b782f8b61073c7fef6ab195e8ab6d253dbae4c2a18
BLAKE2b-256 checksum
How to use checksums
81f00195ff5b1ebf4c9b87768d3118e68632398ad5f705801a99d28125dfbc8b
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 25, 2026.

Transparency log

Security for modelmap 0.2.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.2.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 25, 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