Better HN
topnewbestaskshowjobs
Log inSign up

alexkranias

3 karma · joined Oct 13, 2023 (3y ago) · 8 submissions

https://alexkranias.com
Submissions

1.

LLM from Scratch: a small LLM running inside MIT's Scratch(github.com ↗)

3 points · by alexkranias · 5mo ago · discuss

comment 9mo ago · link · parent

We were looking into OnnxStream (https://github.com/vitoplantamura/OnnxStream) and modifying it to support img2img. We got pretty close but yeah capability of running diffusion models on a Raspi are quite limited lol.

Alternatively we could use compute from your iPhone, but it adds additional dependencies to external hardware that I don't quite like. We could use a Jetson, but then power draw is quite high. I agree with you that on-device inference is the holy grail, but figuring out the best approach is something we are still trying to figure out.

comment 9mo ago · link · parent

Hey it's Alex, I was one of the creators of this project. We thought it would be fun to experiment with this odd mix of real, physical media and altering reality with diffusion models. I'm very happy with the results lol!

The entire thing can be built for around ~$35-40.

Here's our parts list: - Raspberry pi 2w for its low power draw, wifi capabilities, decent memory (512mb), and low cost ($15). Also with a arducam - Cheap TTL Aliexpress thermal printer along with sticker thermal paper - Rotary encoder for switching modes, push button for our shutter, and tactile switch for our power switch - I2C OLED display for display our modes and settings - 2 18650 batteries and a 3amp 5v UPS supply, enabling good battery life and regulation. We also add a 1000uF capacity to guard against current spikes from the printer.

We have a longer write up on our devpost: https://devpost.com/software/diffuji?ref_content=user-portfo...

We submitted this for Treehacks 2026, and ended up winning the Most Creative grand prize :)

4.

Recreating Hi8(alexkranias.com ↗)

1 points · by alexkranias · 9mo ago · discuss

5.

Attention Sinks and Compression Valleys in LLMs(arxiv.org ↗)

1 points · by alexkranias · 9mo ago · discuss

6.

Show HN: Compressing a Histogram from 16GB to 2KB(alexkranias.com ↗)

5 points · by alexkranias · 10mo ago · discuss

7.

"Numbers Everyone Should Know" from Jeff Dean(brenocon.com ↗)

3 points · by alexkranias · 1y ago · discuss

comment 1y ago · link · parent

Is this not just a global convolution?