# Mojo and Burn
Interenet Connection
Network: D Block Workspace
Email: gustaw.daniel@gmail
PIN: 10675
```
█████████████████████████████████████
█████████████████████████████████████
████ ▄▄▄▄▄ █▄▀▀▄▄▄██ ▄█▀██ ▄▄▄▄▄ ████
████ █ █ ███▄█ ▄ ▀▀▄███ █ █ ████
████ █▄▄▄█ ██▄▀▄▀ █▄ ▄▀█ █▄▄▄█ ████
████▄▄▄▄▄▄▄█ █ ▀▄▀▄▀▄█▄▀▄█▄▄▄▄▄▄▄████
████ ▄█▄▄█▄▀█ ▄▄▀▄ █▄▄█ ▄█▄▀▀█▀▀▄████
████▄▀▀▄██▄▀ ▀ ▀█▀▄ ▀█▀▀▀ ▀█▀▄█▀████
████▀▀██▀ ▄▀▄▄█▄▄▄█▀▀█▀▄▄█ ▀▀▀▀ ████
████▀▀ █▄▀▄▀▀█ ▄█▀ █▀▄▀█ ▄▀█ █ ████
████ ▄▀██▄▄▀ █▀▀▀█ ▄▀▀█ ▄█▄▀▄▀▀█████
████ █ █▄▄▀▄█ ▄▀▀ ▀▄▄▄██▀█ ▀█▄████
████▄▄▄▄██▄▄▀█▄█▄█ ▀ ▀█ ▄▄▄ ▄▄█████
████ ▄▄▄▄▄ ██ ▄█▄▄▀▄█▀▀▄ █▄█ ▄███████
████ █ █ █ ███▀▄ ▀ ▀▀▄▄ ▄▄▄▄█▄▀████
████ █▄▄▄█ █▀ █▀▀ ▄██▄█▄▄█▄ ▀ ▄ ████
████▄▄▄▄▄▄▄█▄▄▄▄▄██▄███▄▄██▄█████████
█████████████████████████████████████
█████████████████████████████████████
```
# Env notes
screen replication
```
xrandr --output DP-3 --same-as eDP-1
```
QR code
```
qrencode -t ansiutf8 ABC
```
https://meet.google.com/png-tnvg-fga?pli=1
# Plan
1. Share QR CODE
2. What is mojo
3. How to install
4. Benchmark with python on binary search
5. Benchmark python on matrix multiplication
6. Benchmark mojo on matrix multiplication
7. What is burn
8. Try demo on https://burn.dev/demo/
9. Try tensor sum https://burn.dev/get-started/
10. Do tensors multiplication
11. Add benchmark
12. Optionally run wasm tutorial and try to use burn in browser
---
How to install mojo
Following by.:
https://docs.modular.com/mojo/manual/get-started
```bash
curl -ssL https://magic.modular.com/598b9bf2-3c5a-4bcd-9c79-26880415a75b | bash
```
you will see
```
Done. The 'magic' binary is in '/home/daniel/.modular/bin'
Two more steps:
1. To use 'magic', run this command so it's in your PATH:
source /home/daniel/.zshrc
2. To build with MAX and Mojo, go to http://modul.ar/get-started
```
init project
```
magic init hello-world --format mojoproject
```
go to project
```
cd hello-world && magic shell
```
now we are in mojo env
```
mojo --version
mojo 24.5.0 (e8aacb95)
```
https://github.com/gustawdaniel/mojo-benchmark
Lets do binary search
This do not work
https://github.com/ego/awesome-mojo
but this will work maybe
https://www.youtube.com/watch?v=YYXcDcjoN_o
https://github.com/svpino/mojo/
Mojo tensors: https://docs.modular.com/max/api/mojo/tensor/tensor/Tensor
---
# Burn
https://burn.dev/demo/
https://burn.dev/get-started/
https://github.com/gustawdaniel/burn-benchmark
Libtorch:
https://github.com/tracel-ai/burn/blob/main/crates/burn-tch/README.md