Large language models need a lot of hardware resources to be trained and also to run…
- User
Large language models need a lot of hardware resources to be trained and also to run inferences. What are the hardware requirements for training GPT-J, OPT and Bloom and what are the requirements to run inference?
- Assistant
There are three key components needed for machine learning inference: a data source, a machine learning system to process the data, and a data destination. GPUs play an important role in the development of today's machine learning applications. When choosing a GPU for machine learning applications, there are several manufacturers to choose from. CUDA cores are better for general purpose parallel computing tasks, while Tensor cores are better for deep learning and AI workloads that involve large matrix operations.
- User
So what kind of equipment are we looking at?
- Assistant
- GPT-J was trained on a TPU v3-256 for about five weeks
- OPT was trained on 992 NVIDIA 80GB A100 GPUs for about two months, and had to deal with several hardware failures over that time that required either manual or automatic restarts.
- Bloom was trained on the Jean Zay, which had 384 NVIDIA A100 80GB GPUs, and took about four months
The TPUs used by google are not for sale, and a single NVIDIA 80GB A100 GPU can cost 10,000, in addition to the extra components needed to wire everything together and cool everything. In order to train a model on the same time scale as those, if we assumed 300 A100 GPUs was enough, the cost for a facility to train them might be around 6 million$.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.