Trained an diffusion model that runs on 264KB of RAM [P]
![Trained an diffusion model that runs on 264KB of RAM [P]](/_next/image?url=https%3A%2F%2Fpreview.redd.it%2F8vzcg2x7q3kh1.png%3Fwidth%3D140%26height%3D140%26auto%3Dwebp%26s%3D7a1fb828642c6ddfa5211c2a6f942764e68a21cb&w=3840&q=75)
| I recently bought a Shrike lite which has got 264KB of SRAM. I decided to train an image generation model that generates 32*32 pixel images. The microcontroller also has an FPGA onboard which I used to create two parallel INT8 MAC engines with 16 bit accumulation to speed up calculations, however the system soon hit a memory wall due to the high number of I/O operations, this meant that the system with parallel MAC engines ran slower than the MCU only model (~220 seconds per image vs ~70 seconds per image). It was still a fun project that I enjoyed messing around with. A lot of the images looked weird and noisy because of the heavy quantization and memory limits but some of them came out cool. Full case study here. edit: added link that leads straight to the case study [link] [comments] |
Want to read more?
Check out the full article on the original site