And this is just for a consumer GPU, I haven't even touched on the datacenter-grade stuff.
tl;dr the M2 is an underpowered GPU with a lot of RAM close by, while NVIDIA cards are multiple orders of magnitude more powerful but most of the RAM's a bit farther away.
seriously, measuring graphics cards in gigabytes is like measuring battery life in volts. it's the wrong unit.
Either way quite a bit better than 30x slower.
Yes, but, if you need 48GB to run inference on a model, and you only have 24GB available, you don't get to enjoy the tflops difference.
If nVidia released somewhat lower-performance GPUs but with more VRAM, we could talk. But they're not stupid :)
A more appropriate comparison is the fp16 performance.
It seems to be 27 tflops for the 38 core M2, and 330 for the 4090.
The more useful for training fp16 with fp32 accumulate is 165 for the 4090, I don't know about the apple one.
You might be able to compare the number of CUDA cores to the ALU count of the Apple GPUs. I don't know what that is for M2 Ultra yet, but for the 64 core M1 Ultra each core had 16 execution units and each of those had 8 ALUs, for a total of 8,192 ALUs. The M1 Ultra's FP32 performance was in the ballpark of 21tflops - assuming a ~30% improvement in the M2 Ultra that takes us to ~27tflops. Google suggests that for the RTX 4090 it's 83tflops.
• The GPU in the M2 Ultra has 76 GPU cores and corresponds to 2x M2 Max, which has 13.6 tflops; so 27.2 tflops [1,2]
• RTX 4090 has 82.58 tflops [3] (overclocked can reach 100 tflops [4])
While more powerful NVidia cards are not "multiple orders of magnitude more". Rather it seems a 4090 is around 3-4 faster than an M2 Ultra GPU.
Keep in mind that the Apple Silicon chips also have low-precission Neural Engine circuits for inference of neural nets. For the M2 Ultra they claim 31.6 tops [1].
[1] https://www.apple.com/newsroom/2023/06/apple-introduces-m2-u...
[2] https://www.notebookcheck.net/Apple-unveils-M2-Pro-and-M2-Ma...
[3] https://www.techpowerup.com/gpu-specs/geforce-rtx-4090.c3889
[4] https://videocardz.com/newz/overclocked-nvidia-rtx-4090-gpu-...
For the M1 the stated values are:
M1 Ultra [1]: 21 TFLOPs
M1 Max [2]: 10.6 TFLOPS
Actual performance obviously depends on the type of work-load etc. E.g. Geekbench Ultra is only 50% faster [3]: M1 Ultra Geekbench 6: 150260
M1 Max Geekbench 6: 108198
[1] https://videocardz.com/newz/despite-apples-claims-m1-ultra-g...
[2] https://wccftech.com/m1-max-teraflops-performance-higher-tha...
[3] https://browser.geekbench.com/metal-benchmarksBy contrast, M2 Ultra has 800 GB/s memory bandwidth, 31.6 half-precision TFlops in the Neural Engine, and (extrapolating from https://en.wikipedia.org/wiki/Apple_M2), about 27 single-precision TFlops on the GPU.
So 5x memory bandwidth, more than double generic throughput, and at least 32x peak tensor throughput. Sure, the Mac Studio uses much less power, but depending on the application that usually doesn't make up for the speed difference.