LLM EXPLORER 59,358 MODELS INDEXED

CodeLlama 7B Python GPTQ by TheBloke

By TheBloke · 46 downloads

CodeLlama 7B Python GPTQ is an open-source language model by TheBloke. Features: 7b LLM, VRAM: 3.9GB, Context: 16K, License: llama2, Quantized, Code Generating, LLM Explorer Score: 0.08.

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

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
Updated2026-08-02
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 GB41
...a 7B Instruct GPTQ Calib Ja 1K16K / 3.9 GB60
CodeLlama 7B Instruct GPTQ16K / 3.9 GB49946
CodeLlama 7B GPTQ16K / 3.9 GB6314
Codegen Int4 GPTQ Python Code4K / 3.9 GB70
Llama 2 Coder 7B GPTQ4K / 3.9 GB3310
CodeLlama 7B Java 16bit16K / 13.5 GB100
Codellama 7B Bnb 4bit16K / 3.9 GB36959
...ruct Solidity Bnb 4bit Smashed16K / 4.2 GB60
...lama 7B Tofuagent Contpretrain16K / 13.5 GB60
Note: green Score (e.g. "73.2") means that the model is better than TheBloke/CodeLlama-7B-Python-GPTQ.