2023-08-26 16:12:02
Code Llama 2 function that allows programming from natural language.
Code Llama, a language model (LLM) from Meta that uses text messages to generate and analyze code, has the ability to program with text such as “write me a function that generates the Fibonacci sequence” and achieve different tasks.
Also, it can be used for code completion and debugging.
According to Meta, the purpose of this new tool is to be used for education and productivity, in order to help programmers write software.
It has the power to serve both for research and commercial use under the same Llama 2 community license.
It supports many of today’s most widely used programming languages, such as Python, C++, Java, PHP, Typescript (Javascript), C#, and Bash, among others.
It may interest you: Is it possible to create our own version of ChatGPT?
Meta is the company that has developed the AI Llama 2 and the Code Llama 2 tool.
Deepak Kumar, a postdoctoral researcher at Stanford and an expert in AI coding, says it’s highly likely that developers will create new kinds of apps using Code Llama.
The academic exemplifies this by mentioning that it would be possible to create a programming assistant that performs various additional security checks before recommending a piece of code.
Meta’s new assisted coding tool comes in three sizes: 7B, 13B and 34B. Each of these models has been trained with 500B code tokens and data related to the code.
The 7B and 13B models were trained with the fill-in-the-middle (FIM) capability, which allows them to insert code into existing code, meaning they can support tasks like code completion right out of the box.
The 7B model can operate on a single GPU. The 34B model allows for better encoding assistance, but the smaller 7B and 13B models are faster and better suited for tasks that require low latency, such as real-time code completion.
Keep reading: How to use ChatGPT for free to create texts
Similarly, Meta claimed that he perfected two other variants of Code Llama: Code Llama – Python and Code Llama – Instruct.
Code Llama is presented in three sizes.
Code Flame – Phyton is a variant of Code Flame specializing in languages and perfected with 100,000 tokens of Python code. Python is the most used language for code generation. Meta rates that Python and Pytorch play an important role in the IA community.
Code Llama – Instruct is a tweaked Code Llama variation with various instructions that is still in the process of training, but with a different goal. The model receives an indication in natural language and the expected result.
This allows you to better understand what people expect from your instructions. Meta recommends the use of the Code Llama – Instruct variants whenever Code Llama is used for code generation.
1693078384
#Code #Llama #Metas #tool #generate #code #artificial #intelligence