Llama 2 7B Hf by meta-llama

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

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

Llama 2 7B Hf Benchmarks

Llama 2 7B Hf (meta-llama/Llama-2-7b-hf)

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
Updated2025-03-12
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 GPTQ81220733 GB
Llama 2 7B GGUF190489942 GB
Llama 2 7B Hf Codealpaca 4bit1100 GB
Nb Sau 7B 8K Step100k11613 GB
Llama 2 7B AWQ167113 GB
Llama 2 7B GGML2205212 GB
Llama 2 Medical Consultation4980 GB

Best Alternatives to Llama 2 7B Hf

Best Alternatives
Context / RAM
Downloads
Likes
A6 L1024K / 16.1 GB2010
M1024K / 16.1 GB1270
1571024K / 16.1 GB1010
1241024K / 16.1 GB930
1621024K / 16.1 GB600
2 Very Sci Fi1024K / 16.1 GB3170
1181024K / 16.1 GB150
...1M 1000000ctx AEZAKMI 3 1 17021024K / 13.5 GB131
... Qwen2.5llamaify 7B V23.1 200K195K / 15.2 GB21613
LlamaStock 8B128K / 16.1 GB131

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? 44949 in total.

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