CodeLlama 7B Python GPTQ by TheBloke

 ยป  All LLMs  ยป  TheBloke  ยป  CodeLlama 7B Python GPTQ   URL Share it on

  Arxiv:2308.12950   4-bit   Autotrain compatible   Code   Codegen   Custom code   Gptq   Llama   Llama2   Quantized   Region:us   Safetensors

CodeLlama 7B Python GPTQ Benchmarks

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

CodeLlama 7B Python GPTQ Parameters and Internals

Model Type 
text generation, code synthesis
Use Cases 
Areas:
commercial use, research use
Applications:
code synthesis, code understanding
Primary Use Cases:
Python programming
Limitations:
Out-of-scope uses include languages other than English.
Considerations:
The potential outputs cannot be predicted in advance; developers should perform safety testing.
Additional Notes 
Code Llama is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 34 billion parameters.
Supported Languages 
Python (Specialist)
Training Details 
Data Sources:
Uses the same data as Llama 2 with different weights.
Methodology:
Fine-tuning specific to tasks such as code synthesis and Python specialization.
Hardware Used:
A100-80GB, TDP of 350-400W
Model Architecture:
Optimized transformer architecture
Safety Evaluation 
Methodologies:
See safety evaluations in Section 4 of the research paper.
Ethical Considerations:
Should perform safety testing and tuning tailored to specific applications.
Responsible Ai Considerations 
Mitigation Strategies:
Responsible Use Guide available at https://ai.meta.com/llama/responsible-user-guide
Input Output 
Input Format:
Text input
Accepted Modalities:
text
Output Format:
Text generation
Release Notes 
Version:
7B Python
Notes:
Designed for general code synthesis and understanding.
LLM NameCodeLlama 7B Python GPTQ
Repository ๐Ÿค—https://huggingface.co/TheBloke/CodeLlama-7B-Python-GPTQ 
Model NameCodeLlama 7B Python
Model CreatorMeta
Base Model(s)  codellama/CodeLlama-7b-python-hf   codellama/CodeLlama-7b-python-hf
Model Size7b
Required VRAM3.9 GB
Updated2024-12-22
MaintainerTheBloke
Model Typellama
Model Files  3.9 GB
Supported Languagescode
GPTQ QuantizationYes
Quantization Typegptq
Generates CodeYes
Model ArchitectureLlamaForCausalLM
Licensellama2
Context Length16384
Model Max Length16384
Transformers Version4.32.0
Tokenizer ClassLlamaTokenizer
Beginning of Sentence Token<s>
End of Sentence Token</s>
Unk Token<unk>
Vocabulary Size32000
Torch Data Typefloat16

Best Alternatives to CodeLlama 7B Python GPTQ

Best Alternatives
Context / RAM
Downloads
Likes
Codebear 7B 4bit16K / 3.9 GB71
...a 7B Instruct GPTQ Calib Ja 1K16K / 3.9 GB360
CodeLlama 7B Instruct GPTQ16K / 3.9 GB55046
CodeLlama 7B GPTQ16K / 3.9 GB7814
Codegen Int4 GPTQ Python Code4K / 3.9 GB120
Llama 2 Coder 7B GPTQ4K / 3.9 GB3310
CodeLlama 7B Java 16bit16K / 13.5 GB170
Codellama 7B Bnb 4bit16K / 3.9 GB33162
...lama 7B Tofuagent Contpretrain16K / 13.5 GB280
...ruct Solidity Bnb 4bit Smashed16K / 4.2 GB140
Note: green Score (e.g. "73.2") means that the model is better than TheBloke/CodeLlama-7B-Python-GPTQ.

Rank the CodeLlama 7B Python GPTQ 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? 40066 in total.

Our Social Media →  
Original data from HuggingFace, OpenCompass and various public git repos.
Release v20241217