PRATIBHA-2 (pretrained encoder)
Weights of PRATIBHA-2, formerly MANAS-2 (Kulkarni et al., 2026), a dense-attention EEG
foundation model pretrained with Raw-Band Hybrid masked autoencoding and Constrained
Reconstruction, for
braindecode.models.Pratibha2.
They are the encoder of MannasAI/pratibha-2
(revision 863edc9), converted to braindecode's parameter names (see "Changes from the
original release"). The class is added in braindecode 2.1.
from braindecode.models import Pratibha2
model = Pratibha2.from_pretrained(
"braindecode/pratibha2-pretrained",
chs_info=raw.info["chs"], # any montage the position table places
n_outputs=4,
n_times=1000,
)
features = model(x, return_features=True)["features"] # (batch, 512)
The classification head (final_layer) is not part of the release: from_pretrained
builds one for your n_outputs (n_outputs=2 in config.json). Fine-tune or linear-probe
before use. config.json stores a 19-channel 10-20 montage; pass your own chs_info.
Intended input
- EEG sampled at 200 Hz, windows of at least 200 samples (1 s patches, 0.1 s overlap).
- Channels are placed by name in the pretraining electrode table (REVE's position bank
plus PRATIBHA-2's own
AFZandIZ); aliases such asT3,EEG Fp1-REFand bipolarA-Bpairs are resolved by braindecode. - Each channel is z-scored within each window inside the model, so volts and microvolts give the same output.
Training data
Unlabeled clinical EEG from TUH EEG, I-CARE and the authors' internal sources (private:
not released, not in datasets:), as described in the original model card and the paper.
Changes from the original release
Converted from model.safetensors of MannasAI/pratibha-2 at revision
863edc940d82a02744776a7820641bf1bc32310b:
- parameter names renamed to braindecode's (
encoder.layers.N.ffn->blocks.N.mlp,attn.qkv_proj->attn.qkv, and so on), with noencoder.prefix:Pratibha2holdspatch_embed,pos_enc,blocksandfinal_normitself; - each fused feed-forward input projection
ffn.in_projsplit into its value rows (mlp.fc1) and gate rows (mlp.fc_gate); - the constant
pos_enc.freq_matrixdropped (the model rebuilds it); - no head: the original has none.
Revision dea9139 of this repository kept the encoder. prefix and stored an untrained
head (PyTorch's default init under torch.manual_seed(0)); its convert.py did the first
three steps. The convert.py here renames that revision's keys: encoder.<name> ->
<name>, final_layer.* dropped.
No value was changed: every tensor is the one of revision dea9139 bit for bit, and
braindecode's Pratibha2 with these weights gives the features and tokens of the original
weights bit for bit on CPU in float32.
License and citation
Apache-2.0, as the original release (see LICENSE). Weights by MannasAI; please cite:
@article{kulkarni2026manas2,
title = {MANAS-2: Constrained Reconstruction for EEG Foundation Models},
author = {Kulkarni, A. and Mishra, A. R. and Jain, M. and Runwal, P. and Saini, L. and Panwar, S. and Singh, S.},
journal = {arXiv preprint arXiv:2609.13717},
year = {2026}
}
- Downloads last month
- 39
Model tree for braindecode/pratibha2-pretrained
Base model
MannasAI/pratibha-2