MLX-Reason-CT
Native MLX port of NVIDIA NV-Reason-CT for Apple Silicon. Run 3D CT reasoning and report generation locally on Mac.
- Chest and abdomen CT
- Structured reports and CT question answering
- Local NIfTI input with Apple Silicon GPU acceleration
- FP32 by default, with explicit BF16 arithmetic profiles on Metal
MLX port by Joseph Sandoval. Releases · Weights · Usage · Paper · HF collection
Requirements
Supported platform: macOS arm64 on an Apple Silicon Mac with Metal GPU access, Python 3.12 and uv. Inference fails explicitly when Metal is unavailable.
v0.2.3 uses the public Apache-2.0 medmlx-core==0.1.2 runtime from PyPI.
Weights occupy 17.4 GB. Measured peak MLX memory use is about 22.7 GB; allow additional unified memory for preprocessing, macOS and other apps.
Quick start
uv tool install --python 3.12 mlx-reason-ct==0.2.3
mlx-reason-ct download \
--revision c690a63888b9c6c9bd006687335fbd650eb60275 \
--model-dir models
Generate a chest CT report:
mlx-reason-ct report \
--input ct.nii.gz --model-dir models --output-dir outputs
For abdomen CT:
mlx-reason-ct report \
--input ct.nii.gz --model-dir models --output-dir outputs \
--anatomy-region abdomen
To ask a question about the CT, set --prompt to your question.
For an existing Python 3.12 environment, use pip install mlx-reason-ct==0.2.3.
Wheel and source archives are also available in the
GitHub release.
For source development, clone this repository
and run make env; use
uv run mlx-reason-ct for the commands above.
For a generated input with no patient data, follow the synthetic CT walkthrough. It covers installation, bundle verification, input generation and completion checks.
Python
from mlx_reason_ct.medmlx import run
result = run(image_path="ct.nii.gz", weights_path="models", output_dir="outputs")
print(result["outputs"]["report"])
Takes the same options as the CLI (prompt, anatomy_region, enable_thinking,
precision, overwrite). The model is also discoverable by
medmlx-mcp as mlx-reason-ct. Full runner
contract in docs/usage.md.
Input and output
Input is one 3D CT volume in NIfTI format (.nii or .nii.gz) with Hounsfield
Unit values and valid spatial geometry. DICOM and 2D images are unsupported.
The upstream crop locates the chest from enclosed air. On whole-body scans, especially with arms raised, it can select the head and neck instead; crop such volumes to the chest or abdomen before running.
Each run writes:
report.txt— generated responsemodel_response.json— response, reasoning (with--enable-thinking) and generation metadatarun.json— execution metadata
Technical details
Inference defaults to FP32 with weights converted directly from the original BF16 checkpoint, without retraining. Implementation and verification details are in docs. Seeded test references are recorded on darwin-arm64; verification scope explains their bounds and what they do not establish.
Version 0.2.3 includes faster source-BF16 projection and attention kernels. On one M1 Max synthetic case, cached full-model time fell from 17:54 in the preceding source build to 14:49, with bitwise-unchanged recorded outputs. Full BF16 qualification remains incomplete; see the benchmark and limits.
Intended use
Intended for research and education, not clinical diagnosis or treatment decisions. Outputs require human review.
License
Code: Apache-2.0, Joseph Sandoval. Weights: OpenMDW-1.1, NVIDIA CORPORATION & AFFILIATES. Third-party notices.
Metadata
Release files for mlx-reason-ct 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mlx_reason_ct-0.2.3.tar.gz | 3.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mlx_reason_ct-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 MB
Release files / mlx_reason_ct-0.2.3.tar.gz
| Download URL | mlx_reason_ct-0.2.3.tar.gz |
|---|---|
| Size | 3.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1df6adc2a5d77fe7b1ab843b96b2eafd89536f1910d44f03c960dd61b1977fa
|
|
BLAKE2b-256 checksum How to use checksums |
4904dcaae5a9f1feffc8dabec624c28b6ef2470492da81d5e9ad3e7381c7c854
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / mlx_reason_ct-0.2.3-py3-none-any.whl
| Download URL | mlx_reason_ct-0.2.3-py3-none-any.whl |
|---|---|
| Size | 3.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9486a928498c2819488267b9b719c79abe292b4b0246b29b54b7626c87778638
|
|
BLAKE2b-256 checksum How to use checksums |
94d40fa70311a40f303485e240882ac10c207a13a2e9cdc118fdda576f5efe4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.24 {"installer":{"name":"uv","version":"0.12.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|