Metadata-Version: 2.4
Name: med-vlm-mlx
Version: 0.2.3
Summary: MedGemma medical vision-language inference on Apple Silicon.
Author: Alfredo Sandoval
Author-email: Prince Canuma <prince.gdt@gmail.com>
License-Expression: MIT AND Apache-2.0
Project-URL: Repository, https://github.com/MedMLX/med-vlm-mlx
Project-URL: Upstream, https://github.com/Blaizzy/mlx-vlm
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: THIRD_PARTY_NOTICES.md
Requires-Dist: mlx==0.32.3
Requires-Dist: transformers==5.19.0
Requires-Dist: jinja2>=3.1.6
Requires-Dist: sentencepiece>=0.2.1
Requires-Dist: tqdm>=4.66.3
Requires-Dist: Pillow<14,>=13
Requires-Dist: requests>=2.33.0
Requires-Dist: llguidance>=1.7.0
Requires-Dist: opencv-python>=4.12.0.88
Requires-Dist: fastapi>=0.143.0
Requires-Dist: starlette>=1.3.1
Requires-Dist: uvicorn
Requires-Dist: numpy
Requires-Dist: cryptography>=50.0.2
Provides-Extra: medical
Requires-Dist: fsspec==2026.9.0; extra == "medical"
Requires-Dist: torch==2.14.1; extra == "medical"
Dynamic: license-file

# med-vlm-mlx

Run MedGemma 1.5 4B locally on Apple Silicon. Includes Python, CLI and HTTP interfaces.

[Docs](https://github.com/MedMLX/med-vlm-mlx/blob/main/docs/usage.md) · [MedMLX](https://github.com/MedMLX)

![Chest radiograph → structured modality, body region and visible anatomy.](https://raw.githubusercontent.com/MedMLX/med-vlm-mlx/main/docs/showcase.png)

*Chest radiograph → structured modality, body region and visible anatomy.*

| Input | Output |
| :--- | :--- |
| Image + text prompt | Generated text |

**Apple Silicon · Metal · Python 3.13** · [uv](https://docs.astral.sh/uv/)

## Quick start

```bash
uv venv --python 3.13
source .venv/bin/activate
uv pip install med-vlm-mlx
```

Use a local MedGemma model directory:

```bash
python -m mlx_vlm.generate \
  --model /path/to/model --image image.png \
  --prompt 'Describe the image.' --max-tokens 128
```

Uses the `mlx_vlm` namespace. Install in a separate environment from upstream `mlx-vlm`.

## License

MIT, with Apache-2.0 adaptations. See [LICENSE](https://github.com/MedMLX/med-vlm-mlx/blob/main/LICENSE) and [third-party notices](https://github.com/MedMLX/med-vlm-mlx/blob/main/THIRD_PARTY_NOTICES.md). Model weights retain their publisher terms.

For research and education. Outputs require human review.
