Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Training a 4B model to produce 81% faster query plans than Postgres(rohanbansal.com ↗)
    40comments
  2. Breaking the 1.58-bit Barrier for Ternary LLMs(arxiv.org ↗)
    discuss
  3. Xiaomi Mimo 2.6 live post-training dashboard(xiaomi.com ↗)
    34comments
  4. Small programming tricks(will-keleher.com ↗)
    157comments
  5. macOS 27 Golden Gate – Review(arstechnica.com ↗)
    55comments
  6. Reversing Factorio's RNG(gegell.github.io ↗)
    8comments
  7. Accurate Models of AMD Matrix Cores(arxiv.org ↗)
    5comments
  8. AWS says it can't restore some data from mideast facilities struck by Iran(wsj.com ↗)
    44comments
  9. Performance Improvements in .NET 11(devblogs.microsoft.com/dotnet ↗)
    3comments
  10. Vectorized and performance-portable Quicksort (2022)(googleblog.com ↗)
    24comments
  11. How good are frontier models at physics?(arxiv.org ↗)
    14comments
  12. Anatomy of a Texture(agentlien.github.io ↗)
    10comments
  13. Dream-RSI: Recursive Self-Improvement through Evolving Worlds(arxiv.org ↗)
    48comments
  14. Japan's book scene is moving from bookstores to libraries(untranslatedjp.substack.com ↗)
    6comments
  15. Mistral X Mozilla: Private, Multilingual AI Browsing(mistral.ai ↗)
    177comments
  16. Show HN: An e-ink frame that hears birds and draws them as 1800s illustrations(github.com/arnegiacomo ↗)
    234comments
  17. Anecdotally, programmers dislike "reduce"(evanhahn.com ↗)
    78comments
  18. The Siberian Ice Maiden and the Scythian World(patrickwyman.substack.com ↗)
    2comments
  19. WalShadow: Sub-second Postgres replication to ClickHouse from physical WAL(clickhouse.com ↗)
    4comments
  20. Tell the speakers that you liked their talks(ohhelloana.blog ↗)
    71comments
  21. Training Text-to-Image Models 3.6× Faster(linum.ai ↗)
    1comments
  22. Show HN: Restarted – a 2026 remake of the classic 2015 startup generator(restarted.io ↗)
    1comments
  23. Show HN: AttaLambda: a language where types and data are made of untyped lambdas(attalambda.com ↗)
    discuss
  24. A warning about 'model welfare'(mustafa-suleyman.ai ↗)
    430comments
  25. The DeepMind Institute(deepmind.com ↗)
    33comments
  26. Kyber (YC W23) Is Hiring a Forward Deployed Engineer(ycombinator.com ↗)
    discuss
  27. Reverse-engineered Jev-like model(github.com/vinnylarouge ↗)
    4comments
  28. Douglas Adams and the exterminated Doctor Who adventure(bbc.co.uk ↗)
    66comments
  29. Claude Cowork and chat are now one Claude(claude.com ↗)
    192comments
  30. How big are factorials?(thegreenplace.net ↗)
    30comments

Accurate Models of AMD Matrix Cores

44 pointsby 2h agoarxiv.org
5 comments
2h agoHN ↗

"Features of matrix multipliers differ across vendors and architectures of the same vendor [...] As a result, reproducibility of small matrix multiplier results [differences] across devices is not possible and cannot be achieved by software control. Implementation details of matrix multipliers are not documented, making it difficult to interpret discrepancies in the computed results."

I'm guessing (but not knowing) that small subtle differences in matrix multiply across different vendor's architectures (and product generations of an individual vendor's architecture) is responsible for a good portion of software crashes when trying to run a local LLM on a different architecture or with a different stack (ROCm vs. CUDA, for example) than the ones it has been explicitly tested on.

As such, this marks a rather significant problem for the future, which can basically be stated as:

There needs to be a standard matrix multiply specification (much like IEEE-754 is/was for floating point operations) that all future vendors of AI accelerators (any GPU, CPU, NPU or IC manufacturer whose circuits implement matmul) adhere to, such that the matmul of one vendor is exactly and precisely compatible with the matmul of another.

Hardware vendors of course, are free to compete in terms of speed, power efficiency, number of matmul engines on a given piece of silicon, parallelization optimizations, etc., but the basic matmul operation should be exactly and precisely compatible across vendors and across future product versions.

Step 1: We need a spec for this... (Maybe IEEE is already working on one? If so, that's a good step forward!)

Step 2: Hardware vendors need to implement it, to be universally compatible in all of their IC's that use matmul, in the future...

1h agoHN ↗

Isn't the same amongst same architectures?

For instance, when I created script to train my model it worked fine on RTX 5080, but when I rented H100 to hopefully wait less for completion of training, the training would collapse just in a few epochs, suggesting they compute things differently (RTX 5080 would run thousands of epochs without collapsing. The same script and the same data).

1h agoHN ↗

is responsible for a good portion of software crashes

I doubt it's the case, it should result in slightly different logits and generated tokens, but it shouldn't lead to crashes.

I suspect what you're facing are simply driver bugs…

1h agoHN ↗

It's memory/tiling alignment issues + wrong instruction/feaatures.

1h agoHN ↗

Yep, 100%. In fact writing anything GPU co-processor related is nothing like porting CPU code. Sometimes the entire kernel needs to be rewritten outright when switching between GPU gens (of the same vendor). Things like precision et al also vary massively.

Usually these architectural differences are handled by the intermediate platform layer, which often doesn't apply if you're writing low-level kernels. Although this

I'm guessing (but not knowing) that small subtle differences in matrix multiply across different vendor's architectures (and product generations of an individual vendor's architecture) is responsible for a good portion of software crashes when trying to run a local LLM on a different architecture or with a different stack (ROCm vs. CUDA, for example) than the ones it has been explicitly tested on.

Has to do with everything else but matrix mult precision. Feature support/drivers/alignment generally causes crashes, and again, the GPU field situation is so precarious that it's 10x worse than the AVX512 segmentation in the CPU world. You basically need to microverify whether the target GPU supports a given instruction/feature.