🩺 Mac AI Doctor
Will this AI model fit in your Apple Silicon Mac's unified memory?
maid reads small metadata files—never model weights—and estimates weight, KV-cache, and runtime
memory as a range, then gives a plain verdict.
$ maid check ibm-granite/granite-switch-4.1-3b-preview --memory-gb 16
ibm-granite/granite-switch-4.1-3b-preview
┌────────────┬────────────────┐
│ Weights │ 8.80 GB │
│ KV cache │ 0.34 GB │
│ Runtime │ 1.31 GB │
│ Peak range │ 11.49–13.06 GB │
│ Available │ 16.0 GB │
└────────────┴────────────────┘
╭───────────────────── TIGHT · high confidence ──────────────────────╮
│ May fit, but close memory-heavy apps or reduce context/concurrency. │
╰─────────────────────────────────────────────────────────────────────╯
Install
Requires uv.
uv tool install mac-ai-doctor # CLI only
uv tool install 'mac-ai-doctor[web]' # also enables `maid web`
Use
maid web # interactive web UI (needs the 'web' extra)
maid system # your chip and memory
maid check meta-llama/Llama-3.1-8B-Instruct # a Hugging Face model
maid check ~/Models/model-q4.gguf --context 8192 # a local GGUF
maid compare org/model-a org/model-b --concurrency 2 # side by side
maid recommend --memory-gb 16 --task coding # a starting point
maid check MODEL --json # machine-readable
Accepts a Hugging Face ID, a local .gguf file, or a local/MLX directory with config.json.
Options: --memory-gb N (required off macOS), --context, --concurrency,
--kv-dtype (fp32/fp16/bf16/int8/q8), --json. Tasks: coding, chat, vision.
Verdicts
| Verdict | Meaning |
|---|---|
| COMFORTABLE | High estimate ≤ 80% of memory. |
| TIGHT | Fits, but leaves < 20% headroom. |
| UNLIKELY | Exceeds memory. |
| UNKNOWN | Weight size unavailable. |
Confidence reflects metadata completeness, not prediction accuracy.
What it reads
Only bounded metadata: config.json, the safetensors index, and the model API's file-size
listing—or the 24-byte header of a local GGUF. Weight contents are never downloaded. No
credentials are collected.
How it estimates
Decimal GB. This is screening, not a benchmark—verify with your actual runtime. No tokens/second prediction is made.
weights = stored_weight_bytes × 1.06
KV = 2 × layers × KV_heads × head_dim × context × concurrency × dtype_bytes
runtime = max(1 GB, weights × 12%) + 0.25 GB × concurrency
range = subtotal × 1.10 .. subtotal × 1.25
Unified memory is shared with macOS, apps, and the GPU. Memory mapping can help; multimodal image encoders may add memory not shown in text config metadata.
Troubleshooting
- Can't detect memory — pass
--memory-gb N(auto-detection needs macOS). - 401/403 or gated — authenticate, or point at a downloaded
config.json. - No weight size — use a repo with a safetensors index/API sizes, or a local GGUF (v2/v3).
Develop
git clone https://github.com/barvhaim/mac-ai-doctor.git && cd mac-ai-doctor
uv sync --group dev
uv run ruff check . && uv run mypy src && uv run pytest
See CONTRIBUTING.md. MIT licensed.
Metadata
Release files for mac-ai-doctor 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mac_ai_doctor-0.2.0.tar.gz | 124.9 kB | Without provenance | Details for mac_ai_doctor-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mac_ai_doctor-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for mac_ai_doctor-0.2.0-py3-none-any.whl |
Total release size: 138.8 kB
Release files / mac_ai_doctor-0.2.0.tar.gz
| Download URL | mac_ai_doctor-0.2.0.tar.gz |
|---|---|
| Size | 124.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0b8cec2639ae338794ac488d8ff295b564a1795593eaa6fc4936d7bd86ef578
|
|
BLAKE2b-256 checksum How to use checksums |
d029071ed36df31e4570a99f155403a285d3096e62f46fb0964cbbe0958893d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / mac_ai_doctor-0.2.0-py3-none-any.whl
| Download URL | mac_ai_doctor-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a82823be998948e66a7de77ac10fa7615843243648b4e1c8987dc28e0517f59
|
|
BLAKE2b-256 checksum How to use checksums |
c47bf55e24b457470946e25f015cd176c0b81acd02867e64d8267638e9926bd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for mac-ai-doctor 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.