Views
No views yet
| Component | Brain Analog | Technical Approach |
|---|---|---|
| Selective SSM Core | Thalamic gating | Mamba-style selective state space (linear time) |
| Spiking Activation | Neuron firing | Surrogate-gradient spiking neurons |
| Neural Memory Bank | Hippocampus | Differentiable memory with content-based read/write |
| Bio-MoE | Cortical columns | Sparse mixture-of-experts with bio-inspired routing |
| Predictive Coding | Top-down predictions | Auxiliary loss for next-state prediction |
1# Test the model
2python3 test_model.py
3
4# Train on TinyStories (small dataset for testing)
5bash run_training.sh
6
7# Train with custom config
8python3 train_hf.py \
9 --dataset roneneldan/TinyStories \
10 --d_model 512 \
11 --n_layers 8 \
12 --batch_size 4 \
13 --num_train_epochs 3| Config | Parameters | Memory (fp16) | Notes |
|---|---|---|---|
| Tiny (d=256, l=6) | ~25M | ~50MB | Fast iteration |
| Small (d=512, l=8) | ~130M | ~260MB | 8GB RAM fits easily |
| Medium (d=768, l=12) | ~350M | ~700MB | Strong baseline |