News for hackers. Stuff that matters.
Re:Apple M1 Max Geekbench Score by derefr on Wednesday October 20, 2021 @06:36PM (#28937710)
> an nvidia gpu will still run circles arounnd this thing

Not for loading up models larger than 32GB it wouldn't. (They exist! That's what the "full-detail model of the starship Enterprise" thing in the keynote was about.)

Remember that on any computer without unified memory, you can only load a scene the size of the GPU's VRAM. No matter how much main memory you have to swap against, no matter how many GPUs you throw at the problem, no magic wand is going to let you render a single tile of a single frame if it has more texture-memory as inputs than one of your GPUs has VRAM.

Right now, consumer GPUs top out at 32GB of VRAM. The M1 Max has, in a sense, 64GB (minus OS baseline overhead) of VRAM for its GPU to use.

Of course, there is "an nvidia gpu" that can bench more than the M1 Max: the Nvidia A100 Tensor Core GPU, with 80GB of VRAM... which costs $149,000.

(And even then, I should point out that the leaked Mac Pro M1 variant is apparently 4x larger again — i.e. it's probably available in a configuration with 256GB of unified memory. That's getting close to "doing the training for GPT-3 — a 350GB model before optimization — on a single computer" territory.)

Re:Apple M1 Max Geekbench Score by jjcon on Wednesday October 20, 2021 @06:40PM (#28937751)
Memory != Speed

You could throw a TB of memory in something and it won't get any faster or be of any use for 99.99% of use cases.

Large ML architectures don't need more memory, they need distributed processing. Ignoring memory requirements, GPT-3 would take hundreds of years to train on a single high end GPU (on say a desktop 3090 which is >10x faster than m1) which is why they aren't trained that way (and why NVidia has the offerings set up the way they do).

>That's getting close to "doing the training for GPT-3 — a 350GB model before optimization — on a single computer" territory.

Not even close... not by a mile. That isn't how it works. The unified memory is cool but its utility is massively bottlenecked by the single cpu/gpu it is attached to.

Re:Apple M1 Max Geekbench Score by derefr on Wednesday October 20, 2021 @07:00PM (#28937951)
I don't disagree that there are many use cases for which more memory has diminishing returns. But I would disagree that those encompass 99.99% of use cases. Not all problems are embarrassingly-parallel. In fact, most problems aren't embarrassingly parallel.

It's just that we mostly use GPUs for embarrassingly-parallel problems, because that's mostly what they're good at, and humans aren't clever enough by half to come up with every possible way to map MIMD problems (e.g. graph search) into their SIMD equivalents (e.g. matrix multiplication, ala PageRank's eigenvector calculation.)

The M1 Max isn't the absolute best GPU for doing the things GPUs already do well. But its GPU is a much better "connection machine" than e.g. the Xeon Phi ever was. It's a (weak) TPU in a laptop. (And likely the Mac Pro variant will be a true TPU.)

Having a cheap, fast-ish GPU with that much memory, opens up use-cases for which current GPUs aren't suited. In those use-cases, this chip will "run circles around" current GPUs. (Mostly because current GPUs wouldn't be able to run those workloads at any speed.)

Just one fun example of a use-case that has been obvious for years, yet has been mostly moot until now: there are database engines that run on GPUs. For parallelizable table-scan queries, they're ~100x faster still than even memory databases like memSQL. But guess where all the data needs to be loaded into, for those GPU DB engines to do their work?

You'd never waste $150k on an A100 just to host an 80GB database. For that price, you could rent 100 regular servers and set them up as memSQL shards. But if you could get a GPU-parallel-scannable 64GB DB [without a memory-bandwidth bottleneck] for $4000? Now we're talking. For the cost of one A100, you get a cluster of ~37 64GB M1 Max MBPs — that's 2.3TB of addressable VRAM. That's enough to start doing real-time OLAP aggregations on some Big-Ish Data. (And that's with the ridiculous price overhead of paying for a whole laptop just to use its SoC. If integrators could buy these chips standalone, that'd probably knock the pricing down by another order of magnitude.)

Re:Apple M1 Max Geekbench Score by shaklee3 on Thursday October 21, 2021 @01:00AM (#28940472)
Again, there is a huge memory bandwidth bottleneck. It's ddr versus gddr and hbm. It's not even close. The m1 will be slower.
Re:Apple M1 Max Geekbench Score by melony on Wednesday October 20, 2021 @08:16PM (#28938610)
Cerebras is a thing.
Re:Apple M1 Max Geekbench Score by kristjansson on Wednesday October 20, 2021 @08:37PM (#28938771)
And at least an order of magnitude more expensive than an A100, if not two orders
Re:Apple M1 Max Geekbench Score by EvgeniyZh on Thursday October 21, 2021 @12:33AM (#28940301)
I think you put extra zero in A100 price
Re:Apple M1 Max Geekbench Score by inkyoto on Thursday October 21, 2021 @01:14AM (#28940569)
> I don't disagree that there are many use cases for which more memory has diminishing returns. But I would disagree that those encompass 99.99% of use cases. Not all problems are embarrassingly-parallel. In fact, most problems aren't embarrassingly parallel.

Mindlessly throwing more memory does encompass diminishing returns in 99.99% of use cases because extra memory will inflict a very large number of TLB misses during the page fault processing or during the context switching which will slow memory access down substantially unless:

1) the TLB size in each of the L1/L2/… caches is increased; AND

2) the page size is increased, or the page size can be configured in the CPU.

Earlier versions of MIPS CPU's had a software controlled, very small sized TLB and were notorious for being slow with the memory access. Starting with A14, Apple has increased an already massive TLB, which was on top of the page size having been increased from 4kB to 16kB:

«The L1 TLB has been doubled from 128 pages to 256 pages, and the L2 TLB goes up from 2048 pages to 3072 pages. On today’s iPhones this is an absolutely overkill change as the page size is 16KB, which means that the L2 TLB covers 48MB which is well beyond the cache capacity of even the A14» [0].

It would be interesting to find out whether the TLB size is even larger in M1 Pro/Max CPU's.

[0] https://www.anandtech.com/show/16226/apple-silicon-m1-a14-de...

Re:Apple M1 Max Geekbench Score by camillomiller on Thursday October 21, 2021 @02:17AM (#28940999)
I think we’re losing the perspective here that Apple is not in the business of selling chips, but rather in the business of selling laptop to professional who would never even need what you describe
Re:Apple M1 Max Geekbench Score by ClumsyPilot on Thursday October 21, 2021 @10:00AM (#28944489)
"Right now, consumer GPUs top out at 32GB of VRAM. The M1 Max has, in a sense, 64GB (minus OS baseline overhead) of VRAM for its GPU to use."

We've had AMD APU's for years, you can shove 256GB of RAM in there. But noone cares because a huge chunk of memory attached to a slow GPU is useless.

Re:Apple M1 Max Geekbench Score by localhost on Wednesday October 20, 2021 @09:05PM (#28938984)
No way you could train, but if they could squeeze a bit more RAM onto that machine, you could actually do inferencing using the full 175B parameter GPT-3 model (vs. one of its smaller, e.g., 13B parameter versions [1] - if I could get my hands on the parameters for that one I could run it on my MBP 14 in a couple of weeks!).

The ML folks are finding ways to consume everything the HW folks can make and then some.

[1] https://arxiv.org/abs/2005.14165

Re:Apple M1 Max Geekbench Score by shaklee3 on Thursday October 21, 2021 @12:58AM (#28940457)
Terrible, terrible take. GPU ram is about 10x faster than ddr in practical usage, so your worloads can finish and a new batch can be transferred over pcie faster than the apple would finish the first pass.