Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Astra for Law(openai.com ↗)
    389comments
  2. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    85comments
  3. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    170comments
  4. Hister: A private search engine for the pages you visit and the files you keep(github.com/asciimoo ↗)
    139comments
  5. Wax motor(wikipedia.org ↗)
    54comments
  6. Alibaba releases Qwen 3.8 Omni Flash(qwen.ai ↗)
    12comments
  7. Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA(global.fujitsu ↗)
    201comments
  8. Flet 1.0 – Build cross-platform apps in Python(flet.dev ↗)
    36comments
  9. Telstra outage: The night a network decided the year was 2006(netnod.se ↗)
    4comments
  10. Better Icon and Label Alignment(ishadeed.com ↗)
    2comments
  11. Diplodocus, Long Thought Exclusively American, Turns Up in Spain(sci.news ↗)
    26comments
  12. I Put Nam A2-Lite Inside an iRig HD X(playtaurus.com ↗)
    2comments
  13. The most important product decision is what you don't build(liamnugent.me ↗)
    19comments
  14. CrowdSec Source Code Leak(crowdsec.net ↗)
    42comments
  15. How Uber Protects Against Retry Storms(uber.com ↗)
    25comments
  16. Why I didn’t sign the Fields medallists’ letter(gowers.wordpress.com ↗)
    317comments
  17. How do we prevent mathemathics from devolving into the Medieval Era of secrecy?(mathoverflow.net ↗)
    61comments
  18. Infinite-Parameter LLMs: Generating and Adapting Weights from Live Data(arxiv.org ↗)
    35comments
  19. Rate limits on GitLab.com are changing(about.gitlab.com ↗)
    107comments
  20. CCC invites all model citizens to 40C3(ccc.de ↗)
    181comments
  21. More than 100k people in Japan are now aged 100 or older(bbc.com ↗)
    142comments
  22. The American Religion of Self-Storage Facilities(newyorker.com ↗)
    349comments
  23. Goose:experimental lang 1.16x faster than C++ and 1.12x than safe Rust, mem safe(github.com/aardappel ↗)
    43comments
  24. Zettascale (YC S24) Is Hiring ASIC/FPGA Engineers to Build Chips for ASI(zscc.ai ↗)
    discuss
  25. TSMC revealing details about next gen A14 node(mapyourshow.com ↗)
    37comments
  26. Landing the Space Shuttle – A Flying Machine and the Thrill of a Lifetime(eaa.org ↗)
    6comments
  27. Ask A Monk – A digital wilderness for thoughts with no immediate answer(askamonk.online ↗)
    discuss
  28. Show HN: Snapdrop: Instantly share files between devices. No setup, no signup(snapdrop.me ↗)
    22comments
  29. Show HN: Share your AI Setup, Learn from others(mysetup.ai ↗)
    108comments
  30. Launch HN: Skillsync (YC W26) – AI chat sessions made portable across agents
    51comments

I patched llama.cpp to gain 20% prompt processing TPS. Help me make a PR

6 pointsby 2mo ago
2 comments
I've been running Qwen3.6-35B-A3B locally on llama.cpp and noticed that prompt processing throughput gets too low with MTP. I got nerd-sniped.

What started as curiosity turned into a two-week rabbit hole of experiments and ended with a PoC that fully recovers the MTP PP overhead on GPU, above any expectation I had.

TL;DR: instead of processing the last layer MoE FFN for the entire ubatch tokens (usually 512-2048 tokens), this PoC processes only the output row (usually 1 token during prefill). The result is PP TPS is back to the same as with MTP disabled, keeping most of MTP's benefits to TG TPS, even with a slight drop in draft acceptance rate in one of the benchs.

I'm not opening a PR to llama.cpp because this is AI-generated code, which goes against their contribution policy, which I support. If you know C++ and llama.cpp internals, I invite to work together with me to open a PR with a more mature implementation.

2mo agoHN ↗

you have better chances opening an issue and explaining your findings. lots of people watch the repo so probably someone will chime in.