Views
No views yet
R. Thapa et al., "A multimodal sleep foundation model for disease prediction," Nature Medicine (2026). https://doi.org/10.1038/s41591-025-04133-4
braindecode/SleepFMStager,
because a Braindecode config.json describes exactly one architecture.| File | Description |
|---|---|
model.safetensors | The encoder, with the parameter names of braindecode.models.SleepFM |
config.json | Architecture of the checkpoint, read by from_pretrained() |
model_base/best.pt | The upstream artifact, byte-for-byte, kept for provenance |
model_sleep_staging/best.pth | The upstream staging artifact, byte-for-byte (see SleepFMStager) |
model.safetensors holds the same tensors as model_base/best.pt; only the keys were
rewritten (the module. prefix of the distributed training run stripped, and
positional_encoding.pe renamed) so that the library needs no remapping code at load
time. Loading either way gives bit-identical outputs.final_layer is randomly initialised and must be fine-tuned.1from braindecode.models import SleepFM
2
3# Defaults to this repository.
4model = SleepFM.from_pretrained(n_chans=4, n_outputs=5, n_times=3840, sfreq=128)
5model.eval()patch_size=640 is a 5-second patch at
that rate. A channel mask of shape (batch, n_chans) marks missing channels with True.