I agree that distributing the training itself to unknown machines in unknown places is a very hard and maybe useless task, at least for now. First, because of the irregular network connections of such nodes: some computers have a stable cable connection, others slow Wi-Fi or a mobile network, while training needs fast and stable feedback. Second, memory: you need a huge contiguous shared block of it. And many other problems.
On the other hand, there are a lot of tasks around training that can be distributed, because they run perfectly in parallel. And these tasks are just as necessary to get the resulting model.
An example from one of my projects, an application for analyzing long Holter ECG records. I use an AI model to classify heartbeats, and I have a dataset of real Holter records with marked beats, about 500 GB. Not as huge as what you need for an LLM, but for me it is quite big. Before I can start training on my RTX 3090, I have to prepare the data: go through the dataset, cut out the chunks to feed in (a beat and its neighborhood, for example), and run preprocessing to find the spike positions. This usually takes about two days on my single computer, and all that time the GPU sits idle, because none of this preprocessing needs a GPU! Then training runs for about 30-36 hours, less than the preparation, and I get a model.
The list of such necessary tasks that are easy to distribute is long: data preparation: cleaning, deduplication; generating synthetic assets; model evaluation; verification of model output (source code, for example)
And many more. What they have in common is that they are individual and independent. They can be grouped into portions so that the time to transfer a portion to a node is less than the time to process it. A portion is sent once for the whole job, with no feedback needed: you just wait for the result.
On the other hand, there are a lot of tasks around training that can be distributed, because they run perfectly in parallel. And these tasks are just as necessary to get the resulting model.
An example from one of my projects, an application for analyzing long Holter ECG records. I use an AI model to classify heartbeats, and I have a dataset of real Holter records with marked beats, about 500 GB. Not as huge as what you need for an LLM, but for me it is quite big. Before I can start training on my RTX 3090, I have to prepare the data: go through the dataset, cut out the chunks to feed in (a beat and its neighborhood, for example), and run preprocessing to find the spike positions. This usually takes about two days on my single computer, and all that time the GPU sits idle, because none of this preprocessing needs a GPU! Then training runs for about 30-36 hours, less than the preparation, and I get a model.
The list of such necessary tasks that are easy to distribute is long: data preparation: cleaning, deduplication; generating synthetic assets; model evaluation; verification of model output (source code, for example)
And many more. What they have in common is that they are individual and independent. They can be grouped into portions so that the time to transfer a portion to a node is less than the time to process it. A portion is sent once for the whole job, with no feedback needed: you just wait for the result.
This is the kind of work I built OmnibusCloud for. How it looks from the developer's side: https://omnibuscloud.io/blog/controllers-and-witscript
reply