Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Apple Reportedly Accepts 30% Higher RAM and Storage Prices in 2027(macrumors.com ↗)
    discuss
  2. Show HN: I made a browser tool that creates newspaper and book text match cuts(papereffects.site ↗)
    discuss
  3. Amazon EC2 T8i Instances(amazon.com ↗)
    discuss
  4. A Mathematical Theory of Communication [pdf](math.harvard.edu ↗)
    1comments
  5. Filename Breaks iOS, and That's Boring Now(bryce.co ↗)
    discuss
  6. 'Godfather of AI' says tech regulation is nearing Covid-style pivot moment(theguardian.com ↗)
    discuss
  7. Three +1s and a Prayer(minid.net ↗)
    discuss
  8. AWS launches simplified getting started experience (with budget limits)(amazon.com ↗)
    discuss
  9. Huawei Ascend 960 SuperPoD uses NPO technology to power next-generation AI infra(technode.com ↗)
    discuss
  10. Why I Built my own Language App(maximepeabody.substack.com ↗)
    discuss
  11. Data Science Weekly – Issue 669(datascienceweekly.substack.com ↗)
    discuss
  12. Human Agency, Coding Agents, and Transagentic Knowledge Acquisition(bayleaf.dev ↗)
    discuss
  13. Docs in AI copyright suit reveal startling admission by Microsoft exec(orlandosentinel.com ↗)
    discuss
  14. Silo and the impossible "dream" of programming humanity(emot.substack.com ↗)
    discuss
  15. Show HN: Respawn – an undo button for AI agents (Rust, local-first, no cloud)(github.com/savageazfck ↗)
    discuss
  16. Show HN: Unmute – a single definition for voice agents, pushed to any stack(github.com/slng-ai ↗)
    discuss
  17. Meteor Blaster(cdn.openai.com ↗)
    1comments
  18. Small AI models let drones autonomously identify and attack battlefield targets(arstechnica.com ↗)
    discuss
  19. Jev is about to change the AI economy(thefinancialengineer.substack.com ↗)
    discuss
  20. Show HN: summ – a single-binary container registry in Rust with a built-in UI(github.com/summcr ↗)
    1comments
  21. Computer programming, and friction as a learning activity(echorand.me ↗)
    1comments
  22. Cities and counties sue fire truck makers over soaring costs, delivery delays(stateline.org ↗)
    discuss
  23. Your Agent Aced the Task. Will It Do It Again?(huggingface.co ↗)
    discuss
  24. The truth about 'Naza,' or collateral damage(timesofisrael.com ↗)
    2comments
  25. Why Whisper and medical speech APIs are making potentially fatal errors(appen.com ↗)
    discuss
  26. Agent Session Introspection(lmstudio.ai ↗)
    discuss
  27. U.S. Strike on Iranian School May Have Been War Crime, U.N. Report Says(nytimes.com ↗)
    2comments
  28. Five air-gapped, zero-telemetry utilities for privacy and operational leaks(github.com/warknoc ↗)
    discuss
  29. The GDP-per-person slowdown threatens global living standards(economist.com ↗)
    discuss
  30. Air Force secretary acknowledges the US has weapons in space(abcnews.com ↗)
    discuss

Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint

90 pointsby 1h agoprismml.com
22 comments
1h agoHN ↗

Love this for the folks with 16gb graphics cards - 3.8 27b has been incredible but not quite runnable on anything less than 32gb - will try loading this up on my 16gb intel b50 and see how it goes - not sure these quants can be accelerated by the XPU cores yet but maybe in time!

56m agoHN ↗

You can run the ~4 bit quant(s) on 24gb, if you're not _too_ picky on context size.

This will hopefully be better, though it'd be a _very_ surprising increase in performace at the size they say. Would love to see more about how it benchmarks.

49m agoHN ↗

I run Unsloth's UD-Q4_K_S on 20 GB of VRAM (RX 7900 XT) and I get ~90k tokens of context without quantizing KV cache. With 8-bit quantization, I get about a 134k token context window. That's with only one slot, but for me, it works pretty darn well, with 20-35 tok/s depending on how full that window is.

1h agoHN ↗

I'm not following the local mdoel scene too closely but this seems quite amazing. Is this able to be run on Apple silicon too?

1h agoHN ↗

"Ternary Bonsai 2 27B reaches up to 143 tokens/second on NVIDIA GeForce RTX 5090 and 46.8 tokens/second on M5 Max. On an RTX 4090, Ternary Bonsai 2 27B consumes just 0.714 mWh/token, making it 40% more energy-efficient than an 8B model running in full-precision."

56m agoHN ↗

Their mention of the 5090 is bit odd, since on 32 GB GPUs, Q6 fits while having better quality. Very interesting model for 16 GB GPUs though!

32m agoHN ↗

They mention 5090 with regards to speed, Q6 will not have that speed?

And speed matters a lot for many use cases

19m agoHN ↗

it is like "my fridge is 2mkm (millikilometer) from my desk" m=0.001 h=3600 it should be just Ws or just J

1h agoHN ↗

Their first 27B bonsai was able to run on an iphone.

49m agoHN ↗

I'd love to see a Bonsai model start with a 100B+ parameter model and get that down to <30 GB. But maybe at that point we call it Topiary?

38m agoHN ↗

I'm hoping they release an 8B v2 based on the Qwen 3.8 series in the near future - that would give us a really powerful model that could be run directly on users phones.

14m agoHN ↗

Yes! And maybe get a hf fused webgpu runner for that model so it’s fast!

36m agoHN ↗

If you want to try out out the GGUFs from https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf#th... be aware that you need Prism's llama.cpp fork to get them to work, from https://github.com/PrismML-Eng/llama.cpp/releases/tag/prism-...

This should work:

  cd /tmp

  # Get the Prism macOS runtime
  curl -fL https://github.com/PrismML-Eng/llama.cpp/releases/download/prism-b10685-7dffb15/llama-prism-b10685-7dffb15-bin-macos-arm64.tar.gz -o bonsai-runtime.tar.gz
  tar -xzf bonsai-runtime.tar.gz

  # Get the ~5.95 GB GGUF model:
  curl -fL https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf/resolve/main/Ternary-Bonsai-2-27B-PTQ1_0.gguf -o Ternary-Bonsai-2-27B-PTQ1_0.gguf

  # Run the server, I used port 8331
  ./llama-prism-b10685-7dffb15/llama-server \
    -m Ternary-Bonsai-2-27B-PTQ1_0.gguf \
    --port 8331 -ngl 99 -fa on -c 8192

Then open http://localhost:8331 for the (very good) baked in llama-server web UI... or run a prompt via the API like this:

  uvx llm openai endpoint http://127.0.0.1:8331/v1 \
    --model bonsai-2-27b --responses hi

That's running at ~20 token/second for me on an M5 Pro (after a server restart I got 44 token/second, not sure why), but I'm pretty sure something isn't working right, on startup the server said "ggml_metal_device_init: - the tensor API is not supported in this environment - disabling".

27m agoHN ↗

I really wish people would stop saying N times smaller than something when making a comparison; that makes no sense - it's 1/9th (11.11%) the size. You don't get a smaller quantity by multiplying by a number greater than 1.0. You could instead reverse the subjects being compared - "the original model is 9x bigger than this new smaller, efficient model" or some such. That makes sense.

I keep seeing this being used when people talk about efficiency or performance gains and it's just very unintuitive language.

20m agoHN ↗

If we were talking about speed instead of size, i think it would be perfectly reasonable to say 9x faster. I'm not sure I agree that 9x smaller is unintuitive. It makes sense to me.

20m agoHN ↗

Me too!! It's a huge pet peeve. And it's so hard to get people to see how it's linguistically AND mathematically WRONG.

17m agoHN ↗

I think if they made this for Qwen3.8-Next it could fit in a single 5090?

3m agoHN ↗

Ternary Bonsai 2 27B uses ternary {−1, 0, +1} weights with FP16 group-wise scaling, for 1.76 effective bits per weight

If I recall correctly, a recent post [1] has shown that Q2 quants (with like 2.6 bpw) sit at the edge between "noticeably worse" and Q1's "useless". I took a quick glance at Bonsai's blog posts, and don't really see them comparing themselves to "typical" quants or explaining what makes them better?

https://news.ycombinator.com/item?id=49611128