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. GitHub releases · Usage · Paper · HF collection
Requires the companion mlx-reason-ct runtime. Follow the quick start below.
Hugging Face's generated "Use this model" snippet uses mlx-vlm, which does not
support this 3D CT architecture; generic mlx-lm loaders are also incompatible.
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.4 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 \
https://github.com/MedMLX/MLX-Reason-CT/releases/download/v0.2.4/mlx_reason_ct-0.2.4-py3-none-any.whl
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 with the same release-wheel URL.
Wheel and source archives are also available in the
GitHub release.
For source development, clone the repository
and run make env; use uv run mlx-reason-ct for the commands above.
The source checkout additionally supports plain centered cropping and follow-up
history, which are not in 0.2.4; see the
source usage guide.
For a generated input with no patient data, follow the synthetic CT walkthrough. It covers installation, bundle verification, input generation and completion checks.
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
Version 0.2.4 removes a trailing empty <answer></answer> element from the saved
report in both text and JSON, while preserving reasoning and nonempty answer elements.
Technical details
Inference defaults to FP32 with weights converted directly from the original BF16 checkpoint, without retraining. Implementation and verification details, and the limits of its darwin-arm64 component references are in the companion repository. Upstream model card and limitations.
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
Weights: OpenMDW-1.1, Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. Underlying Qwen3.5 terms: Apache-2.0.
Port code: Apache-2.0, Copyright (c) 2026 Joseph Sandoval. Third-party notices.