Code Llama: Open Foundation Models for Code
arXiv:2308.12950
Abstract
We release Code Llama, a family of large language models for code based on Llama 2 providing state-of-the-art performance among open models, infilling capabilities, support for large input contexts, and zero-shot instruction following ability for programming tasks. We provide multiple flavors to cover a wide range of applications: foundation models (Code Llama), Python specializations (Code Llama - Python), and instruction-following models (Code Llama - Instruct) with 7B, 13B, 34B and 70B parameters each. All models are trained on sequences of 16k tokens and show improvements on inputs with up to 100k tokens. 7B, 13B and 70B Code Llama and Code Llama - Instruct variants support infilling based on surrounding content. Code Llama reaches state-of-the-art performance among open models on several code benchmarks, with scores of up to 67% and 65% on HumanEval and MBPP, respectively. Notably, Code Llama - Python 7B outperforms Llama 2 70B on HumanEval and MBPP, and all our models outperform every other publicly available model on MultiPL-E. We release Code Llama under a permissive license that allows for both research and commercial use.
Cited by in corpus (37)
- ChatEDA: A Large Language Model Powered Autonomous Agent for EDA
- NeuPIMs: NPU-PIM Heterogeneous Acceleration for Batched LLM Inferencing
- LLM-Based Test-Driven Interactive Code Generation: User Study and Empirical Evaluation
- OpenMedLM: Prompt engineering can out-perform fine-tuning in medical question-answering with open-source large language models
- LLM for SoC Security: A Paradigm Shift
- A Performance Study of LLM-Generated Code on Leetcode
- Using LLMs in Software Requirements Specifications: An Empirical Evaluation
- The Dawn of Natural Language to SQL: Are We Fully Ready?
- LLM4PLC: Harnessing Large Language Models for Verifiable Programming of PLCs in Industrial Control Systems
- Look Before You Leap: An Exploratory Study of Uncertainty Measurement for Large Language Models
- HPC-Coder: Modeling Parallel Programs using Large Language Models
- GeoCode-GPT: A Large Language Model for Geospatial Code Generation Tasks
- Deploying and Evaluating LLMs to Program Service Mobile Robots
- Output Format Biases in the Evaluation of Large Language Models for Code Translation
- Geo-FuB: A Method for Constructing an Operator-Function Knowledge Base for Geospatial Code Generation Tasks Using Large Language Models
- Supersonic: Learning to Generate Source Code Optimizations in C/C++
- LTM: Scalable and Black-box Similarity-based Test Suite Minimization based on Language Models
- Relax: Composable Abstractions for End-to-End Dynamic Machine Learning
- Large Language Models to the Rescue: Reducing the Complexity in Scientific Workflow Development Using ChatGPT
- PyTester: Deep Reinforcement Learning for Text-to-Testcase Generation
- Type-Constrained Code Generation with Language Models
- LASSI: An LLM-based Automated Self-Correcting Pipeline for Translating Parallel Scientific Codes
- Large Language Models for Combinatorial Optimization: A Systematic Review
- Generating Energy-efficient code with LLMs
- Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Models
- AI-based Attacker Models for Enhancing Multi-Stage Cyberattack Simulations in Smart Grids Using Co-Simulation Environments
- DesignRepair: Dual-Stream Design Guideline-Aware Frontend Repair with Large Language Models
- Exploring the Effectiveness of Abstract Syntax Tree Patterns for Algorithm Recognition
- Variational Prefix Tuning for Diverse and Accurate Code Summarization Using Pre-trained Language Models
- Automated Description Generation for Software Patches
- Exploring Large Language Models for Translating Romanian Computational Problems into English
- Guarding Your Conversations: Privacy Gatekeepers for Secure Interactions with Cloud-Based AI Models
- DeCoMa: Detecting and Purifying Code Dataset Watermarks through Dual Channel Code Abstraction
- CoServe: Efficient Collaboration-of-Experts (CoE) Model Inference with Limited Memory
- Linguacodus: A Synergistic Framework for Transformative Code Generation in Machine Learning Pipelines
- A Roadmap for Tamed Interactions with Large Language Models
- Program Skeletons for Automated Program Translation