From e29473ba1be752b10d6652e55fb6e34ade8497dc Mon Sep 17 00:00:00 2001 From: leonarddt05 <139609434+leonarddt05@users.noreply.github.com> Date: Wed, 11 Dec 2024 02:54:21 +0300 Subject: [PATCH] Update tutorial.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, I have two suggestions for this text: First, "construct a initial VM image" — "initial" should be "an initial" for grammatical correctness, Second, "trainning" should be "training". Thanks. --- docs/tutorial.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +```