Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Astra for Law(openai.com ↗)
    170comments
  2. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    85comments
  3. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    14comments
  4. I Hate You Microsoft(henriquenunez.eu ↗)
    43comments
  5. Hister: A private search engine for the pages you visit and the files you keep(github.com/asciimoo ↗)
    119comments
  6. Wax motor(wikipedia.org ↗)
    32comments
  7. Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA(global.fujitsu ↗)
    171comments
  8. Sex, AI, and the Apocalypse(iankduncan.com ↗)
    2comments
  9. CrowdSec Source Code Leak(crowdsec.net ↗)
    33comments
  10. Everybody's Lost Their Minds(netmeister.org ↗)
    142comments
  11. Flet 1.0 – Build cross-platform apps in Python(flet.dev ↗)
    3comments
  12. Rate limits on GitLab.com are changing(about.gitlab.com ↗)
    102comments
  13. Infinite-Parameter LLMs: Generating and Adapting Weights from Live Data(arxiv.org ↗)
    25comments
  14. How Uber Protects Against Retry Storms(uber.com ↗)
    discuss
  15. The American Religion of Self-Storage Facilities(newyorker.com ↗)
    284comments
  16. How GLM built its own inference infrastructure(z.ai ↗)
    254comments
  17. Zettascale (YC S24) Is Hiring ASIC/FPGA Engineers to Build Chips for ASI(zscc.ai ↗)
    discuss
  18. Why I didn’t sign the Fields medallists’ letter(gowers.wordpress.com ↗)
    236comments
  19. TSMC revealing details about next gen A14 node(mapyourshow.com ↗)
    26comments
  20. Towards Self-Driving Codebases(detail.dev ↗)
    72comments
  21. How do we prevent mathemathics from devolving into the Medieval Era of secrecy?(mathoverflow.net ↗)
    27comments
  22. Running Ubuntu on the Lenovo IdeaPad Duet(vhaudiquet.fr ↗)
    17comments
  23. One year of sponsored Servo development(servo.org ↗)
    136comments
  24. André Weil and the Hodge Conjecture(jiahao116.github.io ↗)
    7comments
  25. Launch HN: Skillsync (YC W26) – AI chat sessions made portable across agents
    42comments
  26. Show HN: Snapdrop: Instantly share files between devices. No setup, no signup(snapdrop.me ↗)
    1comments
  27. CCC invites all model citizens to 40C3(ccc.de ↗)
    171comments
  28. GraphViz Pocket Reference – Make a Graph(grevian.org ↗)
    discuss
  29. The Return of Sail Power: Cargo Ships Are Turning Back to the Wind(gcaptain.com ↗)
    119comments
  30. Show HN: Share your AI Setup, Learn from others(mysetup.ai ↗)
    81comments

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

60 pointsby 1h agoprismml.com
14 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!

33m 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.

26m 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.

59m 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?

58m 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."

33m 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!

9m agoHN ↗

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

And speed matters a lot for many use cases

39m agoHN ↗

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

26m 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?

16m 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 ↗

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 hi
5m 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.