Skip to content

Comment on MicroGPT-C in pure C hits 10M TPS on Apple M5

Comments

And the 5 years old AMD Ryzen 5 5600H is doing 7M?

Am I reading this right? Then I need to try this on Strix Halo

And it's only using AVX-2 and not AVX-512, AMX or ACE. Or built-in GPUs and NPUs (the M series doesn't emphasize matrix multiplication on the CPU side because it already has matrix multiplication units on the GPU, which is always attached).

The NPU in previous AMD generation has unfortunately it's own dedicated RAM that is far too small for an LLM.

But even those should comfortably run an SLM of around 100-400M parameters at crazy high speeds and with minimal power usage.

an SLM of around 100-400M parameters at crazy high speeds and with minimal power usage

Software support for that kind of usage, when available, will be immensely impactful.

But do processors actually offload any CPU opcodes to their GPU? That could be quite useful if it can be used to improve execution speed.

No, but if you are guaranteed to have a GPU or NPU packaged together it becomes like the SPUs in the Cell processor - you can’t offload instructions (unless you use a trap mechanism to a subroutine) but you can have code that hides the setup, the different ISA, and the result retrieval, behind an API call.

Before the M5, there was no dedicated matrix multiplication hardware on the Apple Silicon GPU. Their solution was generally using the NPU and AMX coprocessors for tensor and matrix workloads.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.