Skip to main content

Crate reve_rs

Crate reve_rs 

Source
Expand description

§reve-rs — REVE EEG Foundation Model inference in Rust

Pure-Rust inference for the REVE (Representation for EEG with Versatile Embeddings) foundation model, built on Burn 0.20.

REVE is a pretrained EEG model that generalizes across diverse electrode configurations using 4D positional encoding (x, y, z, t). It was pretrained on 60,000+ hours of EEG data from 92 datasets spanning 25,000 subjects.

§Quick start

use reve_rs::ReveEncoder;

let (model, _ms) = ReveEncoder::<B>::load(
    Path::new("config.json"),
    Path::new("model.safetensors"),
    device,
)?;

Re-exports§

pub use config::ModelConfig;
pub use data::InputBatch;
pub use data::build_batch;
pub use data::build_batch_named;
pub use encoder::ReveEncoder;
pub use encoder::ReveOutput;
pub use encoder::EncodingResult;
pub use position_bank::PositionBank;
pub use weights::WeightMap;

Modules§

config
data
encoder
model
position_bank
weights