Stack Llama 2 by kashif

 ยป  All LLMs  ยป  kashif  ยป  Stack Llama 2   URL Share it on

  Autotrain compatible Dataset:lvwerra/stack-exchange...   En   Endpoints compatible   Llama   Pytorch   Region:us   Rlhf   Sharded   Trl
Model Card on HF ๐Ÿค—: https://huggingface.co/kashif/stack-llama-2 

Stack Llama 2 Benchmarks

Stack Llama 2 (kashif/stack-llama-2)
๐ŸŒŸ Advertise your project ๐Ÿš€

Stack Llama 2 Parameters and Internals

Model Type 
text generation, long-form question answering
Use Cases 
Areas:
research, educational
Applications:
long-form question-answering on topics like programming, mathematics, physics
Primary Use Cases:
generate human-like responses to Stack Exchange-style questions
Limitations:
model may inherit biases, generate incorrect answers, or be offensive
Considerations:
Answers should be validated through the use of external sources
Additional Notes 
For more information, check out the provided blog post and GitHub example.
Supported Languages 
en (English)
Training Details 
Data Sources:
lvwerra/stack-exchange-paired
Methodology:
Trained using Direct Preference Optimization (DPO) fine-tuning after initial fine-tuning with Stack Exchange question-answer pairs.
Responsible Ai Considerations 
Fairness:
The model retains biases present in Stack Exchange dataset and the original LLaMA model
Accountability:
Developers should ensure answer validation through external sources
Mitigation Strategies:
Recommendations include validating answers and considering disparities in data contributors vs users.
Input Output 
Input Format:
Question: [question text] Answer:
Accepted Modalities:
text
Output Format:
language text
LLM NameStack Llama 2
Repository ๐Ÿค—https://huggingface.co/kashif/stack-llama-2 
Model Size7b
Required VRAM13.5 GB
Updated2025-08-23
Maintainerkashif
Model Typellama
Model Files  10.0 GB: 1-of-2   3.5 GB: 2-of-2
Supported Languagesen
Model ArchitectureLlamaForCausalLM
Licensebigscience-openrail-m
Context Length4096
Model Max Length4096
Transformers Version4.32.0.dev0
Tokenizer ClassLlamaTokenizer
Beginning of Sentence Token<s>
End of Sentence Token</s>
Unk Token<unk>
Vocabulary Size32000
Torch Data Typebfloat16

Best Alternatives to Stack Llama 2

Best Alternatives
Context / RAM
Downloads
Likes
A6 L1024K / 16.1 GB2010
A3.41024K / 16.1 GB130
A5.41024K / 16.1 GB120
A2.41024K / 16.1 GB120
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
Note: green Score (e.g. "73.2") means that the model is better than kashif/stack-llama-2.

Rank the Stack Llama 2 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? 50856 in total.

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