Burn WASM (simd) MNIST Web Inference
- JavaScript 49.2%
- Rust 31.4%
- HTML 16%
- Shell 3.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| pkg | ||
| src | ||
| .gitignore | ||
| build-for-web.sh | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CNAME | ||
| index.html | ||
| index.js | ||
| model.bin | ||
| README.md | ||
| run-server.sh | ||
MNIST Inference on Web Using Rust and Wasm (simd)
Running
-
Build
./build-for-web.sh -
Run the server
./run-server.sh -
Open the
http://localhost:8000/in the browser.
Model
Layers:
- Input Image (28,28, 1ch)
Conv2d(3x3, 8ch),BatchNorm2d,GeluConv2d(3x3, 16ch),BatchNorm2d,GeluConv2d(3x3, 24ch),BatchNorm2d,GeluLinear(11616, 32),GeluLinear(32, 10)- Softmax Output
The total number of parameters is 376,952.
The model is trained with 4 epochs and the final test accuracy is 98.67%.
The training and hyper parameter information in can be found in training.rs.