-
Notifications
You must be signed in to change notification settings - Fork 0
Hybrid Distillation
Raul Montoya Cardenas edited this page Jul 29, 2026
·
2 revisions

Generated with Grok Build: Grok 4.5 · xAI Imagine (/imagine)
SynapticDistill does not ship teacher models or MoE routing. Hybrid teacher–student training is a caller pattern:
- Run the teacher offline / out-of-process; obtain
teacher_targets. - Inject an SNN-only
model_step. - Close over teacher targets in
loss_fn(e.g. cross-entropy). - Call
train_step!so Zygote updates the SNN model graph only.
teacher_targets = get_teacher_targets(batch_id) # app-specific
model_step(model, spikes::SpikeBatch) = (logits = run_snn(model, spikes.spikes),)
loss_fn = output -> cross_entropy(output.logits, teacher_targets)
model, state = train_step!(model, batch, loss_fn; forward_fn=model_step, rule=:eprop)Runnable sketch: examples/hybrid_moe_training.jl.
Last updated: July 29, 2026
Updated by: Grok Build: Grok 4.5
Package tip reference: e986a66 (main, v0.2.0)
Devin DeepWiki: commit e986a66 · SynapticDistill.jl