Create README.md
Browse files123456789101112131415161718192021222324---pipeline_tag: feature-extractiontags: - eeg - brain-computer-interface - pytorch - mamba---
# SAMBA-100s
SAMBA EEG encoder pretrained on 100-second windows at 128 Hz using TUAB. The encoder supports other input lengths and electrode layouts.
[Project](https://samba.dcode.ai/) 路 [Code](https://github.com/Jiazhen-Hong/SAMBA) 路 [Paper](https://arxiv.org/abs/2511.18571) 路 [Shared usage guide](https://huggingface.co/Dcode-AI/SAMBA) 路 [SAMBA-2s](https://huggingface.co/Dcode-AI/SAMBA-2s)
Install SAMBA from the code repository with `pip install -e '.[mamba,hub]'`. Inference requires CUDA.
```pythonfrom huggingface_hub import snapshot_downloadfrom samba_eeg import SambaModel
folder = snapshot_download("Dcode-AI/SAMBA-100s", allow_patterns=["config.json", "model.safetensors"])model = SambaModel.from_pretrained(folder).cuda().eval()```README.mdAdded+24