nv-reason-ct
Installation
SKILL.md
NV-Reason-CT
Purpose
- Runs the documented
nvidia/NV-Reason-CTHugging Face Transformers path on one user-provided 3D NIfTI CT volume and text prompt. - Emits
result_jsonwith input geometry and hash, anatomy-region selection, response text, runtime identity, dependency versions, and limitations. - Manifest I/O: inputs are
ct_request_or_fixtureand optional directct_volume; output isresult_jsonon stdout. - Not for diagnosis, treatment, triage, patient-facing output, or clinical reporting.
Instructions
- Read
skill_manifest.yamlbefore changing arguments, dependencies, side effects, or validation gates. - Run
scripts/run_nv_reason_ct.py; do not write replacement inference code or use the Gradio demo for normal runs. Before inference, explain that the selected model and processor contain custom Python code running with the caller's permissions. Review the selected Hub revision or local export and obtain the caller's explicit authorization to load that code; ask if it has not already been granted. Only then pass--trust-model-code. Do not infer this consent from a CT request file, environment setting, cached files, or a successful setup check. - After that authorization, hosts exposing a helper may use
run_script("scripts/run_nv_reason_ct.py", args=["PATH_TO_CT.nii.gz", "--trust-model-code", "--anatomy-region", "chest", "--prompt", "PROMPT", "--out-dir", "OUT_DIR"]). - Inspect stdout JSON and the exit status. Preserve JSON for the caller or eval harness, including partial output on failure; do not redirect it away with
>. Successful inference writes only stdout, without creating--out-dir. Exit code3means generation hit the token ceiling without EOS: the text is incomplete and the completion gate fails. Only then does the wrapper attempt to create--out-dirand save a uniquepartial_result_*.json. Only a successful save addsoutput.partial_json_pathand prints the path on stderr. If saving fails, stderr warns to retain stdout; the JSON remains available there without a file path. Input, dependency, and inference errors exit2with an error on stderr.
Tool scope: Bash runs the committed wrapper and documented setup commands; Read covers skill files, caller-selected inputs, and model assets; Write covers caller-selected outputs and isolated caches. Env is SkillSpector's environment-capability label for the runtime variables listed below, accessed through shell/Python on hosts without a separate environment tool. These declarations do not authorize unrelated file access, printing authentication values, or changing an existing development environment.