Home » Meta Releases Llama 3 Open Language Model

Meta Releases Llama 3 Open Language Model

By

–

Meta Releases Llama 3 Open Language Model

Meta says its new 8B model beats Mistral 7B and Google’s Gemma 7B on at least nine benchmarks. The detail that matters is the margin: on a few of them, TechCrunch noted, Llama 3 8B leads by only a few percentage points.

Meta released the first two members of the Llama 3 family on April 18, 2024. Llama 3 8B has 8 billion parameters and Llama 3 70B has 70 billion. The rest of the family will follow at a date Meta has not given. Both sizes are available for download and already power Meta’s Meta AI assistant on Facebook, Instagram, WhatsApp, Messenger and the web.

Meta calls the pair a “major leap” over Llama 2 8B and Llama 2 70B. It also claims that for their size they rank among the best-performing generative AI models available today.

The benchmark case

The 8B model’s nine wins come on MMLU, ARC, DROP, GPQA, HumanEval, GSM-8K, MATH, AGIEval and BIG-Bench Hard. The 70B model is pitched higher. Meta says it beats Gemini 1.5 Pro on MMLU, HumanEval and GSM-8K, and scores above Claude 3 Sonnet on five tests: MMLU, GPQA, HumanEval, GSM-8K and MATH. It does not rival Claude 3 Opus.

Meta also built its own test set, covering coding, creative writing, reasoning and summarization. Llama 3 70B came out ahead of Mistral Medium, GPT-3.5 and Claude Sonnet on it. Meta says it kept its modeling teams away from the set. As TechCrunch pointed out, Meta wrote the test, so the result calls for caution. The benchmarks in general are, in TechCrunch’s words, up for debate.

Under the hood

Training used 15 trillion tokens, seven times the Llama 2 dataset, run on two custom-built clusters of 24,000 GPUs each. Meta says the data included four times more code than before, and 5% of it was non-English text across about 30 languages. It used AI-generated data to build longer training documents. Where the rest came from, Meta would say only “publicly available sources.”

Hugging Face, which supports the launch, describes the technical changes. The tokenizer vocabulary grew to 128,256 tokens from 32K. That encodes text more efficiently, but the larger embedding matrices push the small model from 7B parameters to 8B. The 8B version also adopts Grouped-Query Attention. Context length is 8K tokens.

Each size comes as a base model and an instruction-tuned one, four models in all, plus Llama Guard 2, a safety classifier fine-tuned on Llama 3 8B. The instruct versions were trained on over 10 million human-annotated samples. Hugging Face says the 8B model suits consumer-size GPUs, while the 70B targets large-scale applications.

“Open”, with conditions

TechCrunch uses “open” rather than “open source” on purpose. Commercial use is allowed, but developers may not use Llama models to train other generative models, and app makers with more than 700 million monthly users must ask Meta for a special licence. The Llama 3 licence also adds a requirement that Llama 2 lacked: derived models must carry “Llama 3” at the start of their name, and derivative works must state “Built with Meta Llama 3.”

Safety got attention as well. Meta built new data-filtering pipelines, updated Llama Guard and CybersecEval, and added a tool called Code Shield to catch AI-written code that could introduce security holes. TechCrunch’s caveat: filtering is not foolproof, and Llama 2 had a habit of making up answers and leaking private health and financial information.

The training data raises legal questions too. Recent reporting said Meta once used copyrighted e-books for AI training despite warnings from its own lawyers, and Meta and OpenAI face a lawsuit from authors including comedian Sarah Silverman.

Models above 400 billion parameters are still in training. Meta says they should be able to converse in multiple languages and handle images as well as text. “Our goal in the near future is to make Llama 3 multilingual and multimodal, have longer context and continue to improve overall performance,” Meta wrote. “There’s a lot more to come.”

Sources

Sources

Related stories

Get breaking stories first on our Telegram channel.

More stories by

Most read

AI Tools

Artificial Intelligence

Business

World News