Home

Awesome

tiny-dnn-on-starknet

Goal

Showing it is possible to run neural network inference on StarkNet.

How to run the demo?

Change directory to contracts/deployment and run python deploy_and_run.py

Overall approach

  1. Train the model, and split the model into Cairo contracts
  2. Deploy the contracts to StarkNet testnet, and perform address linkage - storing addresses of children contracts in their parent contracts
  3. Call the top-level contract to perform inference.

Contract architecture

How does the demo script interact with the contracts?

Next step

  1. conv layer
  2. recurrent networks
  3. backprop -- would enable on-chain learning and open a new world; have to deal with memory problem with activations