Skip to content

Instantly share code, notes, and snippets.

@birep
birep / LLM_UI_SMELLS.md
Created October 18, 2026 00:51
LLM UI Smells

LLM UI Smells & How to Avoid Them

"The worst thing you can have in cinema is an unmotivated camera move. If you're panning across a scene, you better be following something moving through it, and that thing must have importance to the story. Otherwise, it's just 'Look at me, I'm a director' bullshit. A dolly-zoom that doesn't convey vertigo is just a director showing off a trick."

The exact same sickness has infected AI-generated software. LLMs constantly inject the digital equivalent of unmotivated camera moves: scroll parallax for the sake of parallax, ambient glowing purple orbs, glassmorphism blur filters, and gratuitous metadata eyebrows.

This guide outlines why models generate UI slop, catalogues the loudest smells, and provides practical rules for building restrained, human-grade interfaces.


@birep
birep / fix_strix_cwsr.c
Created October 1, 2026 00:16
Fix for hipStreamCreate OOM on Strix Halo + ROCm
/*
* Fix for gfx1151 (Strix Halo) ROCm "out of memory" abort on hipStreamCreate:
*
* Issue: amdkfd enforces ctx_save_restore_area_size >= topo cwsr_size (0x124c000 / 19.2 MB).
* hsakmt hardcodes 0xd4c000 (13.9 MB), causing AMDKFD_IOC_CREATE_QUEUE to return -EINVAL,
* which ROCr surfaces to HIP as hipErrorOutOfMemory.
*
* Solution: Intercept mmap/ioctl to expand CWSR buffer sizes to match kernel requirements.
*
* Build: gcc -shared -fPIC -O3 fix_strix_cwsr.c -o libfix_strix_cwsr.so -ldl
@birep
birep / libfix_strix_cwsr.so
Created September 30, 2026 21:48
Fix for gfx1151 (Strix Halo) ROCm "out of memory" abort on hipStreamCreate
/*
* Fix for gfx1151 (Strix Halo) ROCm "out of memory" abort on hipStreamCreate:
*
* Issue: amdkfd enforces ctx_save_restore_area_size >= topo cwsr_size (0x124c000 / 19.2 MB).
* hsakmt hardcodes 0xd4c000 (13.9 MB), causing AMDKFD_IOC_CREATE_QUEUE to return -EINVAL,
* which ROCr surfaces to HIP as hipErrorOutOfMemory.
*
* Solution: Intercept mmap/ioctl to expand CWSR buffer sizes to match kernel requirements.
*
* Build: gcc -shared -fPIC -O3 fix_strix_cwsr.c -o libfix_strix_cwsr.so -ldl