Which affordable GPU would you recommend to train a language model?
- User
Which affordable GPU would you recommend to train a language model?
- Assistant
The most affordable GPU for training a language model greatly depends on your specific requirements, the largest factor being the amount of GPU memory needed. According to Tim Dettmers at https://timdettmers.com/2023/01/16/which-gpu-for-deep-learning/ , the most cost-efficient (relative to performance) GPU for deep learning is the RTX 4070 Ti (12 GB). Cheaper options include used RTX 3060 GPUs which also have 12GB of RAM, but lower inference and training performance. As a rough guide, you will need at least 12GB for image generation and at least 24GB to work with transformers which are common for language models. For language models, that essentially forces you to get an RTX 3090, 3090Ti, or 4090 due to the 24GB of GPU memory they have.
Large Language Models with more than 13B parameters often require much more powerful cards in terms of GPU memory capacity, or multiple cards, to train, thus not being affordable. However, there are lots of improvements happening the deep learning scene to optimize models such as 8-bit inference and training, and the dynamics of the market change frequently, thus I would recommend active research to get the latest information possible.
- User
That's out of my budget, I'm afraid. Is it possible to train a language model without buying a GPU?
- Assistant
You can rent GPU time in the cloud from companies such as AWS, Google Cloud, vast.ai, Paperspace, and others. Alternatively, if your model is small enough, you might be able to train it on your current GPU or using services with free tiers such as Google Colab or Kaggle.
- User
How long will it take to train my own chat gbt with Google Colab’s free services?
- Assistant
Since Colabs free services are limited to time and computing power, you could only train a small model which may not be as capable as a bigger model. Since smaller models dont need as much time to train as bigger models, it shouldnt take too long, depending on your dataset of course!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)