Metadata-Version: 2.4
Name: mlx-reason-ct
Version: 0.3.4
Summary: Native MLX port of NVIDIA NV-Reason-CT for 3D CT reasoning on Apple Silicon
Project-URL: Homepage, https://huggingface.co/MedMLX/MLX-Reason-CT
Author: Joseph Sandoval
License-Expression: Apache-2.0 AND MIT AND BSD-3-Clause AND LicenseRef-OpenMDW-1.1
License-File: LICENSE
License-File: THIRD_PARTY_NOTICES.md
Keywords: apple-silicon,ct,medical-imaging,mlx,nv-reason-ct
Classifier: Operating System :: MacOS :: MacOS X
Requires-Python: <3.15,>=3.13
Requires-Dist: huggingface-hub==1.23.0
Requires-Dist: jinja2==3.1.6
Requires-Dist: medmlx-core==0.2.5
Requires-Dist: mlx==0.32.4; sys_platform == 'darwin' and platform_machine == 'arm64'
Requires-Dist: nibabel==5.4.2
Requires-Dist: numpy==2.3.5
Requires-Dist: scipy==1.18.1
Requires-Dist: tokenizers==0.22.2
Provides-Extra: tools
Requires-Dist: llguidance==1.9.1; extra == 'tools'
Description-Content-Type: text/markdown

# mlx-reason-ct

Generate reports and ask questions about 3D chest and abdomen CT, locally on Apple Silicon.

[Model weights](https://huggingface.co/MedMLX/MLX-Reason-CT)

| Input | Output |
| :--- | :--- |
| 3D CT · NIfTI | Reports and CT question answering |

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

## Quick start

```bash
uv pip install "mlx-reason-ct>=0.3.4"
```

```python
from mlx_reason_ct.medmlx import run

result = run(image_path="ct.nii.gz", output_dir="outputs")
print(result["outputs"]["report"])
```

Omitting `weights_path` downloads `MedMLX/MLX-Reason-CT` once and reuses its local
cache. An explicit model folder keeps the converted runtime files and the `mlx/`
shard layout. No conversion manifest or source-identity sidecar is required. Set
`anatomy_region="abdomen"` for abdominal CT, or use `prompt` to ask a question.

Allow more than 22.7 GB unified memory for the model, preprocessing and macOS.
Crop whole-body scans to the chest or abdomen before running.

Downloaded commits are returned in `details.weights_revision`; explicit local
weights report `null` unless the folder carries a MedMLX download revision.

## License

Port contributions: Apache-2.0. NVIDIA model materials and weights: OpenMDW-1.1. License and third-party notices are included in the distribution.

For research and education. Outputs require human review.
