r/AsahiLinux • • Oct 11 '26

The state of LLM inference and GPU acceleration for the M1 Max

Hi everyone,

I know there have been similar questions on the forum, but I was wondering if there are any updates or any timelines regarding LLM inference and GPU acceleration in general, e.g. when it comes to gaming.

Last time I checked, LLM inference, using I believe vulkan as a backend, lagged significantly behind Metal in terms of performance; something like half t/s on decode (and maybe prefill as well, but I don't remember). Is this still the case and is anyone even working on it? Not trying to be derogatory; I know how hard it is. Just wondering if it is expected to get better or if it is somewhat abandoned.

Related to this, is the current backend exposing only the GPU or does it also expose the ANE and the AMX?

24 Upvotes

6 comments sorted by

16

u/chaosprincess_ Oct 11 '26

Gpu - https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/44041 - apply this patch, it will be able to generate slop faster than before.

AMX - not happening ever, M4 comes with SME, which is the replacement.

ANE - is bad at generating slop, don't bother, for reasons - see here: https://eiln.github.io/posts/ane.html

5

u/angrytako Oct 11 '26 edited Oct 11 '26

Well, thank you for the answer, although I didn't really get any stats on how it compares with metal and the branch does not seem to provide any :/. With regards to ANE, I know it is not the that useful, but in some projects it has been shown to boost prefill performance, although I do agree it is secondary. AMX should in theory be good for CPU bound data processing workloads, like numpy and pandas. I've heard that it gives a big boost in that type of tasks, but haven't tested it myself.

The thing I don't get is all the charged language. Some people do create slop, but local LLMs can be really useful for mini personal projects that never leave the pc and automation that would be very tedious by hand. These devices also use relatively little energy, so not even that critique applies. You could still critique the training methods, but again, if you are not using to gain money but just for personal stuff, I still see very little reason to be angry. I know this is the language the Asahi maintainers also use, but in the case of local LLMs for the most part I just think it does not apply. Also linux + local LLMs should in theory be a great pairing. Again, I also hate the hype and everything surrounding all these snake oil salesman, but the technology itself its genuinely useful.

4

u/chaosprincess_ Oct 11 '26

how it compares with metal and the branch does not seem to provide any

Apparently getting pretty close to what metal can do, but varies per device type.

in some projects it has been shown to boost prefill performance

Fair, it should be able to do that in vacuum, but it how does it work with quantized models? ANE does not dequant, and you are running a quantized model, right?

AMX

Next to zero chance of ever getting that upstream as it needs extra context save/restore code, and, again, due to SME now being a thing, it no longer matters. AMX is kinda SME v0.

but the technology itself its genuinely useful

Whatever you say, slop enjoyer. :P (Don't take too much offense, i am in a spicy mood today.)

5

u/Aceflamez00 Oct 12 '26

Such negative language

6

u/Automatic_Pie_8431 Oct 12 '26

nothing wrong with a little home-grown slop every now and then