r/MachineLearning • • 1d ago

Discussion why don't people use distributed compute for ML? [D]

hello. i was looking into how cheap compute services like salad is compared to other providers (nearly 60% in some cases) and was wondering why this type of compute hasn't had a mass adoption, or at least, why haven't i heard of it more often?

why aren't enterprises using it, or startups, or hobbiests? if you do or don't use it, im super curious as to why.

0 Upvotes

11 comments sorted by

8

u/timy2shoes 21h ago

They do. As well as distributed inference. 

5

u/SkepticalHoopsML 21h ago

You're confusing enterprise clusters with decentralized compute. Interconnect latency and memory bandwidth bottlenecks make consumer GPU pools impractical for training most architectures.

1

u/codeboi08 21h ago

+1

Even within a single AWS AZ we generally try to minimize the number of nodes needed for any training job to make optimal use of NVLink.

1

u/codeboi08 21h ago

I think distributed computing for ML is the norm in industry (past a certain scale of company).

I work on ML Infra at a large scale tech company. We do both distributed interference and training on all kinds and sizes of models (these are GPU/TPU/Trainium accelerated)

Previously at a different company we trained a lot of models on distributed CPU machines as well (Distributed LightGBM)

https://docs.ray.io/en/latest/train/train.html https://docs.pytorch.org/tutorials/intermediate/ddp_tutorial.html https://docs.pytorch.org/tutorials/intermediate/FSDP1_tutorial.html And so many more things

1

u/KingsmanVince 21h ago

People do at any level.

1

u/NaivelyBayesic 9h ago

Yea the thread's right that this is really a question about decentralized consumer pools rather than distributed compute, which is standard at this point. And I think the reason comes down to what the workload actually needs from the hardware.

Training is all about how fast nodes can sync gradients with each other. Every step every GPU has to exchange updates with every other GPU, so your throughput is capped by the slowest link in the system. In a datacenter that's a dedicated high bandwidth interconnect... on a consumer pool it's whatever internet connection someone's gaming PC has. The GPUs end up sitting idle waiting on communication, so the cheaper per hour price doesn't actually buy you anything.

Where it should work in theory is anything you can split into independent pieces, like batch inference or large eval runs, since there's no communication step. But then you're trusting data and weights to hardware you don't control, and you're building around nodes that can disappear mid job. That's a lot of engineering overhead to save on the compute line.

So I think the answer is it gets used for a narrow slice of work by people with a high tolerance for flakiness, and everyone else just pays the premium.