by jbotz · 3y ago · 0 comments
"Eventually, though, someone will release a program that’s nearly as capable as ChatGPT, and entirely open-source. An enterprising amateur will find a way to make it run for free on your laptop."
Well not in the near future... Large language models like ChatGPT are called "large" for a reason, and they're too big for your laptop for the foreseeable future. I think you'd need a computer with several high-end GPUs that each have 128+GB of RAM to be able to run one of those. Maybe a laptop from 2030 will do.
Otherwise a very good article.
Assuming that somebody, somewhere, is working on improving things for Mac, we may very likely already have the hardware to run at least a distilled version of ChatGPT locally on laptops. (And if not the MBP, then the M1 Mac Studio would be a good runner-up with 128 GB of memory, though that's obviously not a laptop)
It's very important to distinguish the different use cases between training and inference. The amount of memory required to execute the ChatGPT model, once trained, is likely much, much less than 128GB.
And finally there are lots of other ways to get this down. Aside from quantization, people have also shown that you can do pruning – getting rid of many of the weights – again without much perf loss. You can also offload the weights to CPU RAM or an NVME and stream them in as needed [2]; it's slower but if you arrange things right the performance is not too bad. There are also ways to speed up inference using techniques like early exit [3], where you can skip running the whole model for some tokens that are easy to predict.
Overall it feels like within a year or two a combination of better quantization/pruning, improved understanding of how to train smaller LLMs, and hardware improvements will put inference for ChatGPT-style models within reach of the average user.
[1] https://towardsdatascience.com/a-new-ai-trend-chinchilla-70b...
[2] https://github.com/FMInference/FlexGen
[3] https://ai.googleblog.com/2022/12/accelerating-text-generati...
1. Chinchilla has demonstrated models are currently unnecessarily large, and would benefit more from data scaling.
2. Models can be brought down in size massively by a combination of distillation and quantization.
A GPT-3 equivalent with 50B parameters quantized to fp4 is 200gig, and it could probably be distilled to half of that or less while still being functional for the vast majority of prompts. That means ~100gig memory will be a target for devices in the near future.
Once large language models are the main thing people buy GPUs (and even new computers) for, architectures will be redesigned to improve gpu -> memory bandwidth and latency. I wouldn't be surprised to see GPU integrated motherboards as a future premium tier offering, we're already running into heat and space issues with add-on cards and it should be possible to build a low latency bus to a unified system memory.
Not convinced. It showed this for the original self supervised task, but it might be true that the spare parameters end up being useful for the later finetuning/RLHF stages.
It's the same as it's always been. Any general purpose computer is Turing complete. Spending more gets you faster results.