diff --git a/docs/tutorial.md b/docs/tutorial.md index 8f68272..723664f 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -4,7 +4,7 @@ In this tutorial, you will learn how to run a simple handwritten digit recogniti ## Train -First train a DNN model using Pytorch, the training part is shown in `mlgo/examples/mnist/trainning/mnist.ipynb` +First train a DNN model using Pytorch, the training part is shown in `mlgo/examples/mnist/training/mnist.ipynb` and then save the model at `mlgo/examples/mnist/models/mnist/mnist-small.state_dict` ## Model Format Conversion @@ -30,7 +30,7 @@ To build a ML program in MIPS VM, just run `mlgo/examples/mnist_mips/build.sh` ## Construct VM Image -The user who proposes a ML inference request should first construct a initial VM image +The user who proposes a ML inference request should first construct an initial VM image ```shell mlvm/mlvm --outputGolden --basedir=/tmp/cannon --program="$PROGRAM_PATH" --model="$MODEL_PATH" --data="$DATA_PATH" --mipsVMCompatible @@ -67,4 +67,4 @@ done Finally, the bisection protocol will help to locate the dispute step, the step will be sent to the arbitration contract on the blockchain. ```shell npx hardhat run scripts/assert.js --network localhost -``` \ No newline at end of file +```