Codellama 2 7B by mlabonne

 »  All LLMs  »  mlabonne  »  Codellama 2 7B   URL Share it on

Codellama 2 7B is an open-source language model by mlabonne. Features: 7b LLM, VRAM: 13.5GB, License: apache-2.0, Code Generating, LLM Explorer Score: 0.08.

  Adapter Base model:adapter:meta-llama/... Base model:meta-llama/llama-2-...   Code   Codegen Dataset:mlabonne/codellama-2-2...   Finetuned   Llama   Lora   Peft   Pytorch   Region:us   Safetensors   Sharded   Tensorflow

Codellama 2 7B Benchmarks

nn.n% — How the model compares to the reference models: Anthropic Sonnet 3.5 ("so35"), GPT-4o ("gpt4o") or GPT-4 ("gpt4").

Codellama 2 7B Parameters and Internals

Model Type 
text generation
Training Details 
Data Sources:
mlabonne/CodeLlama-2-20k
Methodology:
fine-tuning using QLoRA
Hardware Used:
RTX 3090
LLM NameCodellama 2 7B
Repository 🤗https://huggingface.co/mlabonne/codellama-2-7b 
Base Model(s)  Llama 2 7B Hf   meta-llama/Llama-2-7b-hf
Model Size7b
Required VRAM13.5 GB
Updated2026-05-02
Maintainermlabonne
Model Files  0.0 GB   0.0 GB   10.0 GB: 1-of-2   10.0 GB: 1-of-2   3.5 GB: 2-of-2   3.5 GB: 2-of-2   0.0 GB
Generates CodeYes
Model ArchitectureAdapter
Licenseapache-2.0
Is Biasednone
Tokenizer ClassLlamaTokenizer
Beginning of Sentence Token<s>
End of Sentence Token</s>
Unk Token<unk>
PEFT TypeLORA
LoRA ModelYes
PEFT Target Modulesq_proj|v_proj
LoRA Alpha16
LoRA Dropout0.1
R Param8

Best Alternatives to Codellama 2 7B

Best Alternatives
Context / RAM
Downloads
Likes
Code Llama 7B Chatbot0K / 1.1 GB60
...10 2024 06 23 10 41 40 35586360K / 0.6 GB130
Mistral 7b 2EPOCH DolphinCoder0K / 0.1 GB120
Codellama2 Finetuned Nl2bash0K / 0 GB41
Mistral 7b 3Epoch DolphinCoder0K / 0.1 GB70
Tsql To Plsql0K / 0.4 GB70
Second Sql Converter Model0K / 0 GB50
Llama Code 7B0K / 13.5 GB41
Cria Llama2 7B V1.3 Peft0K / 0.1 GB250
EvilCodeLlama 7B0K / 10.8 GB51
Note: green Score (e.g. "73.2") means that the model is better than mlabonne/codellama-2-7b.

Rank the Codellama 2 7B Capabilities

🆘 Have you tried this model? Rate its performance. This feedback would greatly assist ML community in identifying the most suitable model for their needs. Your contribution really does make a difference! 🌟

Instruction Following and Task Automation  
Factuality and Completeness of Knowledge  
Censorship and Alignment  
Data Analysis and Insight Generation  
Text Generation  
Text Summarization and Feature Extraction  
Code Generation  
Multi-Language Support and Translation  

What open-source LLMs or SLMs are you in search of? 53999 in total.

Our Social Media →  
Original data from HuggingFace, OpenCompass and various public git repos.
Check out Ag3ntum — our secure, self-hosted AI agent for server management.
Release v20260328a