Llama 2 7B Hf by meta-llama

 »  All LLMs  »  meta-llama  »  Llama 2 7B Hf   URL Share it on

Llama 2 7B Hf is an open-source language model by meta-llama. Features: 7b LLM, VRAM: 13.5GB, Context: 4K, License: llama2, HF Score: 48.9, LLM Explorer Score: 0.29, Arc: 53.1, HellaSwag: 77.7, MMLU: 43.8, TruthfulQA: 39, WinoGrande: 74.6, GSM8K: 5.4.

  Arxiv:2307.09288   En   Endpoints compatible   Facebook   Llama   Llama2   Meta   Pytorch   Region:us   Safetensors   Sharded   Tensorflow

Llama 2 7B Hf Benchmarks

Llama 2 7B Hf Parameters and Internals

Model Type 
Generative text
Use Cases 
Areas:
Commercial, Research
Applications:
Assistant-like chat
Primary Use Cases:
Natural language generation tasks
Limitations:
Use cases not covered extensively in languages other than English.
Considerations:
Developers should ensure the responsible use of models.
Additional Notes 
Tuned models optimized for dialogue. High carbon footprint during pretraining offset by Meta's sustainability program. Modeled potential relationships between text sequences to predict next items in sequences safely and effectively.
Supported Languages 
English (Primary language for intended use)
Training Details 
Data Sources:
Publicly available online data
Data Volume:
2 trillion tokens
Methodology:
Uses a mix of publicly available online data. Fine-tuned using Supervised Fine-Tuning (SFT) and Reinforcement Learning with Human Feedback (RLHF).
Context Length:
4000
Hardware Used:
A100-80GB (TDP of 350-400W)
Model Architecture:
Optimized transformer architecture
Responsible Ai Considerations 
Fairness:
Model may produce inaccurate, biased, or objectionable outputs.
Transparency:
Transparency measures are in place for users.
Accountability:
Developers should perform safety testing tailored to specific applications.
Mitigation Strategies:
Safety testing and tuning recommended by Meta before deployment.
Input Output 
Input Format:
Text only
Accepted Modalities:
Text
Output Format:
Text only
Performance Tips:
Specific formatting needs for chat versions, including the use of `INST` and `<>` tags, `BOS` and `EOS` tokens, and appropriate whitespace management.
LLM NameLlama 2 7B Hf
Repository 🤗https://huggingface.co/meta-llama/Llama-2-7b-hf 
Model Size7b
Required VRAM13.5 GB
Updated2026-04-09
Maintainermeta-llama
Model Typellama
Model Files  10.0 GB: 1-of-2   3.5 GB: 2-of-2   10.0 GB: 1-of-2   3.5 GB: 2-of-2
Supported Languagesen
Model ArchitectureLlamaForCausalLM
Licensellama2
Context Length4096
Model Max Length4096
Transformers Version4.31.0.dev0
Tokenizer ClassLlamaTokenizer
Beginning of Sentence Token<s>
End of Sentence Token</s>
Unk Token<unk>
Vocabulary Size32000
Torch Data Typefloat16

Quantized Models of the Llama 2 7B Hf

Model
Likes
Downloads
VRAM
Llama 2 7B GPTQ8176373 GB
Llama 2 7B GGUF20878122 GB
Llama 2 7B AWQ1727323 GB
Llama 2 7B Hf Codealpaca 4bit170 GB
Nb Sau 7B 8K Step100k1813 GB
Llama 2 7B GGML2197782 GB
Llama 2 Medical Consultation460 GB

Best Alternatives to Llama 2 7B Hf

Best Alternatives
Context / RAM
Downloads
Likes
1241024K / 16.1 GB930
1621024K / 16.1 GB600
1571024K / 16.1 GB1010
1181024K / 16.1 GB150
A5.41024K / 16.1 GB120
A3.41024K / 16.1 GB130
A6 L1024K / 16.1 GB2010
A2.41024K / 16.1 GB120
M1024K / 16.1 GB1270
2 Very Sci Fi1024K / 16.1 GB3170

Rank the Llama 2 7B Hf 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? 53348 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