


Llama3 comes suddenly! The open source community is boiling again: the era of free access to GPT4-level models has arrived
Apr 19, 2024 pm 12:43 PMLlama 3 is coming!
Just now, Meta’s official website was updated, officially announcing the Llama 3 8 billion and 70 billion parameter versions.
And the launch is open source SOTA:
Meta official data shows that the Llama 3 8B and 70B versions surpass all opponents in their respective parameter scales.
8B model outperforms Gemma 7B and Mistral 7B Instruct on many benchmarks such as MMLU, GPQA, and HumanEval.
The 70B model has surpassed the popular closed-source Claude 3 Sonnet, and has gone back and forth with Google's Gemini Pro 1.5.
As soon as the Huggingface link came out, the open source community became excited again.
The sharp-eyed blind students also immediately discovered Huadian:
Meta even hid a version of Llama 3 with 400 billion parameters, which is no less than the Claude 3 super large Opus!
The CEO of HyperWriteAI, an AI writing assistant startup, couldn’t help but sigh when he saw this:
We are entering a new world, a GPT -A world where level 4 models are open source and freely accessible.
NVIDIA scientist Jim Fan believes that Llama 3 400B, which is still in training, will become a watershed for open source large models and change the development of many academic research and start-up companies. Way.
Full SOTA, but 8k window
More technical details, Meta is given in the blog post.
At the architectural level, Llama 3 chose the classic decoder-only Transformer architecture, using a word segmenter containing a 128K token vocabulary.
Looking at the training data, the training data scale of Llama 3 has reached 15T tokens, all of which come from public information, of which 5% is non-English data, covering more than 30 languages.
Llama 3 has 7 times more training data than Llama 2, and has 4 times more code than Llama 2.
In addition, in order to improve the reasoning efficiency of the Llama 3 model, Meta AI also adopts the Group Query Attention (GQA) mechanism to train the model on a sequence of 8192 tokens, and uses a mask to ensure that self-attention is not Will cross document boundaries.
As a result, whether it is the 8B or 70B version, Llama 3 has made a major leap forward compared to the previous generation Llama 2 of similar size.
Among the 8B and 70B parameter scale models so far, Llama 3 has become a new SOTA model.
In terms of language (MMLU), knowledge (GPQA), programming (HumanEval), mathematics (GSM-8K, MATH) and other capabilities, Llama 3 is almost completely ahead of other models of the same scale.
In addition to these conventional data sets, Meta AI also evaluated the performance of Llama 3 in real-life scenarios and developed a high-quality test data set for this purpose.
This test set contains 1,800 pieces of data, covering 12 key use cases such as coding, reasoning, writing, and summary, and is confidential to the development team.
As a result, Llama 3 not only significantly surpassed Llama 2, but also defeated well-known models such as Claude 3 Sonnet, Mistral Medium and GPT-3.5.
The performance of Llama 3 is also remarkable on higher-order and more difficult data sets such as AGIEval, BIG-Bench, and ARC-Challenge.
The 8B version surpassed Mistral and Gemma in these tasks, while the 70B version defeated Gemini Pro and Mixtral with MoE architecture, winning SOTAs of corresponding sizes respectively.
However, the only drawback is that the context window of Llama 3 is only 8k. Compared with the current large models with dozens or millions of windows, it seems that it is still stuck in the previous generation. (Manual dog head).
But don’t worry too much. Matt Shumer is optimistic about this. He expressed his belief that with the efforts of the open source community, the window length will soon be expanded.
Llama welcomes the official web version
Currently, the basic and Instruct versions of both parameters of Llama 3 are available on Hugging Face for download.
In addition, cloud service platforms such as Microsoft Azure, Google Cloud, Amazon AWS, and NVIDIA NIM will also launch Llama 3 one after another.
At the same time, Meta also said that Llama 3 will be supported by hardware platforms provided by Intel, Nvidia, AMD, Qualcomm and other manufacturers.
It is worth mentioning that this time, together with the basic model, there is an official Web version based on Llama 3, called Meta AI.
Currently, the platform has two major functions: dialogue and painting. If you only use dialogue, you don’t need to register and log in, and it can be used immediately. To use the painting function, you need to log in to your account first.
However, the platform currently does not support Chinese, and functions such as text uploading have not yet been launched.
In terms of code, the platform can also run some simple Python programs, but it seems that it can only output text, and tasks involving drawing cannot be run.
# Overall, this web version is still relatively rudimentary, but you might as well look forward to a wave of subsequent updates.
One More Thing
A small incident is that in fact, a few hours before Meta’s official announcement, Microsoft’s Azure market had already stolen the news of the Llama 3 8B Instruct version.
The Llama 3 price list on the open source model machine learning online platform Replicate was also immediately pulled out by netizens.
#But soon, these "little tidbits" were all 404'ed.
Fortunately, the mistake is over, and the official is not delaying it. Friends who care about open source large models can start to doge.
參考鏈接:
[1]https://ai.meta.com/blog/meta-llama-3/。
[2]https://about.fb.com/news/2024/04/meta-ai-assistant-built-with-llama-3/。
[3]https://huggingface.co/meta-llama/Meta-Llama-3-70B。
The above is the detailed content of Llama3 comes suddenly! The open source community is boiling again: the era of free access to GPT4-level models has arrived. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

User voice input is captured and sent to the PHP backend through the MediaRecorder API of the front-end JavaScript; 2. PHP saves the audio as a temporary file and calls STTAPI (such as Google or Baidu voice recognition) to convert it into text; 3. PHP sends the text to an AI service (such as OpenAIGPT) to obtain intelligent reply; 4. PHP then calls TTSAPI (such as Baidu or Google voice synthesis) to convert the reply to a voice file; 5. PHP streams the voice file back to the front-end to play, completing interaction. The entire process is dominated by PHP to ensure seamless connection between all links.

To realize text error correction and syntax optimization with AI, you need to follow the following steps: 1. Select a suitable AI model or API, such as Baidu, Tencent API or open source NLP library; 2. Call the API through PHP's curl or Guzzle and process the return results; 3. Display error correction information in the application and allow users to choose whether to adopt it; 4. Use php-l and PHP_CodeSniffer for syntax detection and code optimization; 5. Continuously collect feedback and update the model or rules to improve the effect. When choosing AIAPI, focus on evaluating accuracy, response speed, price and support for PHP. Code optimization should follow PSR specifications, use cache reasonably, avoid circular queries, review code regularly, and use X

Use Seaborn's jointplot to quickly visualize the relationship and distribution between two variables; 2. The basic scatter plot is implemented by sns.jointplot(data=tips,x="total_bill",y="tip",kind="scatter"), the center is a scatter plot, and the histogram is displayed on the upper and lower and right sides; 3. Add regression lines and density information to a kind="reg", and combine marginal_kws to set the edge plot style; 4. When the data volume is large, it is recommended to use "hex"

To integrate AI sentiment computing technology into PHP applications, the core is to use cloud services AIAPI (such as Google, AWS, and Azure) for sentiment analysis, send text through HTTP requests and parse returned JSON results, and store emotional data into the database, thereby realizing automated processing and data insights of user feedback. The specific steps include: 1. Select a suitable AI sentiment analysis API, considering accuracy, cost, language support and integration complexity; 2. Use Guzzle or curl to send requests, store sentiment scores, labels, and intensity information; 3. Build a visual dashboard to support priority sorting, trend analysis, product iteration direction and user segmentation; 4. Respond to technical challenges, such as API call restrictions and numbers

String lists can be merged with join() method, such as ''.join(words) to get "HelloworldfromPython"; 2. Number lists must be converted to strings with map(str, numbers) or [str(x)forxinnumbers] before joining; 3. Any type list can be directly converted to strings with brackets and quotes, suitable for debugging; 4. Custom formats can be implemented by generator expressions combined with join(), such as '|'.join(f"[{item}]"foriteminitems) output"[a]|[

pandas.melt() is used to convert wide format data into long format. The answer is to define new column names by specifying id_vars retain the identification column, value_vars select the column to be melted, var_name and value_name, 1.id_vars='Name' means that the Name column remains unchanged, 2.value_vars=['Math','English','Science'] specifies the column to be melted, 3.var_name='Subject' sets the new column name of the original column name, 4.value_name='Score' sets the new column name of the original value, and finally generates three columns including Name, Subject and Score.

Pythoncanbeoptimizedformemory-boundoperationsbyreducingoverheadthroughgenerators,efficientdatastructures,andmanagingobjectlifetimes.First,usegeneratorsinsteadofliststoprocesslargedatasetsoneitematatime,avoidingloadingeverythingintomemory.Second,choos

Install pyodbc: Use the pipinstallpyodbc command to install the library; 2. Connect SQLServer: Use the connection string containing DRIVER, SERVER, DATABASE, UID/PWD or Trusted_Connection through the pyodbc.connect() method, and support SQL authentication or Windows authentication respectively; 3. Check the installed driver: Run pyodbc.drivers() and filter the driver name containing 'SQLServer' to ensure that the correct driver name is used such as 'ODBCDriver17 for SQLServer'; 4. Key parameters of the connection string
