HNHacker News
TopNewBestAskShowJobs

maxbbraun

34 karma · joined January 30, 2016

submissionscomments
maxbbraun··on Show HN: Llama Running on a Microcontroller
Just to clarify: Inference is happening on the Arm Cortex-M7. The Coral TPU chip is off in this implementation.
maxbbraun··on Show HN: Llama Running on a Microcontroller
I was wondering if it's possible to fit a non-trivial language model on a microcontroller. Turns out the answer is some version of yes!

This project is using the Coral Dev Board Micro with its FreeRTOS toolchain. The board has a number of neat hardware features not currently being used here (notably a TPU, sensors, and a second CPU core). It does, however, also have 64MB of RAM. That's tiny for LLMs, which are typically measured in the GBs, but comparatively huge for a microcontroller.

The LLM implementation itself is an adaptation of llama2.c and the tinyllamas checkpoints trained on the TinyStories dataset. The quality of the smaller model versions isn't ideal, but good enough to generate somewhat coherent (and occasionally weird) stories.

maxbbraun··on 32“ E Ink screen that displays daily newspapers on your wall (2021)
https://nytimes.ink
maxbbraun··on E-ink art frames are a scam (2021)
Photos are tricky, but you can make e-paper displays look nice if you embrace the constraints. For example: https://accent.ink
maxbbraun··on My Bathroom Mirror Is Smarter Than Yours
That's exactly what I focused on. :) I picked a very thin display panel and then hid it between the door and the glass. I'll probably post some more behind-the-scenes pictures of that.