search
HomeTechnology peripheralsAICode Llama's coding capabilities soared, and the fine-tuned version of HumanEval scored better than GPT-4 and was released in one day

Yesterday, Meta open sourced the basic model specializing in code generation Code Llama, which can be used for research and commercial purposes for free.

Code Llama series models have three parameter versions with parameter sizes of 7B, 13B and 34B respectively. And supports multiple programming languages, including Python, C, Java, PHP, Typescript (Javascript), C#, and Bash.

The Code Llama version provided by Meta includes:
  • Code Llama, basic code model;

  • Code Sheep-Python, a fine-tuned version of Python;

  • Code Llama-Instruct, a fine-tuned version of natural language instructions

Just its effect Generally speaking, the one-time generation pass rate (pass@1) of different versions of Code Llama on the HumanEval and MBPP data sets exceeds GPT-3.5.

In addition, Code Llama’s “Unnatural” 34B version’s pass@1 on the HumanEval dataset is close to GPT-4 (62.2% vs 67.0%). However, Meta did not release this version, but significant performance improvements were achieved through training on a small set of high-quality encoded data.

Code Llama代码能力飙升,微调版HumanEval得分超越GPT-4,一天发布Image source: https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/

Just after one day, a researcher launched a challenge to GPT-4. They come from Phind, an organization that aims to build an AI search engine for developers, and the research used finely tuned Code Llama-34B to beat GPT-4 in the HumanEval evaluation.

Phind co-founder Michael Royzen said: "This is just an early experiment, aiming to reproduce (and surpass) the "Unnatural Code Llama" results in the Meta paper. In the future, we will have an expert portfolio of different CodeLlama models that I think will be competitive in real-world workflows. 》

Code Llama代码能力飙升,微调版HumanEval得分超越GPT-4,一天发布

Both models have been open source:

Code Llama代码能力飙升,微调版HumanEval得分超越GPT-4,一天发布

The researchers released these two models on Huggingface, You can go and check it out.
  • Phind-CodeLlama-34B-v1:https://huggingface.co/Phind/Phind-CodeLlama-34B-v1
  • Phind -CodeLlama-34B-Python-v1: https://huggingface.co/Phind/Phind-CodeLlama-34B-Python-v1
Next let’s see how this research goes realized.

Fine-tuned Code Llama-34B beats GPT-4

## Let’s look at the results first. This study used Phind internal data sets to fine-tune Code Llama-34B and Code Llama-34B-Python, resulting in two models Phind-CodeLlama-34B-v1 and Phind-CodeLlama-34B-Python-v1 respectively.

The two newly obtained models achieved 67.6% and 69.5% pass@1 respectively on HumanEval.

For comparison, CodeLlama-34B pass@1 is 48.8%; CodeLlama-34B-Python pass@1 is 53.7%.

And GPT-4’s pass@1 on HumanEval is 67% (data released by OpenAI in the “GPT-4 Technical Report” released in March this year).

Code Llama代码能力飙升,微调版HumanEval得分超越GPT-4,一天发布Image source: https://ai.meta.com/blog/code-llama-large-language-model-coding/


Code Llama代码能力飙升,微调版HumanEval得分超越GPT-4,一天发布 Picture source: https://cdn.openai.com/papers/gpt-4.pdf

When it comes to fine-tuning, it’s natural to have a data set. This study fine-tuned Code Llama-34B and Code Llama-34B-Python on a proprietary data set containing about 80,000 high-quality programming problems and solutions.

This dataset does not take code completion examples, but instead takes instruction-answer pairs, which is different from the HumanEval data structure. The study then trained the Phind model for two epochs, with a total of about 160,000 examples. The researchers said that LoRA technology was not used in the training, but local fine-tuning was used.

In addition, the study also used DeepSpeed ​​ZeRO 3 and Flash Attention 2 technology. They spent three hours on 32 A100-80GB GPUs to train these Model, the sequence length is 4096 tokens.

In addition, the study also applied OpenAI’s decontamination method to the data set to make the model results more effective.

As we all know, even the very powerful GPT-4 will face the dilemma of data pollution. In layman's terms, the trained model may have been trained on the evaluation data. .

This problem is very difficult for LLM. For example, in the process of evaluating the performance of a model, in order to make a scientifically credible evaluation, the researcher must check the Whether the problem is in the model's training data. If it is, the model can remember these problems and will obviously perform better on these specific problems when evaluating the model.

It's like a person already knows the test questions before taking the exam.

In order to solve this problem, OpenAI disclosed how GPT-4 evaluates data pollution in the public GPT-4 technical document "GPT-4 Technical Report". They disclose their strategies for quantifying and assessing this data contamination.

Specifically, OpenAI uses substring matching to measure cross-contamination between the evaluation dataset and pre-training data. Both evaluation and training data are processed by removing all spaces and symbols, leaving only characters (including numbers).

For each evaluation example, OpenAI randomly selects three 50-character substrings (if there are fewer than 50 characters, the entire example is used). A match is determined if any of the three sampled evaluation substrings is a substring of the processed training example.

This will produce a list of tainted examples, which OpenAI discards and reruns to obtain an untainted score. But this filtering method has some limitations, substring matching can lead to false negatives (if there are small differences between the evaluation and training data) as well as false positives. As a result, OpenAI uses only part of the information in the evaluation example, leveraging only questions, context, or equivalent data, and ignoring answers, responses, or equivalent data. In some cases, multiple choice options are also excluded. These exclusions may lead to an increase in false positives.

Regarding this part, interested readers can refer to the paper to learn more.

Paper address: https://cdn.openai.com/papers/gpt-4.pdf

However, there is some controversy over the HumanEval score used by Phind when benchmarking GPT-4. Some people say that the latest test score of GPT-4 has reached 85%. But Phind replied that the relevant research that derived this score did not conduct contamination research, and it was impossible to determine whether GPT-4 had seen HumanEval's test data when it received a new round of testing. Considering some recent research on "GPT-4 becomes dumb", it is more safe to use the data in the original technical report.

Code Llama代码能力飙升,微调版HumanEval得分超越GPT-4,一天发布

However, considering the complexity of large model evaluation, whether these evaluation results can reflect the true capabilities of the model is still a controversial issue. You can download the model and experience it yourself.

The rewritten content is as follows: Reference link:

The content that needs to be rewritten is: https://benjaminmarie.com/the-decontaminated-evaluation- of-gpt-4/

The content that needs to be rewritten is: https://www.phind.com/blog/code-llama-beats-gpt4

The above is the detailed content of Code Llama's coding capabilities soared, and the fine-tuned version of HumanEval scored better than GPT-4 and was released in one day. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:机器之心. If there is any infringement, please contact admin@php.cn delete
AI Game Development Enters Its Agentic Era With Upheaval's Dreamer PortalAI Game Development Enters Its Agentic Era With Upheaval's Dreamer PortalMay 02, 2025 am 11:17 AM

Upheaval Games: Revolutionizing Game Development with AI Agents Upheaval, a game development studio comprised of veterans from industry giants like Blizzard and Obsidian, is poised to revolutionize game creation with its innovative AI-powered platfor

Uber Wants To Be Your Robotaxi Shop, Will Providers Let Them?Uber Wants To Be Your Robotaxi Shop, Will Providers Let Them?May 02, 2025 am 11:16 AM

Uber's RoboTaxi Strategy: A Ride-Hail Ecosystem for Autonomous Vehicles At the recent Curbivore conference, Uber's Richard Willder unveiled their strategy to become the ride-hail platform for robotaxi providers. Leveraging their dominant position in

AI Agents Playing Video Games Will Transform Future RobotsAI Agents Playing Video Games Will Transform Future RobotsMay 02, 2025 am 11:15 AM

Video games are proving to be invaluable testing grounds for cutting-edge AI research, particularly in the development of autonomous agents and real-world robots, even potentially contributing to the quest for Artificial General Intelligence (AGI). A

The Startup Industrial Complex, VC 3.0, And James Currier's ManifestoThe Startup Industrial Complex, VC 3.0, And James Currier's ManifestoMay 02, 2025 am 11:14 AM

The impact of the evolving venture capital landscape is evident in the media, financial reports, and everyday conversations. However, the specific consequences for investors, startups, and funds are often overlooked. Venture Capital 3.0: A Paradigm

Adobe Updates Creative Cloud And Firefly At Adobe MAX London 2025Adobe Updates Creative Cloud And Firefly At Adobe MAX London 2025May 02, 2025 am 11:13 AM

Adobe MAX London 2025 delivered significant updates to Creative Cloud and Firefly, reflecting a strategic shift towards accessibility and generative AI. This analysis incorporates insights from pre-event briefings with Adobe leadership. (Note: Adob

Everything Meta Announced At LlamaConEverything Meta Announced At LlamaConMay 02, 2025 am 11:12 AM

Meta's LlamaCon announcements showcase a comprehensive AI strategy designed to compete directly with closed AI systems like OpenAI's, while simultaneously creating new revenue streams for its open-source models. This multifaceted approach targets bo

The Brewing Controversy Over The Proposition That AI Is Nothing More Than Just Normal TechnologyThe Brewing Controversy Over The Proposition That AI Is Nothing More Than Just Normal TechnologyMay 02, 2025 am 11:10 AM

There are serious differences in the field of artificial intelligence on this conclusion. Some insist that it is time to expose the "emperor's new clothes", while others strongly oppose the idea that artificial intelligence is just ordinary technology. Let's discuss it. An analysis of this innovative AI breakthrough is part of my ongoing Forbes column that covers the latest advancements in the field of AI, including identifying and explaining a variety of influential AI complexities (click here to view the link). Artificial intelligence as a common technology First, some basic knowledge is needed to lay the foundation for this important discussion. There is currently a large amount of research dedicated to further developing artificial intelligence. The overall goal is to achieve artificial general intelligence (AGI) and even possible artificial super intelligence (AS)

Model Citizens, Why AI Value Is The Next Business YardstickModel Citizens, Why AI Value Is The Next Business YardstickMay 02, 2025 am 11:09 AM

The effectiveness of a company's AI model is now a key performance indicator. Since the AI boom, generative AI has been used for everything from composing birthday invitations to writing software code. This has led to a proliferation of language mod

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools