Skip to content

Latest commit

 

History

History
78 lines (53 loc) · 5.16 KB

README.md

File metadata and controls

78 lines (53 loc) · 5.16 KB

Workshop: Neuromorphic Computing on SpiNNaker2

Material of a 3-hour hands-on workshop on the SpiNNaker2 neuromorphic chip, for ML researchers and software developers. You learn why neuromorphic hardware can save energy, the basics of spiking neurons and networks, and how to run your own spiking networks on SpiNNaker2 chips with py-spinnaker2.

Workshop: Neuromorphic computing, programming spiking neural networks on SpiNNaker2

Prerequisites

You need no prior knowledge of spiking networks, neuromorphic hardware or SpiNNaker2: the workshop introduces them. You should be comfortable with the following:

  • reading and changing Python and NumPy code in Jupyter notebooks
  • the basics of training a neural network: layers, weights, a loss function and a training loop
  • reading short PyTorch code; in notebooks 03 and 04 you change parameters of a training run, but you write no training code yourself

What you need on your computer depends on your setup (see the next section):

Laptop (Brian2 simulator) HPI cluster (SpiNNaker2 chips)
Account none HPI cluster account with the Scientific Compute VPN and SSH access
Operating system Linux, macOS 14 or newer on Apple silicon, or Windows with WSL; Macs with an Intel processor are not supported any system that runs VS Code
Software git, uv, VS Code with the Jupyter extension VS Code with the extensions Remote - SSH, Python and Jupyter
Free disk space about 3 GB about 3 GB in your cluster home directory

Neither setup needs a GPU: the workshop uses PyTorch for the CPU. The getting-started guides explain how to install git, uv, VS Code and WSL.

Which setup?

You have Guide During the workshop
an HPI cluster account HPI cluster (conda) you work on cx51, the cluster node connected to the SpiNNaker2 chips, in VS Code
no HPI cluster account laptop (uv) you work with the Brian2 simulator, which computes the same spikes as the chips; how to get access to the chips is explained at the end of the workshop

What you have to do

Each guide starts with a short table for your situation:

  • You have not installed anything yet: follow your guide from the start. The download is about 0.5 GB.
  • You installed after our mail of 13 November: the packages have not changed since then. Run git pull in your copy of the repository (on the laptop also uv sync, which only checks your environment), then follow the part of your guide on opening the repository in VS Code.
  • HPI cluster: then set up the VS Code connection to cx51 (in the cluster guide).

Then open 04_workshop_material/00_setup_check.ipynb and run it. If something fails, ask us.

What is in this repository

Folder Content
04_workshop_material/ The hands-on notebooks: setup check, one neuron, a direction detector built by hand, the same task trained in snnTorch and run via NIR; the instructor demos in demos/
03_setup/ Setup guides for the HPI cluster and the laptop, and enter_cx51.sh to reserve the SpiNNaker2 node
01_knowledge_base/ Background notes written for this workshop, with figures and sources (below)
02_slides/ The workshop slides (PowerPoint)
05_measurements/ Measurements on the chips: the power of a 48-chip board with silent and spiking networks

The background notes build on each other:

  • Computing Fundamentals: processors, memory, the von Neumann bottleneck, ARM cores and bare-metal programming
  • Spiking Neurons and Networks: neuron models, synapses, encoding, network types, training spiking networks and why spikes can save energy
  • Hardware and Energy: the SpiNNaker2 chip, its processing elements, memory and communication, power management and what its energy numbers mean
  • Brian2 Fallback: the Brian2 backend of py-spinnaker2 compared with the chip
  • Applications: published results on SpiNNaker2 and other neuromorphic chips, and where they win
  • History: from SpiNNaker to SpiNNaker2 and Sparxity
  • Sources: all papers, documentation and links

Author

  • David Goll, AI Service Centre Berlin Brandenburg

License

MIT, see LICENSE.

Acknowledgements

Logo of the Federal Ministry of Research, Technology and Space

The AI Service Centre Berlin Brandenburg is funded by the Federal Ministry of Research, Technology and Space under the funding code 16IS22092.