Downloads · 30 days
11
16% of all-time downloads
onurkanbkrc/Llama-2-7b-oasst-sft
Llama-2-7b-oasst-sft is a text generation model from onurkanbkrc. Use it when you need the model to write or continue text. The card lists the license as llama2.
This is a fine-tuned version of meta-llama/Llama-2-7b-hf trained on the OpenAssistant/oasst1 dataset using supervised fine-tuning (SFT) with LoRA.
Downloads · 30 days
11
16% of all-time downloads
All-time downloads
69
Public
Parameters
6.8B
4.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4.2 GB · 100%
How the weights are stored.
U86.5B · 95%
From the Hugging Face model README
This is a fine-tuned version of meta-llama/Llama-2-7b-hf trained on the OpenAssistant/oasst1 dataset using supervised fine-tuning (SFT) with LoRA.
This model is designed for conversational AI applications where helpful, informative responses are needed. It can be used for:
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
import torch
# Load model and tokenizer
model_name = "onurkanbkrc/Llama-2-7b-oasst-sft"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
device_map="auto",
torch_dtype=torch.bfloat16
)
# Create pipeline
pipe = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer
)
# Format prompt
prompt = """### User:
What is the capital of France?
### Assistant:
"""
# Generate response
output = pipe(
prompt,
max_new_tokens=256,
do_sample=True,
temperature=0.7,
top_p=0.9
)
print(output[0]["generated_text"])
The model was trained on the OpenAssistant Conversations Dataset (OASST1), which contains:
Conversations were formatted as:
### User:
[user message]
### Assistant:
[assistant response]
Hardware: Google Colab GPU (A100/T4)
Training Hyperparameters:
LoRA Configuration:
Quantization:
Qualitative evaluation shows the fine-tuned model produces more helpful, contextual, and assistant-like responses compared to the base Llama-2-7b model.
If you use this model, please cite:
@misc{llama2-oasst-sft,
author = {Onur Kanbakirci},
title = {Llama-2-7b Fine-tuned on OpenAssistant},
year = {2026},
publisher = {HuggingFace Hub},
url = {https://huggingface.co/onurkanbkrc/Llama-2-7b-oasst-sft}
}
@article{touvron2023llama2,
title={Llama 2: Open Foundation and Fine-Tuned Chat Models},
author={Hugo Touvron and Louis Martin and Kevin Stone and others},
journal={arXiv preprint arXiv:2307.09288},
year={2023}
}
@article{dettmers2023qlora,
title={QLoRA: Efficient Finetuning of Quantized LLMs},
author={Tim Dettmers and Artidoro Pagnoni and Ari Holtzman and Luke Zettlemoyer},
journal={arXiv preprint arXiv:2305.14314},
year={2023}
}
This model is subject to the Llama 2 Community License Agreement.
The training code and methodology are provided for educational purposes.
onurkanbkrc
For questions or issues, please open an issue on the model repository.