LocalLLaMA
Welcome to LocalLLaMA! Here we discuss running and developing machine learning models at home. Lets explore cutting edge open source neural network technology together.
Get support from the community! Ask questions, share prompts, discuss benchmarks, get hyped at the latest and greatest model releases! Enjoy talking about our awesome hobby.
As ambassadors of the self-hosting machine learning community, we strive to support each other and share our enthusiasm in a positive constructive way.
Rules:
Rule 1 - No harassment or personal character attacks of community members. I.E no namecalling, no generalizing entire groups of people that make up our community, no baseless personal insults.
Rule 2 - No comparing artificial intelligence/machine learning models to cryptocurrency. I.E no comparing the usefulness of models to that of NFTs, no comparing the resource usage required to train a model is anything close to maintaining a blockchain/ mining for crypto, no implying its just a fad/bubble that will leave people with nothing of value when it burst.
Rule 3 - No comparing artificial intelligence/machine learning to simple text prediction algorithms. I.E statements such as "llms are basically just simple text predictions like what your phone keyboard autocorrect uses, and they're still using the same algorithms since <over 10 years ago>.
Rule 4 - No implying that models are devoid of purpose or potential for enriching peoples lives.
view the rest of the comments
I'm not going to watch the video
I like most context in text rather than video form
but while I will very well believe that:
It's possible to optimize LLMs to make smaller models more effective than they are today. It would be very surprising if they were already optimal, given that the field is immature.
It's possible to do a series of smaller, specialized models and keep models not-relevant to the current context unloaded from VRAM
I believe that the "splitting into smaller specialized networks" approach is referred to as Mixture of Experts. This should improve memory efficiency for many problems.
...this is countered by the fact that once you free up resources, I also suspect that you can then go use those now-available resources to improve the model by shoveling more data into the model. And while there might be diminishing returns, I very much doubt that there is a hard cap on which one can get better results by throwing more knowledge at a problem.
This optimization is about smaller matrix multiplications. Experts will specialize on input token types, and while it is better at being split accross resources (GPUs), it is not really specialization on "output domain" (type of work). All experts need to be in memory.
Deepseek made a 7b math focused LLM that beat all other models on math benchmarks, even 540b math specialist LLMs. More than any internal speed/structure "tricks", they achieved this through highly curated training data.
The small models we get now tend to just be pruned from larger generalist models. Paper/video is suggesting smaller models that are "large tuned" post trained to be domain specialists. Large models could select from domain specialist models and only load those in memory or act as a judge in combining outputs of "sub models"
Where an LLM is a giant probabilistic classifier, there are much faster/accurate/less compute intensive deterministic classifiers (expert/rule systems). Where SLMs have advantages, using even cheaper classification steps is going in the same direction. A smaller LLM is automatically a faster classifier, as a hammer to bang on everything alternative.