NTFM-C / README.md
markjiang1's picture
Optimized release: verified metadata, download instructions and package structure
40841d0
|
Raw History Blame Contribute Delete
4.45 kB
---
license: apache-2.0
library_name: pytorch
pipeline_tag: any-to-any
tags:
- neuroimaging
- mri
- multimodal
- safetensors
- research
---
# NeuroTaskFM-C (NTFM-C)
**Compiled-space neuroimaging model weights for NeuroTaskFM.**
NeuroTaskFM learns relationships among brain structure, resting-state activity, task function, behavior and longitudinal clinical state. This repository distributes the **NeuroTaskFM-C weight package**. Build tools, preprocessing, model definitions and deployment configurations live in the [companion source repository](https://github.com/rest2task/NeuroTaskFM).
[Download](#download) 路 [Package contents](#package-contents) 路 [Build and inference](#build-and-inference) 路 [Source documentation](#source-documentation)
## Package contents
| Property | Verified package value |
|---|---|
| Weight format | Safetensors, 14 shards |
| Stored tensors | 1,294 |
| BF16 tensor elements | 36,131,008,036 |
| Other stored elements | 1,920 F32; 192 I64 |
| Total shard download | 72.26 GB (67.30 GiB) |
| Tensor lookup | [model.safetensors.index.json](model.safetensors.index.json) |
| Package description | [config.json](config.json) |
These counts were read from all 14 shard headers. Tensor-element counts include stored buffers and are not an inference benchmark. The index maps every tensor to its existing shard; the weight bytes are unchanged.
## Download
Install the Hugging Face CLI on the machine used to download the package:
```bash
pip install -U huggingface_hub
hf download markjiang1/NTFM-C --local-dir NTFM-C
```
Keep all 14 `.safetensors` files together with the index and `config.json`. A complete download needs approximately 72.3 GB of storage for the shard files, plus working space for deployment. Re-run the same command to reuse completed downloads. The CLI is a download utility; the inference runtime is C++/CUDA.
For a reproducible snapshot, add `--revision <commit-id>` using a revision from this repository's history.
## Build and inference
The documented deployment target is **two NVIDIA B200 GPUs in one NVLink domain**, using C++20, LibTorch and CUDA. Obtain the source first:
```bash
git clone https://github.com/rest2task/NeuroTaskFM.git
cd NeuroTaskFM
docker build -f deploy/Dockerfile.b200 -t neurotaskfm:0.1.0 .
```
The source project contains the NeuroCompiler preprocessing pipeline, model definitions, calibration workflow and inference executables. Follow its [deployment guide](https://github.com/rest2task/NeuroTaskFM/blob/main/docs/deployment.md) for build and checkpoint layout requirements. The reference [deployment configuration](https://github.com/rest2task/NeuroTaskFM/blob/main/configs/deployment/product_b200x2.yaml) points to `/checkpoints/neurotaskfm-c`; configure the local checkpoint path and required compiler/calibration artifacts for your deployment.
The published shard package is indexed here, but end-to-end loading into the source project's distributed runtime has not been validated in this packaging audit. `config.json` describes the download package; runtime architecture settings come from the source project.
## Inputs and outputs
The source workflow compiles T1 MRI and resting-state fMRI, atlas and observation metadata into HDF5 feature packs. Documented inference outputs include task-effect mean and uncertainty maps, a participant NeuroSignature, and structured result metadata. See the [request schema](https://github.com/rest2task/NeuroTaskFM/blob/main/contracts/inference_request.schema.json) and [example request](https://github.com/rest2task/NeuroTaskFM/blob/main/examples/inference_request.json).
## Source documentation
- [Data preparation](https://github.com/rest2task/NeuroTaskFM/blob/main/docs/data.md)
- [Training](https://github.com/rest2task/NeuroTaskFM/blob/main/docs/training.md)
- [Architecture](https://github.com/rest2task/NeuroTaskFM/blob/main/docs/architecture.md)
- [Deployment and calibration](https://github.com/rest2task/NeuroTaskFM/blob/main/docs/deployment.md)
## Download statistics
Complete-package downloads include `config.json`, which supports Hugging Face's native download counter. Individual shard requests may not count; download totals are requests, not unique people. [Counting rules](https://huggingface.co/docs/hub/models-download-stats).
## License and use
Apache-2.0, as declared by the release. Research use; clinical diagnostic performance is not established by this package description.