Why are GPUs better than CPUs at performaing machine learning tasks?
- User
Why are GPUs better than CPUs at performaing machine learning tasks?
- Assistant
GPUs are designed to perform matrix multiplication in parallel across several streaming multiprocessors. A cpu, while faster for a single multiply, cannot match the parallelism a GPU offers. Because matrix multiplication is used throughout machine learning, a GPU is often much better to use than a CPU.
- User
Would a CPU be completely insufficient for running a localized AI?
- Assistant
No, there is some effort to optimize and adjust LLMs to running on CPU more efficiently.
For instance, LLaMA has been successfully ported to C/C++ (see github link) in Spring 2023, and with some modifications to memory management can allegedly run on a Mac with an output speed in the order of seconds per token. This is not enough for a fluent conversation, but will work for processing and summarizing batches of documents, for example. And this is just one example, the work is surely going on!
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)