mlx-reason-ct 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. mlx_reason_ct-0.1.0/.git +1 -0
  2. mlx_reason_ct-0.1.0/.gitignore +14 -0
  3. mlx_reason_ct-0.1.0/AGENTS.md +14 -0
  4. mlx_reason_ct-0.1.0/LICENSE +203 -0
  5. mlx_reason_ct-0.1.0/Makefile +20 -0
  6. mlx_reason_ct-0.1.0/PKG-INFO +110 -0
  7. mlx_reason_ct-0.1.0/README.md +85 -0
  8. mlx_reason_ct-0.1.0/THIRD_PARTY_NOTICES.md +218 -0
  9. mlx_reason_ct-0.1.0/docs/fp32-engineering-qualification.json +728 -0
  10. mlx_reason_ct-0.1.0/docs/huggingface-model-card.md +104 -0
  11. mlx_reason_ct-0.1.0/docs/real-ct-cuda-parity.json +159 -0
  12. mlx_reason_ct-0.1.0/docs/standalone-verification.json +89 -0
  13. mlx_reason_ct-0.1.0/docs/usage.md +79 -0
  14. mlx_reason_ct-0.1.0/pyproject.toml +58 -0
  15. mlx_reason_ct-0.1.0/src/mlx_reason_ct/__init__.py +6 -0
  16. mlx_reason_ct-0.1.0/src/mlx_reason_ct/__main__.py +3 -0
  17. mlx_reason_ct-0.1.0/src/mlx_reason_ct/api.py +142 -0
  18. mlx_reason_ct-0.1.0/src/mlx_reason_ct/chunk_delta.py +97 -0
  19. mlx_reason_ct-0.1.0/src/mlx_reason_ct/cli.py +67 -0
  20. mlx_reason_ct-0.1.0/src/mlx_reason_ct/ct_crop.py +230 -0
  21. mlx_reason_ct-0.1.0/src/mlx_reason_ct/errors.py +17 -0
  22. mlx_reason_ct-0.1.0/src/mlx_reason_ct/gated_delta.py +676 -0
  23. mlx_reason_ct-0.1.0/src/mlx_reason_ct/integrity.py +12 -0
  24. mlx_reason_ct-0.1.0/src/mlx_reason_ct/mlx_model.py +298 -0
  25. mlx_reason_ct-0.1.0/src/mlx_reason_ct/mlx_weights.py +174 -0
  26. mlx_reason_ct-0.1.0/src/mlx_reason_ct/nifti.py +45 -0
  27. mlx_reason_ct-0.1.0/src/mlx_reason_ct/processor_mlx.py +112 -0
  28. mlx_reason_ct-0.1.0/src/mlx_reason_ct/py.typed +0 -0
  29. mlx_reason_ct-0.1.0/src/mlx_reason_ct/response.py +42 -0
  30. mlx_reason_ct-0.1.0/src/mlx_reason_ct/runtime.py +28 -0
  31. mlx_reason_ct-0.1.0/src/mlx_reason_ct/source_pins.json +15 -0
  32. mlx_reason_ct-0.1.0/tests/test_ct_crop.py +88 -0
  33. mlx_reason_ct-0.1.0/tests/test_standalone.py +133 -0
  34. mlx_reason_ct-0.1.0/tests/test_weights.py +130 -0
  35. mlx_reason_ct-0.1.0/uv.lock +505 -0
@@ -0,0 +1 @@
1
+ gitdir: /Users/js/Developer/GitHub/NV-Reason-CT-MLX/.git/worktrees/NV-Reason-CT-MLX
@@ -0,0 +1,14 @@
1
+ .venv/
2
+ __pycache__/
3
+ .pytest_cache/
4
+ .ruff_cache/
5
+ dist/
6
+ build/
7
+ *.egg-info/
8
+ models/
9
+ outputs/
10
+ .cache/
11
+ *.safetensors
12
+ *.nii
13
+ *.nii.gz
14
+ .DS_Store
@@ -0,0 +1,14 @@
1
+ # MLX-Reason-CT
2
+
3
+ - Project: MLX-Reason-CT; package/CLI: `mlx-reason-ct`.
4
+ - Repository: `sandovaljoseph/MLX-Reason-CT`; public code repository; retain separate model-material licensing.
5
+ - Preset: base. Python 3.12; pinned dependencies in `pyproject.toml` and `uv.lock`.
6
+ - Inference: macOS Apple Silicon Metal only, FP32 only. CPU preprocessing,
7
+ conversion and bundle verification are portable. No runtime fallback.
8
+ - Port additions: Apache-2.0, Copyright (c) 2026 Joseph Sandoval.
9
+ Preserve upstream OpenMDW-1.1, Apache-2.0, MIT and BSD notices.
10
+ - Keep the package independent of application registries and project/run frameworks.
11
+ - Preserve pinned checkpoint, tokenizer, template, geometry and numerical contracts.
12
+ - Run `make env`, `make qa`, and `make build` for package changes.
13
+ - Use only synthetic CT fixtures; generated reports require human review.
14
+ - Keep weights and local outputs outside Git. Do not add hosted CI.
@@ -0,0 +1,203 @@
1
+ Copyright 2018- The Hugging Face team. All rights reserved.
2
+
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction,
12
+ and distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by
15
+ the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all
18
+ other entities that control, are controlled by, or are under common
19
+ control with that entity. For the purposes of this definition,
20
+ "control" means (i) the power, direct or indirect, to cause the
21
+ direction or management of such entity, whether by contract or
22
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
+
25
+ "You" (or "Your") shall mean an individual or Legal Entity
26
+ exercising permissions granted by this License.
27
+
28
+ "Source" form shall mean the preferred form for making modifications,
29
+ including but not limited to software source code, documentation
30
+ source, and configuration files.
31
+
32
+ "Object" form shall mean any form resulting from mechanical
33
+ transformation or translation of a Source form, including but
34
+ not limited to compiled object code, generated documentation,
35
+ and conversions to other media types.
36
+
37
+ "Work" shall mean the work of authorship, whether in Source or
38
+ Object form, made available under the License, as indicated by a
39
+ copyright notice that is included in or attached to the work
40
+ (an example is provided in the Appendix below).
41
+
42
+ "Derivative Works" shall mean any work, whether in Source or Object
43
+ form, that is based on (or derived from) the Work and for which the
44
+ editorial revisions, annotations, elaborations, or other modifications
45
+ represent, as a whole, an original work of authorship. For the purposes
46
+ of this License, Derivative Works shall not include works that remain
47
+ separable from, or merely link (or bind by name) to the interfaces of,
48
+ the Work and Derivative Works thereof.
49
+
50
+ "Contribution" shall mean any work of authorship, including
51
+ the original version of the Work and any modifications or additions
52
+ to that Work or Derivative Works thereof, that is intentionally
53
+ submitted to Licensor for inclusion in the Work by the copyright owner
54
+ or by an individual or Legal Entity authorized to submit on behalf of
55
+ the copyright owner. For the purposes of this definition, "submitted"
56
+ means any form of electronic, verbal, or written communication sent
57
+ to the Licensor or its representatives, including but not limited to
58
+ communication on electronic mailing lists, source code control systems,
59
+ and issue tracking systems that are managed by, or on behalf of, the
60
+ Licensor for the purpose of discussing and improving the Work, but
61
+ excluding communication that is conspicuously marked or otherwise
62
+ designated in writing by the copyright owner as "Not a Contribution."
63
+
64
+ "Contributor" shall mean Licensor and any individual or Legal Entity
65
+ on behalf of whom a Contribution has been received by Licensor and
66
+ subsequently incorporated within the Work.
67
+
68
+ 2. Grant of Copyright License. Subject to the terms and conditions of
69
+ this License, each Contributor hereby grants to You a perpetual,
70
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
+ copyright license to reproduce, prepare Derivative Works of,
72
+ publicly display, publicly perform, sublicense, and distribute the
73
+ Work and such Derivative Works in Source or Object form.
74
+
75
+ 3. Grant of Patent License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ (except as stated in this section) patent license to make, have made,
79
+ use, offer to sell, sell, import, and otherwise transfer the Work,
80
+ where such license applies only to those patent claims licensable
81
+ by such Contributor that are necessarily infringed by their
82
+ Contribution(s) alone or by combination of their Contribution(s)
83
+ with the Work to which such Contribution(s) was submitted. If You
84
+ institute patent litigation against any entity (including a
85
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
86
+ or a Contribution incorporated within the Work constitutes direct
87
+ or contributory patent infringement, then any patent licenses
88
+ granted to You under this License for that Work shall terminate
89
+ as of the date such litigation is filed.
90
+
91
+ 4. Redistribution. You may reproduce and distribute copies of the
92
+ Work or Derivative Works thereof in any medium, with or without
93
+ modifications, and in Source or Object form, provided that You
94
+ meet the following conditions:
95
+
96
+ (a) You must give any other recipients of the Work or
97
+ Derivative Works a copy of this License; and
98
+
99
+ (b) You must cause any modified files to carry prominent notices
100
+ stating that You changed the files; and
101
+
102
+ (c) You must retain, in the Source form of any Derivative Works
103
+ that You distribute, all copyright, patent, trademark, and
104
+ attribution notices from the Source form of the Work,
105
+ excluding those notices that do not pertain to any part of
106
+ the Derivative Works; and
107
+
108
+ (d) If the Work includes a "NOTICE" text file as part of its
109
+ distribution, then any Derivative Works that You distribute must
110
+ include a readable copy of the attribution notices contained
111
+ within such NOTICE file, excluding those notices that do not
112
+ pertain to any part of the Derivative Works, in at least one
113
+ of the following places: within a NOTICE text file distributed
114
+ as part of the Derivative Works; within the Source form or
115
+ documentation, if provided along with the Derivative Works; or,
116
+ within a display generated by the Derivative Works, if and
117
+ wherever such third-party notices normally appear. The contents
118
+ of the NOTICE file are for informational purposes only and
119
+ do not modify the License. You may add Your own attribution
120
+ notices within Derivative Works that You distribute, alongside
121
+ or as an addendum to the NOTICE text from the Work, provided
122
+ that such additional attribution notices cannot be construed
123
+ as modifying the License.
124
+
125
+ You may add Your own copyright statement to Your modifications and
126
+ may provide additional or different license terms and conditions
127
+ for use, reproduction, or distribution of Your modifications, or
128
+ for any such Derivative Works as a whole, provided Your use,
129
+ reproduction, and distribution of the Work otherwise complies with
130
+ the conditions stated in this License.
131
+
132
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
133
+ any Contribution intentionally submitted for inclusion in the Work
134
+ by You to the Licensor shall be under the terms and conditions of
135
+ this License, without any additional terms or conditions.
136
+ Notwithstanding the above, nothing herein shall supersede or modify
137
+ the terms of any separate license agreement you may have executed
138
+ with Licensor regarding such Contributions.
139
+
140
+ 6. Trademarks. This License does not grant permission to use the trade
141
+ names, trademarks, service marks, or product names of the Licensor,
142
+ except as required for reasonable and customary use in describing the
143
+ origin of the Work and reproducing the content of the NOTICE file.
144
+
145
+ 7. Disclaimer of Warranty. Unless required by applicable law or
146
+ agreed to in writing, Licensor provides the Work (and each
147
+ Contributor provides its Contributions) on an "AS IS" BASIS,
148
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
+ implied, including, without limitation, any warranties or conditions
150
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
+ PARTICULAR PURPOSE. You are solely responsible for determining the
152
+ appropriateness of using or redistributing the Work and assume any
153
+ risks associated with Your exercise of permissions under this License.
154
+
155
+ 8. Limitation of Liability. In no event and under no legal theory,
156
+ whether in tort (including negligence), contract, or otherwise,
157
+ unless required by applicable law (such as deliberate and grossly
158
+ negligent acts) or agreed to in writing, shall any Contributor be
159
+ liable to You for damages, including any direct, indirect, special,
160
+ incidental, or consequential damages of any character arising as a
161
+ result of this License or out of the use or inability to use the
162
+ Work (including but not limited to damages for loss of goodwill,
163
+ work stoppage, computer failure or malfunction, or any and all
164
+ other commercial damages or losses), even if such Contributor
165
+ has been advised of the possibility of such damages.
166
+
167
+ 9. Accepting Warranty or Additional Liability. While redistributing
168
+ the Work or Derivative Works thereof, You may choose to offer,
169
+ and charge a fee for, acceptance of support, warranty, indemnity,
170
+ or other liability obligations and/or rights consistent with this
171
+ License. However, in accepting such obligations, You may act only
172
+ on Your own behalf and on Your sole responsibility, not on behalf
173
+ of any other Contributor, and only if You agree to indemnify,
174
+ defend, and hold each Contributor harmless for any liability
175
+ incurred by, or claims asserted against, such Contributor by reason
176
+ of your accepting any such warranty or additional liability.
177
+
178
+ END OF TERMS AND CONDITIONS
179
+
180
+ APPENDIX: How to apply the Apache License to your work.
181
+
182
+ To apply the Apache License to your work, attach the following
183
+ boilerplate notice, with the fields enclosed by brackets "[]"
184
+ replaced with your own identifying information. (Don't include
185
+ the brackets!) The text should be enclosed in the appropriate
186
+ comment syntax for the file format. We also recommend that a
187
+ file or class name and description of purpose be included on the
188
+ same "printed page" as the copyright notice for easier
189
+ identification within third-party archives.
190
+
191
+ Copyright [yyyy] [name of copyright owner]
192
+
193
+ Licensed under the Apache License, Version 2.0 (the "License");
194
+ you may not use this file except in compliance with the License.
195
+ You may obtain a copy of the License at
196
+
197
+ http://www.apache.org/licenses/LICENSE-2.0
198
+
199
+ Unless required by applicable law or agreed to in writing, software
200
+ distributed under the License is distributed on an "AS IS" BASIS,
201
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
+ See the License for the specific language governing permissions and
203
+ limitations under the License.
@@ -0,0 +1,20 @@
1
+ .PHONY: env lint typecheck test qa build
2
+
3
+ env:
4
+ uv sync --locked --python 3.12
5
+
6
+ lint:
7
+ uv run --locked ruff check .
8
+ uv run --locked ruff format --check .
9
+
10
+ typecheck:
11
+ uv run --locked pyright --project . --warnings
12
+ uv run --locked pyright --verifytypes mlx_reason_ct --ignoreexternal
13
+
14
+ test:
15
+ uv run --locked python -m pytest -q
16
+
17
+ qa: lint typecheck test
18
+
19
+ build:
20
+ uv build
@@ -0,0 +1,110 @@
1
+ Metadata-Version: 2.4
2
+ Name: mlx-reason-ct
3
+ Version: 0.1.0
4
+ Summary: Native MLX port of NVIDIA NV-Reason-CT for 3D CT reasoning on Apple Silicon
5
+ Project-URL: Homepage, https://github.com/sandovaljoseph/MLX-Reason-CT
6
+ Project-URL: Repository, https://github.com/sandovaljoseph/MLX-Reason-CT
7
+ Project-URL: Documentation, https://github.com/sandovaljoseph/MLX-Reason-CT/blob/main/docs/usage.md
8
+ Project-URL: Issues, https://github.com/sandovaljoseph/MLX-Reason-CT/issues
9
+ Project-URL: Weights, https://huggingface.co/josand/MLX-Reason-CT
10
+ Author: Joseph Sandoval
11
+ License-Expression: Apache-2.0
12
+ License-File: LICENSE
13
+ License-File: THIRD_PARTY_NOTICES.md
14
+ Keywords: apple-silicon,ct,medical-imaging,mlx,nv-reason-ct
15
+ Requires-Python: <3.13,>=3.12
16
+ Requires-Dist: huggingface-hub==1.23.0
17
+ Requires-Dist: jinja2==3.1.6
18
+ Requires-Dist: mlx==0.32.2; sys_platform == 'darwin' and platform_machine == 'arm64'
19
+ Requires-Dist: nibabel==5.4.2
20
+ Requires-Dist: numpy==2.3.5
21
+ Requires-Dist: safetensors==0.8.0
22
+ Requires-Dist: scipy==1.18.1
23
+ Requires-Dist: tokenizers==0.22.2
24
+ Description-Content-Type: text/markdown
25
+
26
+ # MLX-Reason-CT
27
+
28
+ Native MLX port of [NVIDIA NV-Reason-CT](https://huggingface.co/nvidia/NV-Reason-CT)
29
+ for Apple Silicon. Run 3D CT reasoning and report generation locally on Mac.
30
+
31
+ - Chest and abdomen CT
32
+ - Structured reports and CT question answering
33
+ - Local NIfTI input with Apple Silicon GPU acceleration
34
+ - FP32 inference using MLX; no PyTorch or CUDA required
35
+
36
+ MLX port by **Joseph Sandoval**.
37
+ [PyPI](https://pypi.org/project/mlx-reason-ct/) ·
38
+ [Weights](https://huggingface.co/josand/MLX-Reason-CT) ·
39
+ [Usage](https://github.com/sandovaljoseph/MLX-Reason-CT/blob/main/docs/usage.md)
40
+
41
+ ## Requirements
42
+
43
+ Apple Silicon Mac, macOS, Python 3.12 and [uv](https://docs.astral.sh/uv/).
44
+ Weights occupy 17.4 GB. Measured peak MLX memory use is about 22.7 GB;
45
+ allow additional unified memory for preprocessing, macOS and other apps.
46
+
47
+ ## Quick start
48
+
49
+ ```bash
50
+ uv tool install --python 3.12 mlx-reason-ct
51
+
52
+ mlx-reason-ct download \
53
+ --revision e15558ae30c8ad6c25c0bfcce7467cc72cd0b2f2 \
54
+ --model-dir models
55
+ ```
56
+
57
+ Generate a chest CT report:
58
+
59
+ ```bash
60
+ mlx-reason-ct report \
61
+ --input ct.nii.gz --model-dir models --output-dir outputs
62
+ ```
63
+
64
+ For abdomen CT:
65
+
66
+ ```bash
67
+ mlx-reason-ct report \
68
+ --input ct.nii.gz --model-dir models --output-dir outputs \
69
+ --anatomy-region abdomen
70
+ ```
71
+
72
+ To ask a question about the CT, set `--prompt` to your question.
73
+
74
+ For an existing Python 3.12 environment, install with `pip install mlx-reason-ct`.
75
+ For source development, clone [this repository](https://github.com/sandovaljoseph/MLX-Reason-CT)
76
+ and run `make env`; use
77
+ `uv run mlx-reason-ct` for the commands above.
78
+
79
+ ## Input and output
80
+
81
+ Input is one 3D CT volume in NIfTI format (`.nii` or `.nii.gz`) with Hounsfield
82
+ Unit values and valid spatial geometry. DICOM and 2D images are unsupported.
83
+
84
+ The upstream crop locates the chest from enclosed air. On whole-body scans,
85
+ especially with arms raised, it can select the head and neck instead; crop such
86
+ volumes to the chest or abdomen before running.
87
+
88
+ Each run writes:
89
+
90
+ - `report.txt` — generated response
91
+ - `model_response.json` — response, reasoning (with `--enable-thinking`) and generation metadata
92
+ - `run.json` — execution metadata
93
+
94
+ ## Technical details
95
+
96
+ This release uses FP32 inference with weights converted directly from the
97
+ original BF16 checkpoint, without retraining. Implementation and verification
98
+ details, including token-exact parity with the CUDA source model on real CT, are in
99
+ [docs](https://github.com/sandovaljoseph/MLX-Reason-CT/blob/main/docs/usage.md).
100
+
101
+ ## Intended use
102
+
103
+ Intended for research and education, not clinical diagnosis or treatment decisions.
104
+ Outputs require human review.
105
+
106
+ ## License
107
+
108
+ Code: [Apache-2.0](https://github.com/sandovaljoseph/MLX-Reason-CT/blob/main/LICENSE), Joseph Sandoval.
109
+ Weights: [OpenMDW-1.1](https://huggingface.co/josand/MLX-Reason-CT/blob/main/LICENSE), NVIDIA CORPORATION & AFFILIATES.
110
+ [Third-party notices](https://github.com/sandovaljoseph/MLX-Reason-CT/blob/main/THIRD_PARTY_NOTICES.md).
@@ -0,0 +1,85 @@
1
+ # MLX-Reason-CT
2
+
3
+ Native MLX port of [NVIDIA NV-Reason-CT](https://huggingface.co/nvidia/NV-Reason-CT)
4
+ for Apple Silicon. Run 3D CT reasoning and report generation locally on Mac.
5
+
6
+ - Chest and abdomen CT
7
+ - Structured reports and CT question answering
8
+ - Local NIfTI input with Apple Silicon GPU acceleration
9
+ - FP32 inference using MLX; no PyTorch or CUDA required
10
+
11
+ MLX port by **Joseph Sandoval**.
12
+ [PyPI](https://pypi.org/project/mlx-reason-ct/) ·
13
+ [Weights](https://huggingface.co/josand/MLX-Reason-CT) ·
14
+ [Usage](https://github.com/sandovaljoseph/MLX-Reason-CT/blob/main/docs/usage.md)
15
+
16
+ ## Requirements
17
+
18
+ Apple Silicon Mac, macOS, Python 3.12 and [uv](https://docs.astral.sh/uv/).
19
+ Weights occupy 17.4 GB. Measured peak MLX memory use is about 22.7 GB;
20
+ allow additional unified memory for preprocessing, macOS and other apps.
21
+
22
+ ## Quick start
23
+
24
+ ```bash
25
+ uv tool install --python 3.12 mlx-reason-ct
26
+
27
+ mlx-reason-ct download \
28
+ --revision e15558ae30c8ad6c25c0bfcce7467cc72cd0b2f2 \
29
+ --model-dir models
30
+ ```
31
+
32
+ Generate a chest CT report:
33
+
34
+ ```bash
35
+ mlx-reason-ct report \
36
+ --input ct.nii.gz --model-dir models --output-dir outputs
37
+ ```
38
+
39
+ For abdomen CT:
40
+
41
+ ```bash
42
+ mlx-reason-ct report \
43
+ --input ct.nii.gz --model-dir models --output-dir outputs \
44
+ --anatomy-region abdomen
45
+ ```
46
+
47
+ To ask a question about the CT, set `--prompt` to your question.
48
+
49
+ For an existing Python 3.12 environment, install with `pip install mlx-reason-ct`.
50
+ For source development, clone [this repository](https://github.com/sandovaljoseph/MLX-Reason-CT)
51
+ and run `make env`; use
52
+ `uv run mlx-reason-ct` for the commands above.
53
+
54
+ ## Input and output
55
+
56
+ Input is one 3D CT volume in NIfTI format (`.nii` or `.nii.gz`) with Hounsfield
57
+ Unit values and valid spatial geometry. DICOM and 2D images are unsupported.
58
+
59
+ The upstream crop locates the chest from enclosed air. On whole-body scans,
60
+ especially with arms raised, it can select the head and neck instead; crop such
61
+ volumes to the chest or abdomen before running.
62
+
63
+ Each run writes:
64
+
65
+ - `report.txt` — generated response
66
+ - `model_response.json` — response, reasoning (with `--enable-thinking`) and generation metadata
67
+ - `run.json` — execution metadata
68
+
69
+ ## Technical details
70
+
71
+ This release uses FP32 inference with weights converted directly from the
72
+ original BF16 checkpoint, without retraining. Implementation and verification
73
+ details, including token-exact parity with the CUDA source model on real CT, are in
74
+ [docs](https://github.com/sandovaljoseph/MLX-Reason-CT/blob/main/docs/usage.md).
75
+
76
+ ## Intended use
77
+
78
+ Intended for research and education, not clinical diagnosis or treatment decisions.
79
+ Outputs require human review.
80
+
81
+ ## License
82
+
83
+ Code: [Apache-2.0](https://github.com/sandovaljoseph/MLX-Reason-CT/blob/main/LICENSE), Joseph Sandoval.
84
+ Weights: [OpenMDW-1.1](https://huggingface.co/josand/MLX-Reason-CT/blob/main/LICENSE), NVIDIA CORPORATION & AFFILIATES.
85
+ [Third-party notices](https://github.com/sandovaljoseph/MLX-Reason-CT/blob/main/THIRD_PARTY_NOTICES.md).
@@ -0,0 +1,218 @@
1
+ # Third-party notices
2
+
3
+ MLX-Reason-CT
4
+ Copyright (c) 2026 Joseph Sandoval
5
+
6
+ The original contributions to this standalone port are licensed under Apache-2.0.
7
+ This does not replace the licenses or notices of upstream portions or model materials.
8
+
9
+ NV-Reason-CT model architecture, processor policy, tokenizer, template, configuration
10
+ and converted parameters originate from NVIDIA CORPORATION & AFFILIATES.
11
+ Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
12
+ These Model Materials retain OpenMDW-1.1; see the NVIDIA license below.
13
+
14
+ The vendored MLX-LM gated_delta.py retains Copyright (c) 2025 Apple Inc. and MIT terms.
15
+ The complete upstream license texts are retained below.
16
+
17
+ | Material | Origin and pinned version | Terms |
18
+ | --- | --- | --- |
19
+ | Model architecture, converted weights, tokenizer, template, processor policy and configuration | [NVIDIA NV-Reason-CT](https://huggingface.co/nvidia/NV-Reason-CT/tree/386b93e034983f6c1fc841a43833a1b6a0cd9c13), revision `386b93e034983f6c1fc841a43833a1b6a0cd9c13`; Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES | [OpenMDW-1.1](#nvidia-openmdw-11) |
20
+ | Physical resampling extent and spacing semantics | [MONAI](https://github.com/Project-MONAI/MONAI), 1.6.0; MONAI Consortium | [Apache-2.0](LICENSE) |
21
+ | Primus EVA architecture semantics | [dynamic-network-architectures](https://github.com/MIC-DKFZ/dynamic-network-architectures), 0.4.3; MIC-DKFZ | Apache-2.0 |
22
+ | EVA attention, rotary and SwiGLU semantics | [timm](https://github.com/huggingface/pytorch-image-models), 1.0.22; Ross Wightman and contributors | Apache-2.0 |
23
+ | Qwen3.5 hybrid decoder, MRoPE and gated-delta chunk algebra | [Transformers](https://github.com/huggingface/transformers), 5.10.4; Hugging Face and contributors | Apache-2.0 |
24
+ | CUDA Sklansky prefix-scan summation order and activation arithmetic | [PyTorch](https://github.com/pytorch/pytorch), 2.13.0, revision `cf30153c4c131c8164ee7798e5022d810682e2cb`; copyright holders listed in the retained license | [BSD](#pytorch-bsd) |
25
+ | Vendored recurrent Metal kernel: `gated_delta.py` | [MLX-LM](https://github.com/ml-explore/mlx-lm), published 0.32.0 wheel; Copyright (c) 2025 Apple Inc.; SHA256 `f69e837ea68641dbb06fdb5dcc024a9a7e1d9353f08ae58c05275253a0c39428` | [MIT](#apple-mit) |
26
+
27
+ The Apple module is copied verbatim from the published wheel. Runtime dependencies
28
+ retain their package licenses. MONAI, timm, Transformers and PyTorch are provenance
29
+ references, not runtime requirements. All learned arithmetic executes on Metal.
30
+
31
+ The model is intended for research and education. It is not intended for clinical
32
+ diagnosis or treatment decisions. Outputs require human review and are not ground truth.
33
+
34
+ <details>
35
+ <summary>NVIDIA OpenMDW-1.1: full license</summary>
36
+
37
+ ## NVIDIA OpenMDW-1.1
38
+
39
+ ```text
40
+ Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
41
+
42
+ OpenMDW License Agreement, version 1.1 (OpenMDW-1.1)
43
+
44
+ By exercising rights granted to you under this agreement, you accept and agree
45
+ to its terms.
46
+
47
+ As used in this agreement, "Model Materials" means the materials provided to
48
+ you under this agreement, consisting of: (1) one or more machine learning
49
+ models (including architecture and parameters); and (2) all related artifacts
50
+ (including associated data, documentation and software) that are provided to
51
+ you hereunder.
52
+
53
+ Subject to your compliance with this agreement, permission is hereby granted,
54
+ free of charge, to deal in the Model Materials without restriction, including
55
+ under all copyright, patent, database, and trade secret rights included or
56
+ embodied therein.
57
+
58
+ If you distribute any portion of the Model Materials, you shall retain in your
59
+ distribution (1) a copy of this agreement, and (2) all copyright notices and
60
+ other notices of origin included in the Model Materials that are applicable to
61
+ your distribution.
62
+
63
+ If you file, maintain, or voluntarily participate in a lawsuit against any
64
+ person or entity asserting that the Model Materials directly or indirectly
65
+ infringe any patent or copyright, then all rights and grants made to you
66
+ hereunder are terminated, unless that lawsuit was in response to a
67
+ corresponding lawsuit first brought against you.
68
+
69
+ This agreement does not impose any restrictions or obligations with respect to
70
+ any use, modification, or sharing of any outputs generated by using the Model
71
+ Materials.
72
+
73
+ THE MODEL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
74
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
75
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE, NONINFRINGEMENT, ACCURACY, OR THE
76
+ ABSENCE OF LATENT OR OTHER DEFECTS OR ERRORS, WHETHER OR NOT DISCOVERABLE, ALL
77
+ TO THE GREATEST EXTENT PERMISSIBLE UNDER APPLICABLE LAW.
78
+
79
+ YOU ARE SOLELY RESPONSIBLE FOR (1) CLEARING RIGHTS OF OTHER PERSONS THAT MAY
80
+ APPLY TO THE MODEL MATERIALS OR ANY USE THEREOF, INCLUDING WITHOUT LIMITATION
81
+ ANY PERSON'S COPYRIGHTS OR OTHER RIGHTS INCLUDED OR EMBODIED IN THE MODEL
82
+ MATERIALS; (2) OBTAINING ANY NECESSARY CONSENTS, PERMISSIONS OR OTHER RIGHTS
83
+ REQUIRED FOR ANY USE OF THE MODEL MATERIALS; OR (3) PERFORMING ANY DUE
84
+ DILIGENCE OR UNDERTAKING ANY OTHER INVESTIGATIONS INTO THE MODEL MATERIALS OR
85
+ ANYTHING INCORPORATED OR EMBODIED THEREIN.
86
+
87
+ IN NO EVENT SHALL THE PROVIDERS OF THE MODEL MATERIALS BE LIABLE FOR ANY CLAIM,
88
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
89
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MODEL MATERIALS, THE
90
+ USE THEREOF OR OTHER DEALINGS THEREIN.
91
+ ```
92
+
93
+ </details>
94
+
95
+ <details>
96
+ <summary>Apple MIT: full license</summary>
97
+
98
+ ## Apple MIT
99
+
100
+ ```text
101
+ MIT License
102
+
103
+ Copyright © 2023 Apple Inc.
104
+
105
+ Permission is hereby granted, free of charge, to any person obtaining a copy
106
+ of this software and associated documentation files (the "Software"), to deal
107
+ in the Software without restriction, including without limitation the rights
108
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
109
+ copies of the Software, and to permit persons to whom the Software is
110
+ furnished to do so, subject to the following conditions:
111
+
112
+ The above copyright notice and this permission notice shall be included in all
113
+ copies or substantial portions of the Software.
114
+
115
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
116
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
117
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
118
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
119
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
120
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
121
+ SOFTWARE.
122
+ ```
123
+
124
+ </details>
125
+
126
+ <details>
127
+ <summary>PyTorch BSD: full license</summary>
128
+
129
+ ## PyTorch BSD
130
+
131
+ ```text
132
+ From PyTorch:
133
+
134
+ Copyright (c) 2016- Facebook, Inc (Adam Paszke)
135
+ Copyright (c) 2014- Facebook, Inc (Soumith Chintala)
136
+ Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert)
137
+ Copyright (c) 2012-2014 Deepmind Technologies (Koray Kavukcuoglu)
138
+ Copyright (c) 2011-2012 NEC Laboratories America (Koray Kavukcuoglu)
139
+ Copyright (c) 2011-2013 NYU (Clement Farabet)
140
+ Copyright (c) 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou, Iain Melvin, Jason Weston)
141
+ Copyright (c) 2006 Idiap Research Institute (Samy Bengio)
142
+ Copyright (c) 2001-2004 Idiap Research Institute (Ronan Collobert, Samy Bengio, Johnny Mariethoz)
143
+
144
+ From Caffe2:
145
+
146
+ Copyright (c) 2016-present, Facebook Inc. All rights reserved.
147
+
148
+ All contributions by Facebook:
149
+ Copyright (c) 2016 Facebook Inc.
150
+
151
+ All contributions by Google:
152
+ Copyright (c) 2015 Google Inc.
153
+ All rights reserved.
154
+
155
+ All contributions by Yangqing Jia:
156
+ Copyright (c) 2015 Yangqing Jia
157
+ All rights reserved.
158
+
159
+ All contributions by Kakao Brain:
160
+ Copyright 2019-2020 Kakao Brain
161
+
162
+ All contributions by Cruise LLC:
163
+ Copyright (c) 2022 Cruise LLC.
164
+ All rights reserved.
165
+
166
+ All contributions by Tri Dao:
167
+ Copyright (c) 2024 Tri Dao.
168
+ All rights reserved.
169
+
170
+ All contributions by Arm:
171
+ Copyright (c) 2021, 2023-2025 Arm Limited and/or its affiliates
172
+
173
+ All contributions from Caffe:
174
+ Copyright(c) 2013, 2014, 2015, the respective contributors
175
+ All rights reserved.
176
+
177
+ All other contributions:
178
+ Copyright(c) 2015, 2016 the respective contributors
179
+ All rights reserved.
180
+
181
+ Caffe2 uses a copyright model similar to Caffe: each contributor holds
182
+ copyright over their contributions to Caffe2. The project versioning records
183
+ all such contribution and copyright details. If a contributor wants to further
184
+ mark their specific copyright on a particular contribution, they should
185
+ indicate their copyright solely in the commit message of the change when it is
186
+ committed.
187
+
188
+ All rights reserved.
189
+
190
+ Redistribution and use in source and binary forms, with or without
191
+ modification, are permitted provided that the following conditions are met:
192
+
193
+ 1. Redistributions of source code must retain the above copyright
194
+ notice, this list of conditions and the following disclaimer.
195
+
196
+ 2. Redistributions in binary form must reproduce the above copyright
197
+ notice, this list of conditions and the following disclaimer in the
198
+ documentation and/or other materials provided with the distribution.
199
+
200
+ 3. Neither the names of Facebook, Deepmind Technologies, NYU, NEC Laboratories America
201
+ and IDIAP Research Institute nor the names of its contributors may be
202
+ used to endorse or promote products derived from this software without
203
+ specific prior written permission.
204
+
205
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
206
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
207
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
208
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
209
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
210
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
211
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
212
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
213
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
214
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
215
+ POSSIBILITY OF SUCH DAMAGE.
216
+ ```
217
+
218
+ </details>