modelmri 0.0.1a0__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.
- modelmri-0.0.1a0/.github/workflows/ci.yml +37 -0
- modelmri-0.0.1a0/.gitignore +42 -0
- modelmri-0.0.1a0/LICENSE +21 -0
- modelmri-0.0.1a0/LOG.md +7 -0
- modelmri-0.0.1a0/PKG-INFO +47 -0
- modelmri-0.0.1a0/README.md +30 -0
- modelmri-0.0.1a0/modelmri/__init__.py +14 -0
- modelmri-0.0.1a0/npm-stub/cli.js +7 -0
- modelmri-0.0.1a0/npm-stub/package.json +10 -0
- modelmri-0.0.1a0/pyproject.toml +29 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
backend:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: astral-sh/setup-uv@v5
|
|
14
|
+
- name: Lint, format, test
|
|
15
|
+
run: |
|
|
16
|
+
uv sync --dev
|
|
17
|
+
uv run ruff check .
|
|
18
|
+
uv run ruff format --check .
|
|
19
|
+
uv run pytest -q || [ $? -eq 5 ] # exit 5 = no tests collected; OK pre-v0.1
|
|
20
|
+
|
|
21
|
+
frontend:
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v4
|
|
25
|
+
- uses: actions/setup-node@v4
|
|
26
|
+
with:
|
|
27
|
+
node-version: 22
|
|
28
|
+
- name: Lint & build (skips until frontend exists)
|
|
29
|
+
run: |
|
|
30
|
+
if [ -f frontend/package.json ]; then
|
|
31
|
+
cd frontend
|
|
32
|
+
npm ci
|
|
33
|
+
npm run lint --if-present
|
|
34
|
+
npm run build --if-present
|
|
35
|
+
else
|
|
36
|
+
echo "Frontend not scaffolded yet — skipping."
|
|
37
|
+
fi
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
.venv/
|
|
5
|
+
venv/
|
|
6
|
+
dist/
|
|
7
|
+
build/
|
|
8
|
+
*.egg-info/
|
|
9
|
+
.pytest_cache/
|
|
10
|
+
.ruff_cache/
|
|
11
|
+
.mypy_cache/
|
|
12
|
+
uv.lock
|
|
13
|
+
|
|
14
|
+
# Node
|
|
15
|
+
node_modules/
|
|
16
|
+
frontend/dist/
|
|
17
|
+
.vite/
|
|
18
|
+
|
|
19
|
+
# ModelMRI runtime data
|
|
20
|
+
*.mri
|
|
21
|
+
activations/
|
|
22
|
+
*.zarr/
|
|
23
|
+
sessions.sqlite*
|
|
24
|
+
|
|
25
|
+
# Models & weights — never commit
|
|
26
|
+
*.safetensors
|
|
27
|
+
*.gguf
|
|
28
|
+
*.ckpt
|
|
29
|
+
*.pt
|
|
30
|
+
*.pth
|
|
31
|
+
|
|
32
|
+
# OS / editor
|
|
33
|
+
.DS_Store
|
|
34
|
+
Thumbs.db
|
|
35
|
+
.idea/
|
|
36
|
+
.vscode/
|
|
37
|
+
*.log
|
|
38
|
+
|
|
39
|
+
# Secrets
|
|
40
|
+
.env
|
|
41
|
+
.env.*
|
|
42
|
+
*.token
|
modelmri-0.0.1a0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Muhammad Mahad Azher
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
modelmri-0.0.1a0/LOG.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Working log
|
|
2
|
+
|
|
3
|
+
## 2026-07-08 — Week 0
|
|
4
|
+
- Name decided: **ModelMRI** ("an MRI machine for AI models"). Verified free on PyPI + npm.
|
|
5
|
+
- Repo created, skeleton committed: README with public roadmap, MIT license, CI (ruff + pytest + frontend build), Python package stub, npm stub.
|
|
6
|
+
- Dev environment confirmed: Python 3.12, uv, node 26, WSL2, RTX 4060.
|
|
7
|
+
- Next: publish name-reserving stubs to PyPI + npm, Substack setup, essay #1, Day-1 X post.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: modelmri
|
|
3
|
+
Version: 0.0.1a0
|
|
4
|
+
Summary: Chrome DevTools for AI models and agents — see attention, features, and agent steps inside any local model. Placeholder release; v0.1 in active development.
|
|
5
|
+
Project-URL: Homepage, https://github.com/muhammadmahadazher/ModelMRI
|
|
6
|
+
Project-URL: Repository, https://github.com/muhammadmahadazher/ModelMRI
|
|
7
|
+
Author-email: Muhammad Mahad Azher <mahadazher@gmail.com>
|
|
8
|
+
License: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: agents,debugging,devtools,interpretability,llm,sparse-autoencoder
|
|
11
|
+
Classifier: Development Status :: 1 - Planning
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# ModelMRI
|
|
19
|
+
|
|
20
|
+
**Chrome DevTools for AI models and agents.** Load any local model — LLM, VLM, or robot policy — and see inside it while it runs: attention, features, circuits, agent steps. Local-first. MIT.
|
|
21
|
+
|
|
22
|
+
> 🚧 **Under active construction, in public.** v0.1 (live attention playground) ships in ~2 weeks.
|
|
23
|
+
> Follow the build: [Substack](https://modelmri.substack.com)
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
|
|
27
|
+
When a model gives a wrong answer, you can't see why. When an agent fails at step 47, you get a wall of logs. When a robot policy drops the object, you get nothing. The research tools that *can* see inside (SAEs, attention analysis, circuit tracing) live in notebooks only specialists can drive.
|
|
28
|
+
|
|
29
|
+
ModelMRI packages that research into a tool with the ergonomics of browser DevTools: one-line install, open `localhost:5900`, look inside.
|
|
30
|
+
|
|
31
|
+
## Planned (the 12-week public roadmap)
|
|
32
|
+
|
|
33
|
+
- **v0.1** — load a HuggingFace LLM, watch attention flow live at 60fps (WebGL)
|
|
34
|
+
- **v0.2** — SAE feature browser: see the *concepts* inside the model, steer them
|
|
35
|
+
- **v0.3** — agent mode: record any Anthropic-SDK/Claude-Code agent run, replay it, find the failing step
|
|
36
|
+
- **v0.4** — the first interactive tool for looking inside a robot policy (SmolVLA + LeRobot)
|
|
37
|
+
- **v0.5** — polish, zero-install hosted demo, launch
|
|
38
|
+
|
|
39
|
+
## Status
|
|
40
|
+
|
|
41
|
+
| Piece | State |
|
|
42
|
+
|---|---|
|
|
43
|
+
| Backend (FastAPI, activation hooks) | 🏗️ in progress |
|
|
44
|
+
| Frontend (React + WebGL) | 🏗️ in progress |
|
|
45
|
+
| `pip install modelmri` | placeholder published |
|
|
46
|
+
|
|
47
|
+
MIT © Muhammad Mahad Azher
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# ModelMRI
|
|
2
|
+
|
|
3
|
+
**Chrome DevTools for AI models and agents.** Load any local model — LLM, VLM, or robot policy — and see inside it while it runs: attention, features, circuits, agent steps. Local-first. MIT.
|
|
4
|
+
|
|
5
|
+
> 🚧 **Under active construction, in public.** v0.1 (live attention playground) ships in ~2 weeks.
|
|
6
|
+
> Follow the build: [Substack](https://modelmri.substack.com)
|
|
7
|
+
|
|
8
|
+
## Why
|
|
9
|
+
|
|
10
|
+
When a model gives a wrong answer, you can't see why. When an agent fails at step 47, you get a wall of logs. When a robot policy drops the object, you get nothing. The research tools that *can* see inside (SAEs, attention analysis, circuit tracing) live in notebooks only specialists can drive.
|
|
11
|
+
|
|
12
|
+
ModelMRI packages that research into a tool with the ergonomics of browser DevTools: one-line install, open `localhost:5900`, look inside.
|
|
13
|
+
|
|
14
|
+
## Planned (the 12-week public roadmap)
|
|
15
|
+
|
|
16
|
+
- **v0.1** — load a HuggingFace LLM, watch attention flow live at 60fps (WebGL)
|
|
17
|
+
- **v0.2** — SAE feature browser: see the *concepts* inside the model, steer them
|
|
18
|
+
- **v0.3** — agent mode: record any Anthropic-SDK/Claude-Code agent run, replay it, find the failing step
|
|
19
|
+
- **v0.4** — the first interactive tool for looking inside a robot policy (SmolVLA + LeRobot)
|
|
20
|
+
- **v0.5** — polish, zero-install hosted demo, launch
|
|
21
|
+
|
|
22
|
+
## Status
|
|
23
|
+
|
|
24
|
+
| Piece | State |
|
|
25
|
+
|---|---|
|
|
26
|
+
| Backend (FastAPI, activation hooks) | 🏗️ in progress |
|
|
27
|
+
| Frontend (React + WebGL) | 🏗️ in progress |
|
|
28
|
+
| `pip install modelmri` | placeholder published |
|
|
29
|
+
|
|
30
|
+
MIT © Muhammad Mahad Azher
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""ModelMRI — Chrome DevTools for AI models and agents.
|
|
2
|
+
|
|
3
|
+
This is a placeholder release reserving the package name.
|
|
4
|
+
v0.1 (live attention playground for local HuggingFace models)
|
|
5
|
+
is in active development, in public:
|
|
6
|
+
|
|
7
|
+
https://github.com/muhammadmahadazher/ModelMRI
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
__version__ = "0.0.1a0"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def main() -> None:
|
|
14
|
+
print(__doc__)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "modelmri",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Chrome DevTools for AI models and agents — placeholder while v0.1 is built in public. See https://github.com/muhammadmahadazher/ModelMRI",
|
|
5
|
+
"keywords": ["interpretability", "llm", "agents", "debugging", "devtools"],
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Muhammad Mahad Azher",
|
|
8
|
+
"repository": { "type": "git", "url": "https://github.com/muhammadmahadazher/ModelMRI" },
|
|
9
|
+
"bin": { "modelmri": "./cli.js" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "modelmri"
|
|
3
|
+
version = "0.0.1a0"
|
|
4
|
+
description = "Chrome DevTools for AI models and agents — see attention, features, and agent steps inside any local model. Placeholder release; v0.1 in active development."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.10"
|
|
7
|
+
license = { text = "MIT" }
|
|
8
|
+
authors = [{ name = "Muhammad Mahad Azher", email = "mahadazher@gmail.com" }]
|
|
9
|
+
keywords = ["interpretability", "llm", "agents", "debugging", "devtools", "sparse-autoencoder"]
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Development Status :: 1 - Planning",
|
|
12
|
+
"Intended Audience :: Developers",
|
|
13
|
+
"License :: OSI Approved :: MIT License",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
[project.urls]
|
|
18
|
+
Homepage = "https://github.com/muhammadmahadazher/ModelMRI"
|
|
19
|
+
Repository = "https://github.com/muhammadmahadazher/ModelMRI"
|
|
20
|
+
|
|
21
|
+
[project.scripts]
|
|
22
|
+
modelmri = "modelmri:main"
|
|
23
|
+
|
|
24
|
+
[dependency-groups]
|
|
25
|
+
dev = ["ruff>=0.8", "pytest>=8"]
|
|
26
|
+
|
|
27
|
+
[build-system]
|
|
28
|
+
requires = ["hatchling"]
|
|
29
|
+
build-backend = "hatchling.build"
|