CodeLlama 7B Fp16 by TheBloke

 »  All LLMs  »  TheBloke  »  CodeLlama 7B Fp16   URL Share it on

CodeLlama 7B Fp16 is an open-source language model by TheBloke. Features: 7b LLM, VRAM: 13.5GB, Context: 16K, License: llama2, Quantized, Code Generating, HF Score: 57.2, LLM Explorer Score: 0.11, Arc: 60.8, HellaSwag: 81.2, MMLU: 59.4, TruthfulQA: 44.7, WinoGrande: 73.2, GSM8K: 23.9.

  Codegen   Codellama   Custom code   Endpoints compatible   Fp16   Llama   Llama2   Quantized   Region:us   Safetensors   Sharded   Tensorflow

CodeLlama 7B Fp16 Benchmarks

CodeLlama 7B Fp16 Parameters and Internals

Model Type 
text generation
Use Cases 
Areas:
commercial, research
Applications:
code synthesis, understanding tasks, Python programming, code assistant
Primary Use Cases:
code synthesis and understanding tasks, handle the Python programming language
Limitations:
Use in any manner that violates applicable laws or regulations, Use in languages other than English
Considerations:
Developers should perform safety testing and tuning tailored to specific applications.
Supported Languages 
English (proficient)
Training Details 
Data Sources:
same data as Llama 2 with different weights
Context Length:
100000
Hardware Used:
A100-80GB (TDP of 350-400W)
Model Architecture:
autoregressive language models using optimized transformer architectures
Safety Evaluation 
Ethical Considerations:
Testing conducted to date has been in English and has not covered all scenarios. Outputs cannot be predicted in advance and may be inaccurate or objectionable.
Input Output 
Input Format:
text only
Accepted Modalities:
text
Output Format:
text only
Performance Tips:
Load the FP16 models with `trust_remote_code=True` for correct results.
LLM NameCodeLlama 7B Fp16
Repository 🤗https://huggingface.co/TheBloke/CodeLlama-7B-fp16 
Base Model(s)  Code Llama 7B Text To Sql   philschmid/code-llama-7b-text-to-sql
Model Size7b
Required VRAM13.5 GB
Updated2026-04-10
MaintainerTheBloke
Model Typellama
Model Files  10.0 GB: 1-of-2   3.5 GB: 2-of-2
Quantization Typefp16
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 Size32016
Torch Data Typefloat16

Best Alternatives to CodeLlama 7B Fp16

Best Alternatives
Context / RAM
Downloads
Likes
CodeLlama 7B Java 16bit16K / 13.5 GB70
Codellama 7B Bnb 4bit16K / 3.9 GB32149
...ruct Solidity Bnb 4bit Smashed16K / 4.2 GB60
...lama 7B Tofuagent Contpretrain16K / 13.5 GB50
...B Instruct Hf Bnb 4bit Smashed16K / 4.2 GB60
CodeLlama 7B Python Onnx Fp1616K /  GB51
CodeLlama 7B Python 4bit MLX16K / 4 GB39214
...eLlama 7B Instruct Hf 4bit MLX16K / 4.2 GB942
...pMagic Coder 7B 8.0bpw H8 EXL216K / 6.9 GB21
CodelLama7B Inst DPO 7K Mlx16K / 4.2 GB333
Note: green Score (e.g. "73.2") means that the model is better than TheBloke/CodeLlama-7B-fp16.

Rank the CodeLlama 7B Fp16 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? 53472 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