cd /news/artificial-intelligence/show-hn-running-prismml-s-bonsai-ins… · home topics artificial-intelligence article
[ARTICLE · art-69901] src=github.com ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

Show HN: Running PrismML's Bonsai inside DRAM by breaking DDR4 timing rules

A developer known as pcdeni has created CaSA, an architecture that runs PrismML's ternary Bonsai LLM models directly inside commodity DRAM by breaking DDR4 timing rules and using charge-sharing, bypassing the memory bus to overcome bandwidth limitations. The approach aims to enable 27B+ parameter models on edge devices like smartphones, addressing thermal and battery issues from traditional data transfer.

read1 min views1 publishedJul 23, 2026

The excitement surrounding PrismML’s 1-bit/ternary Bonsai models has the industry closely watching how smartphone giants, particularly Apple, will implement LLMs on edge devices.

Moving AI on-device is a brilliant and necessary strategy. It ensures absolute user privacy in alignment with EU regulations, fundamentally shifts the economics away from costly cloud inference, and paves the way for a significant hardware upgrade supercycle as users seek true AI-capable silicon.

To create a smart on-device "Semantic Router," models need to reach the 27B+ parameter scale. Achieving this on a phone requires extreme quantization, such as PrismML’s ternary weights.

However, a critical hardware reality often overlooked by the software world is that fitting the weights in RAM is not equivalent to moving them. Running a 27B ternary model on standard LPDDR encounters a significant memory bandwidth limitation. Transferring gigabytes of data across the SoC bus for each token generation can lead to thermal throttling of the NPU and excessive battery drain.

This raises an important question: why are we still transferring data to the compute? Why not execute AI inference natively within the memory?

Frustrated with academic PIM simulations that overlook bare-metal physics, I developed CaSA, an architecture that performs ternary LLM inference directly inside COTS DRAM through charge-sharing, completely bypassing the memory bus.

Software quantization is a great initial step, and CaSA provides the physical hardware substrate needed to complete the bridge: https://github.com/pcdeni/CaSA

Comments URL: [https://news.ycombinator.com/item?id=49019257](https://news.ycombinator.com/item?id=49019257)

Points: 1

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @prismml 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-running-pris…] indexed:0 read:1min 2026-07-23 ·