News for hackers. Stuff that matters.
Re:Apple Introduces M2 Ultra by pseudopersonal on Monday June 05, 2023 @02:14PM (#36200542)
With a unified 192GB memory, could this challenge nvidia's lock on ML training? Or is CUDA still insurmountable?
Re:Apple Introduces M2 Ultra by bufo on Monday June 05, 2023 @02:21PM (#36200679)
The memory bandwidth is still a bit lower than Nvidia's best cards, and it doesn't have the equivalent of Tensor Cores. If they wanted they could compete, but it's clearly not their desire. They build consumer end products.
Re:Apple Introduces M2 Ultra by zamadatix on Monday June 05, 2023 @04:41PM (#36203290)
Regarding Tensor cores it does have them as part of the 32 core Neural Engine. Apple considers AI/ML a consumer feature all the way down to the iPhone hardware.
Re:Apple Introduces M2 Ultra by earthnail on Monday June 05, 2023 @05:34PM (#36204079)
The Neural engine is for inference, not training.
Re:Apple Introduces M2 Ultra by sillysaurusx on Monday June 05, 2023 @06:25PM (#36204943)
There’s no difference between inference and training. Training is simply ~4x more expensive inference.

The submitted article also talks about training models.

Re:Apple Introduces M2 Ultra by bufo on Tuesday June 06, 2023 @10:03AM (#36212947)
There is a difference. We train with large batch sizes these days. The ANE silicon size is tiny and can't do the large matrix multiplications for big LLMs with or without a batch size higher than 1. Meaning that it cannot saturate the RAM bandwidth and that you're better using off the much bigger GPU on the Apple die.
Re:Apple Introduces M2 Ultra by llm_nerd on Monday June 05, 2023 @05:34PM (#36204080)
The neural engine on all recent Apple silicon (and A## devices) has "tensor" cores for matrix calculations (note: Apple abstracts all of this behind coreml so there is some conflation between the ANE and AMX instructions/hardware). The M2 Ultra offers 31.6 trillion ops per second with fp16, for instance, which actually bests an A100.

The software support is terrible, of course, which is the biggest limitation, but Apple clearly wants to be in that realm as well.

Re:Apple Introduces M2 Ultra by bufo on Monday June 05, 2023 @05:45PM (#36204295)
The neural engine has severe limitations at the moment. I tried using it for BERT about a year ago and kept crashing its API because of "out of memory" issues. The theoretical TOPs you mention also don't necessarily translate into usable TOPs because of memory bandwidth and caches. This is why for example the comparison of the M1 Max with a RTX 3090 was completely off.
Re:Apple Introduces M2 Ultra by llm_nerd on Monday June 05, 2023 @05:59PM (#36204531)
I certainly can't speak to your specific uses or issues, but I mean we've really moved the goalposts from the prior claim that it didn't have tensor (e.g. matrix) functionality.

My daily work life includes a lot of model running on Apple hardware (Apple Silicon and A1# chips with the neural engine) using CoreML, often Pytorch models converted using coremltools. The performance of the Apple chips is spectacular if the intrinsics are supported (things obviously get dicier if there are currently unsupported ops). I mean, the memory bandwidth of the M2 Ultra is within spitting distance of the GDDR6X 4090.

People aren't going to be replacing H100 arrays with Apple Silicon and even as a fan I use nvidia hardware for training and convert the models to CoreML after the fact, but Apple clearly isn't just satisfied being some toy. They are continually climbing up that vine.

Re:Apple Introduces M2 Ultra by bufo on Monday June 05, 2023 @08:27PM (#36206426)
Yes, you are correct in that the ANE does have the equivalent of tensor cores and that I didn’t mention that. I just don’t expect it to be usable beyond inference because the number of compute units will not work for batches in medium/large/huge networks. That’s obviously by design! The ANE silicon size is tiny compared to the GPU area. I wouldn’t be actually surprised if Apple strategically only invests in using their GPU for LLM (1B+ params) work.

Note that if you are currently using CoreML for LLMs all the work is done in the GPU.

Re:Apple Introduces M2 Ultra by ajb117 on Monday June 05, 2023 @03:04PM (#36201584)
Besides Nvidia cards usually being faster and having higher memory bandwidth, Ada cards also have FP8 cores. I'm not sure how well Apples' M-series chips handle low/mixed precision tensors, but I wouldn't be surprised if Nvidia cards perform better with them.
Re:Apple Introduces M2 Ultra by viscanti on Monday June 05, 2023 @04:02PM (#36202715)
Training is unlikely for most things but you could probably run a trained model on it that needs a lot of RAM.
Re:Apple Introduces M2 Ultra by corysama on Monday June 05, 2023 @06:35PM (#36205073)
Nvidia's NVIDIA DGX™ GH200 supercomputer links 256 Grace Hopper CPU+GPU chips with 576 GBs of unified memory each into a single 144 terabyte GPU address space.

https://www.nvidia.com/en-us/data-center/dgx-gh200/