modelmap 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
modelmap-0.1.0/LICENSE ADDED
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, Eric G. Suchanek, PhD
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,126 @@
1
+ Metadata-Version: 2.4
2
+ Name: modelmap
3
+ Version: 0.1.0
4
+ Summary: Find local LLM model files across Hugging Face, Ollama, oMLX, LM Studio and llama.cpp, and draw them as a treemap
5
+ License-Expression: BSD-3-Clause
6
+ License-File: LICENSE
7
+ Keywords: llm,gguf,safetensors,ollama,huggingface,mlx,disk-usage,treemap
8
+ Author: Eric G. Suchanek, PhD
9
+ Author-email: suchanek@flux-frontiers.com
10
+ Requires-Python: >=3.10
11
+ Classifier: Development Status :: 2 - Pre-Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: End Users/Desktop
14
+ Classifier: Topic :: System :: Filesystems
15
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Project-URL: Changelog, https://github.com/Flux-Frontiers/modelmap/blob/main/CHANGELOG.md
22
+ Project-URL: Documentation, https://github.com/Flux-Frontiers/modelmap/blob/main/docs/guide.md
23
+ Project-URL: Homepage, https://github.com/Flux-Frontiers/modelmap
24
+ Project-URL: Issues, https://github.com/Flux-Frontiers/modelmap/issues
25
+ Project-URL: Repository, https://github.com/Flux-Frontiers/modelmap
26
+ Description-Content-Type: text/markdown
27
+
28
+ [![CI](https://github.com/Flux-Frontiers/modelmap/actions/workflows/ci.yml/badge.svg)](https://github.com/Flux-Frontiers/modelmap/actions/workflows/ci.yml)
29
+ [![Python](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue.svg)](https://www.python.org/)
30
+ [![License: BSD-3-Clause](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://github.com/Flux-Frontiers/modelmap/blob/main/LICENSE)
31
+ [![Version](https://img.shields.io/badge/version-0.1.0-blue.svg)](https://github.com/Flux-Frontiers/modelmap/releases)
32
+ [![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
33
+ [![DOI](https://img.shields.io/badge/DOI-10.5281%2Fzenodo.24520428-blue.svg)](https://doi.org/10.5281/zenodo.24520428)
34
+ [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://pre-commit.com/)
35
+ [![ORCID](https://img.shields.io/badge/ORCID-0009--0009--0891--1507-A6CE39.svg)](https://orcid.org/0009-0009-0891-1507)
36
+
37
+ # modelmap -- Find, Map and Remove Local LLM Models
38
+
39
+ **See every language-model file on a machine, how much space each one takes, and remove the ones you no longer need.**
40
+
41
+ modelmap reads the stores of Hugging Face, Ollama, oMLX, LM Studio,
42
+ llama.cpp, GPT4All, Jan and Whisper, follows the settings and symlinks
43
+ that move them, and sweeps your home folder for loose GGUF, safetensors
44
+ and checkpoint files. It reads file headers for parameter counts and
45
+ quantization, counts each file once however many names point at it, and
46
+ draws everything as a map you can open down to the individual files.
47
+
48
+ <img src="https://raw.githubusercontent.com/Flux-Frontiers/modelmap/main/assets/map.png" alt="The map: one block per store, one tile per model, sized by space used" width="760">
49
+
50
+ Status: pre-alpha, not yet released. It runs on macOS and Linux with
51
+ Python 3.10 or later and needs nothing beyond the standard library.
52
+
53
+ ## Install
54
+
55
+ From a clone:
56
+
57
+ ```bash
58
+ pip install .
59
+ ```
60
+
61
+ ## Use
62
+
63
+ ```bash
64
+ modelmap map --open # the map, opened in your browser
65
+ modelmap scan # totals by store
66
+ modelmap list # every model, largest first
67
+ modelmap providers # where each store is looked for
68
+ modelmap rm ollama:qwen3:4b # remove a model, after showing what goes and asking
69
+ ```
70
+
71
+ On the map, click a tile to open the model; the square is redrawn as its
72
+ files, with each file's path and the `modelmap rm` command beside it.
73
+ Escape goes back up.
74
+
75
+ `modelmap rm` removes Ollama models with `ollama rm`, Hugging Face cache
76
+ repositories with `hf cache rm`, and moves anything else to the Trash. It
77
+ shows every file or command first, asks, and refuses caches and files
78
+ that another model also uses.
79
+
80
+ To map a machine you cannot reach, ask its owner for an inventory:
81
+
82
+ ```bash
83
+ modelmap scan --json --redact > inventory.json # on their machine
84
+ modelmap map --from-json inventory.json --open # on yours
85
+ ```
86
+
87
+ ## Documentation
88
+
89
+ - [Guide](https://github.com/Flux-Frontiers/modelmap/blob/main/docs/guide.md): what is scanned, how sizes are counted, the map,
90
+ removing models, and the limits.
91
+ - [Command reference](https://github.com/Flux-Frontiers/modelmap/blob/main/docs/cli.md): every command and option.
92
+ - [Cheat sheet](https://github.com/Flux-Frontiers/modelmap/blob/main/docs/cheatsheet.md): one page.
93
+
94
+ ## Development
95
+
96
+ ```bash
97
+ poetry install --with dev
98
+ .venv/bin/pytest
99
+ ```
100
+
101
+ ## Citation
102
+
103
+ If you use modelmap in your research or project, please cite it:
104
+
105
+ > Suchanek, E. G. (2026). *modelmap: Find, Map and Remove Local LLM Models* (Version 0.1.0) [Software]. Flux-Frontiers. https://doi.org/10.5281/zenodo.24520428
106
+
107
+ ```bibtex
108
+ @software{suchanek_modelmap,
109
+ author = {Suchanek, Eric G.},
110
+ title = {{modelmap}: Find, Map and Remove Local LLM Models},
111
+ version = {0.1.0},
112
+ year = {2026},
113
+ publisher = {Flux-Frontiers},
114
+ url = {https://github.com/Flux-Frontiers/modelmap},
115
+ doi = {10.5281/zenodo.24520428},
116
+ }
117
+ ```
118
+
119
+ The DOI is the Zenodo concept DOI, which always resolves to the newest
120
+ archived release. The citation metadata is also in [CITATION.cff](https://github.com/Flux-Frontiers/modelmap/blob/main/CITATION.cff). See the
121
+ [changelog](https://github.com/Flux-Frontiers/modelmap/blob/main/CHANGELOG.md) for release history.
122
+
123
+ ## License
124
+
125
+ BSD-3-Clause. See [LICENSE](https://github.com/Flux-Frontiers/modelmap/blob/main/LICENSE).
126
+
@@ -0,0 +1,98 @@
1
+ [![CI](https://github.com/Flux-Frontiers/modelmap/actions/workflows/ci.yml/badge.svg)](https://github.com/Flux-Frontiers/modelmap/actions/workflows/ci.yml)
2
+ [![Python](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue.svg)](https://www.python.org/)
3
+ [![License: BSD-3-Clause](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://github.com/Flux-Frontiers/modelmap/blob/main/LICENSE)
4
+ [![Version](https://img.shields.io/badge/version-0.1.0-blue.svg)](https://github.com/Flux-Frontiers/modelmap/releases)
5
+ [![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
6
+ [![DOI](https://img.shields.io/badge/DOI-10.5281%2Fzenodo.24520428-blue.svg)](https://doi.org/10.5281/zenodo.24520428)
7
+ [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://pre-commit.com/)
8
+ [![ORCID](https://img.shields.io/badge/ORCID-0009--0009--0891--1507-A6CE39.svg)](https://orcid.org/0009-0009-0891-1507)
9
+
10
+ # modelmap -- Find, Map and Remove Local LLM Models
11
+
12
+ **See every language-model file on a machine, how much space each one takes, and remove the ones you no longer need.**
13
+
14
+ modelmap reads the stores of Hugging Face, Ollama, oMLX, LM Studio,
15
+ llama.cpp, GPT4All, Jan and Whisper, follows the settings and symlinks
16
+ that move them, and sweeps your home folder for loose GGUF, safetensors
17
+ and checkpoint files. It reads file headers for parameter counts and
18
+ quantization, counts each file once however many names point at it, and
19
+ draws everything as a map you can open down to the individual files.
20
+
21
+ <img src="https://raw.githubusercontent.com/Flux-Frontiers/modelmap/main/assets/map.png" alt="The map: one block per store, one tile per model, sized by space used" width="760">
22
+
23
+ Status: pre-alpha, not yet released. It runs on macOS and Linux with
24
+ Python 3.10 or later and needs nothing beyond the standard library.
25
+
26
+ ## Install
27
+
28
+ From a clone:
29
+
30
+ ```bash
31
+ pip install .
32
+ ```
33
+
34
+ ## Use
35
+
36
+ ```bash
37
+ modelmap map --open # the map, opened in your browser
38
+ modelmap scan # totals by store
39
+ modelmap list # every model, largest first
40
+ modelmap providers # where each store is looked for
41
+ modelmap rm ollama:qwen3:4b # remove a model, after showing what goes and asking
42
+ ```
43
+
44
+ On the map, click a tile to open the model; the square is redrawn as its
45
+ files, with each file's path and the `modelmap rm` command beside it.
46
+ Escape goes back up.
47
+
48
+ `modelmap rm` removes Ollama models with `ollama rm`, Hugging Face cache
49
+ repositories with `hf cache rm`, and moves anything else to the Trash. It
50
+ shows every file or command first, asks, and refuses caches and files
51
+ that another model also uses.
52
+
53
+ To map a machine you cannot reach, ask its owner for an inventory:
54
+
55
+ ```bash
56
+ modelmap scan --json --redact > inventory.json # on their machine
57
+ modelmap map --from-json inventory.json --open # on yours
58
+ ```
59
+
60
+ ## Documentation
61
+
62
+ - [Guide](https://github.com/Flux-Frontiers/modelmap/blob/main/docs/guide.md): what is scanned, how sizes are counted, the map,
63
+ removing models, and the limits.
64
+ - [Command reference](https://github.com/Flux-Frontiers/modelmap/blob/main/docs/cli.md): every command and option.
65
+ - [Cheat sheet](https://github.com/Flux-Frontiers/modelmap/blob/main/docs/cheatsheet.md): one page.
66
+
67
+ ## Development
68
+
69
+ ```bash
70
+ poetry install --with dev
71
+ .venv/bin/pytest
72
+ ```
73
+
74
+ ## Citation
75
+
76
+ If you use modelmap in your research or project, please cite it:
77
+
78
+ > Suchanek, E. G. (2026). *modelmap: Find, Map and Remove Local LLM Models* (Version 0.1.0) [Software]. Flux-Frontiers. https://doi.org/10.5281/zenodo.24520428
79
+
80
+ ```bibtex
81
+ @software{suchanek_modelmap,
82
+ author = {Suchanek, Eric G.},
83
+ title = {{modelmap}: Find, Map and Remove Local LLM Models},
84
+ version = {0.1.0},
85
+ year = {2026},
86
+ publisher = {Flux-Frontiers},
87
+ url = {https://github.com/Flux-Frontiers/modelmap},
88
+ doi = {10.5281/zenodo.24520428},
89
+ }
90
+ ```
91
+
92
+ The DOI is the Zenodo concept DOI, which always resolves to the newest
93
+ archived release. The citation metadata is also in [CITATION.cff](https://github.com/Flux-Frontiers/modelmap/blob/main/CITATION.cff). See the
94
+ [changelog](https://github.com/Flux-Frontiers/modelmap/blob/main/CHANGELOG.md) for release history.
95
+
96
+ ## License
97
+
98
+ BSD-3-Clause. See [LICENSE](https://github.com/Flux-Frontiers/modelmap/blob/main/LICENSE).
@@ -0,0 +1,112 @@
1
+ # pyproject.toml -- modelmap package configuration (PEP 621)
2
+ #
3
+ # Find local LLM model files and draw them as an area-proportional treemap.
4
+ #
5
+ # Author: Eric G. Suchanek, PhD
6
+ #
7
+ # Build system : Poetry 2.x with PEP 621 [project] table
8
+ #
9
+ # The runtime is the standard library only, so `pipx run modelmap` and
10
+ # `uvx modelmap` start fast on a machine that has nothing installed. Dev
11
+ # tooling is a Poetry group, so it never ships in the wheel.
12
+ #
13
+ # Quick install (poetry)
14
+ # ----------------------
15
+ # poetry install core runtime only
16
+ # poetry install --with dev + pytest, ruff, ty, pre-commit
17
+ #
18
+ # Run tests
19
+ # ---------
20
+ # pytest
21
+
22
+ [build-system]
23
+ requires = ["poetry-core>=2.0.0"]
24
+ build-backend = "poetry.core.masonry.api"
25
+
26
+ [tool.poetry]
27
+ packages = [{ include = "modelmap", from = "src" }]
28
+
29
+ # ---------------------------------------------------------------------------
30
+ # PEP 621 project metadata
31
+ # ---------------------------------------------------------------------------
32
+ [project]
33
+ name = "modelmap"
34
+ version = "0.1.0"
35
+ description = "Find local LLM model files across Hugging Face, Ollama, oMLX, LM Studio and llama.cpp, and draw them as a treemap"
36
+ readme = "README.md"
37
+ license = "BSD-3-Clause"
38
+ license-files = ["LICENSE"]
39
+ authors = [{ name = "Eric G. Suchanek, PhD", email = "suchanek@flux-frontiers.com" }]
40
+ keywords = ["llm", "gguf", "safetensors", "ollama", "huggingface", "mlx", "disk-usage", "treemap"]
41
+ classifiers = [
42
+ "Development Status :: 2 - Pre-Alpha",
43
+ "Intended Audience :: Developers",
44
+ "Intended Audience :: End Users/Desktop",
45
+ "Topic :: System :: Filesystems",
46
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
47
+ "Programming Language :: Python :: 3",
48
+ "Programming Language :: Python :: 3.10",
49
+ "Programming Language :: Python :: 3.11",
50
+ "Programming Language :: Python :: 3.12",
51
+ "Programming Language :: Python :: 3.13",
52
+ ]
53
+ requires-python = ">=3.10"
54
+ dependencies = []
55
+
56
+ [project.urls]
57
+ Homepage = "https://github.com/Flux-Frontiers/modelmap"
58
+ Repository = "https://github.com/Flux-Frontiers/modelmap"
59
+ Documentation = "https://github.com/Flux-Frontiers/modelmap/blob/main/docs/guide.md"
60
+ Issues = "https://github.com/Flux-Frontiers/modelmap/issues"
61
+ Changelog = "https://github.com/Flux-Frontiers/modelmap/blob/main/CHANGELOG.md"
62
+
63
+ [project.scripts]
64
+ modelmap = "modelmap.cli:main"
65
+
66
+ # ---------------------------------------------------------------------------
67
+ # Dev tooling (Poetry group, not a PEP 621 extra)
68
+ # ---------------------------------------------------------------------------
69
+ # `optional = true` keeps it out of a bare `poetry install`.
70
+ [tool.poetry.group.dev]
71
+ optional = true
72
+
73
+ [tool.poetry.group.dev.dependencies]
74
+ detect-secrets = ">=1.5.0"
75
+ pre-commit = ">=4.5.1"
76
+ # >=9.0.3 is a security floor, not a preference: GHSA-6w46-j5rx-g56g.
77
+ pytest = ">=9.0.3"
78
+ pytest-cov = ">=5.0.0"
79
+ # Capped below 0.16 to match the rest of the fleet and the rev pinned in
80
+ # .pre-commit-config.yaml.
81
+ ruff = ">=0.15,<0.16"
82
+ ty = ">=0.0.44"
83
+
84
+ # ---------------------------------------------------------------------------
85
+ # Tool configuration
86
+ # ---------------------------------------------------------------------------
87
+ hypothesis = ">=6.100"
88
+ [tool.ruff]
89
+ line-length = 100
90
+ target-version = "py310"
91
+ # Keep prose docs out of ruff 0.16's Markdown code-block formatting.
92
+ exclude = [".claude", "*.md"]
93
+
94
+ [tool.ruff.lint]
95
+ select = ["E", "F", "W", "I", "UP", "B023", "BLE001", "PLC0415"]
96
+ ignore = ["E501"]
97
+
98
+ [tool.ty.environment]
99
+ python-version = "3.10"
100
+ root = ["src"]
101
+
102
+ [tool.pytest.ini_options]
103
+ testpaths = ["tests"]
104
+ addopts = "-v --tb=short --strict-markers"
105
+
106
+ [tool.coverage.run]
107
+ source = ["modelmap"]
108
+
109
+ [tool.coverage.report]
110
+ # A floor against regression, not a target. Checked by `pytest --cov` in CI
111
+ # and in the pre-commit pytest hook.
112
+ fail_under = 90
@@ -0,0 +1,3 @@
1
+ """modelmap: find local LLM model files and draw them as a treemap."""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1,7 @@
1
+ """Run ``python -m modelmap``."""
2
+
3
+ import sys
4
+
5
+ from modelmap.cli import main
6
+
7
+ sys.exit(main())