Meta launches LLaMA and, in just three weeks, an ecosystem of open language models is born
While OpenAI, Google and Microsoft compete with closed language models that can only be accessed through an API, Meta took a different path. On February 24 it introduced LLaMA (Large Language Model Meta AI), a family of foundation models that it shares with the research community. What has happened since then has been as fast as it has been surprising.
LLaMA was released in four sizes. Illustration: The Joy Robot.
Smaller models, but very capable
LLaMA comes in four sizes: 7, 13, 33 and 65 billion parameters. They are quite a bit smaller than GPT-3 (175 billion) or Google's PaLM (540 billion), but Meta trained them on much more data: 1.4 trillion tokens for the largest models and 1 trillion for the smallest, using only public data, mainly in English and in the 20 most spoken languages that use the Latin and Cyrillic alphabets. The result is remarkable. According to Meta's paper, LLaMA-13B outperforms GPT-3 on most benchmarks, despite being more than ten times smaller, and LLaMA-65B competes with the best models of the moment, such as DeepMind's Chinchilla and Google's PaLM.
LLaMA's size compared to other large language models. Chart: The Joy Robot. Why does size matter? Because a smaller model needs much less memory and computing power to run. That opens the door for universities, small companies and even hobbyists to run it and experiment with it.
Only for researchers… in theory
Meta released LLaMA under a noncommercial license, aimed at research. To download the model weights you had to fill out a form, and Meta granted access case by case to academic researchers, civil society organizations and labs. But on March 3, barely a week after the announcement, the weights leaked and began circulating freely on the Internet. From that moment on, anyone could download them, although Meta's license still doesn't allow commercial use.
The community takes over
What came next shows the strength of the open source community:
- llama.cpp: on March 10, Bulgarian developer Georgi Gerganov released an implementation of LLaMA written in C/C++, with no dependencies. Thanks to 4-bit quantization, which greatly reduces the memory needed, the 7-billion-parameter model runs on a MacBook, without a graphics card.
- Alpaca: on March 13, researchers from Stanford University introduced Alpaca, a version of LLaMA 7B fine-tuned with 52,000 instruction examples to behave like a ChatGPT-style assistant. According to its authors, the fine-tuning cost less than 600 dollars.
- Dozens more projects: people are already running LLaMA on ordinary computers, on phones and even on a Raspberry Pi, although very slowly on the latter.
From LLaMA's announcement to Alpaca in three weeks. Timeline: The Joy Robot.
Our take
A month ago, running a decent language model on your own computer seemed unthinkable. Today, thanks to LLaMA and the work of the community, you can do it on a laptop, without an Internet connection and without sending your data to any server. It's the same effect Stable Diffusion had on image generation last year. Of course, the leak raises problems: Meta loses control over how its model is used, and it opens a debate about the risks of releasing these technologies. But it also proves something important: you don't need the biggest models in the world to do useful things. If the trend continues, open models could become a real alternative to the closed services of the big companies.
|
|
|