Re-host ZUNA encoder weights (bit-identical mirror of Zyphra/ZUNA, apache-2.0)
Browse filesFiles changed (3)
- README.mdAdded+51
- config.jsonAdded+25
- model.safetensorsAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051---license: apache-2.0library_name: braindecodetags:- eeg- foundation-model- braindecodepipeline_tag: feature-extraction---
# ZUNA (braindecode re-host)
Faithful re-host of the **ZUNA** EEG foundation-model encoder weights for use with[braindecode](https://github.com/braindecode/braindecode).
- **Original model:** [`Zyphra/ZUNA`](https://huggingface.co/Zyphra/ZUNA)- **Original code:** https://github.com/Zyphra/zuna- **Paper:** Warner, C., Mago, J., Huml, J.R., Osman, M. and Millidge, B. (2026). *ZUNA: Flexible EEG Superresolution with Position-Aware Diffusion Autoencoders.* arXiv:2602.18478- **Original authors (Zyphra):** Chris Warner, Jonas Mago, Jon Huml, et al.- **License:** Apache-2.0 (inherited from the upstream release)
## Why this re-host
The braindecode `ZUNA` port loads these weights through`ZUNA.from_pretrained(...)`. Re-hosting under the `braindecode` org gives astable, permanent location that the library can point to by default, so theintegration does not depend on the upstream repository staying unchanged. Theweights file is **bit-identical** to the upstream checkpoint (same SHA-256);only the filename is normalised to the standard `model.safetensors`.
## What is (and is not) pretrained
These are the pretrained **encoder** weights (a position-aware diffusionautoencoder trained for EEG superresolution). The braindecode wrapper adds a**classification head that is randomly initialised** and must be fine-tuned onyour downstream task — loading these weights alone does not give a trainedclassifier.
## Usage
```pythonfrom braindecode.models import ZUNA
# Defaults to this repo (braindecode/ZUNA); n_chans / n_outputs are montage-# and task-dependent and must be supplied.model = ZUNA.from_pretrained(n_chans=19, n_outputs=4)
# Inputs are 5 s EEG windows sampled at 256 Hz (n_times = 1280).```12345678910111213141516171819202122232425{ "model": { "dim": 1024, "n_layers": 16, "head_dim": 64, "seqlen_t": false, "huber_c": null, "input_dim": 32, "encoder_input_dim": 32, "encoder_output_dim": 32, "encoder_latent_downsample_factor": 1, "encoder_sliding_window": 65536, "sliding_window": 65536, "xattn_sliding_window": 65536, "max_seqlen": 50, "adaptive_loss_weighting": true, "num_fine_time_pts": 32, "rope_dim": 4, "rope_theta": 10000.0, "tok_idx_type": "{x,y,z,tc}", "dont_noise_chan_xyz": false, "stft_global_sigma": 0.1, "dropout_type": "zeros" }}123version https://git-lfs.github.com/spec/v1oid sha256:31e68d142c142f1c99fe05125ee01a00e075835b8ec3fc0c983e29c929011a28size 1528134925README.mdAdded+51
config.jsonAdded+25
model.safetensorsAdded+3