DIVER-1, 1 s Small (iEEG and EEG)

The released encoder of Han et al. (2025), the joint encoder DIVER-1-1s Small (patches of 1 s at 500 Hz, pretrained on intracranial and scalp recordings; described in versions 1 and 2 of the paper), 50.6M parameters, converted to braindecode.models.DIVER1.

Source: weights/i_eeg_pretrained_weights.pt of DIVER-Project/DIVER-1, sha256 dbfa48289989475a52719b1bcb868e62a82877120ac8272ca7dab772e407b891 (the GitHub LFS object is no longer served; the same file is in the authors' Google Drive folder). Conversion casts the bfloat16 tensors to float32, renames them and drops the pretraining-only mask token and reconstruction heads; convert_diver1_weights.py in this repository reproduces it. Encoder features match the official model to 0.0e+00 in float32 on CPU, for intracranial and scalp channels, with muP attention scaling (mup_attention=True).

Usage

Resample to 500 Hz and pass the electrode positions in chs_info (metres, as in MNE). The channel kinds set the modality: SEEG, ECoG and DBS are intracranial, EEG is scalp.

import torch
from braindecode.models import DIVER1

model = DIVER1.from_pretrained(
    "braindecode/DIVER-1-1s-small", chs_info=raw.info["chs"], n_times=1000, n_outputs=2
)
logits = model(torch.randn(8, len(raw.ch_names), 1000))

n_times must be a multiple of 500. The saved geometry is 6 channels and 1000 samples; the encoder does not depend on it, so pass your own montage, n_times and n_outputs when loading.

Limitations

These files hold the encoder only; the release has no classification head. Braindecode initializes the head on load, so it needs fine-tuning, as in the paper's protocol (scripts/finetune_faced.sh). The check above covers float32 CPU encoder features, not downstream accuracy, GPU kernels or mixed precision.

Citation

@article{han2025diver,
    title={DIVER-1: Scaling intracranial EEG foundation models for transferable representations},
    author={Han, Danny Dongyeop and Gwon, Yonghyeon and Lee, Ahhyun Lucy and Lee, Taeyang and Lee, Seong Jin and Choi, Jubin and Lee, Sebin and Bang, Jihyun and Lee, Seungju and Park, David Keetae and Yoo, Shinjae and Chung, Chun Kee and Cha, Jiook},
    journal={arXiv preprint arXiv:2512.19097},
    year={2025}
}

License

The weights are released by the DIVER Project under the MIT licence (LICENSE). Braindecode's code is BSD-3-Clause.

Downloads last month
-
Safetensors
Model size
50.6M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for braindecode/DIVER-1-1s-small