Downloads · 30 days
0
0% of all-time downloads
chaitanya42/Llama-2-7b-chat-finetune
Llama-2-7b-chat-finetune is a text generation model from chaitanya42. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
This model is a fine-tuned version of NousResearch/Llama-2-7b-chat-hf using the mlabonne/guanaco-llama2-1k dataset. It has been fine-tuned using LoRA (Low-Rank Adaptation) with the PEFT library and the SFTTrainer from…
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
11
Public
Repo size
27 GB
Likes
0
Public
Click a slice to open those files.
.bin13.5 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of NousResearch/Llama-2-7b-chat-hf using the mlabonne/guanaco-llama2-1k dataset. It has been fine-tuned using LoRA (Low-Rank Adaptation) with the PEFT library and the SFTTrainer from TRL.
This model is intended for text generation and instruction following tasks. It has been fine-tuned on a dataset of 1,000 instruction-following examples.
This model can be used for a variety of text generation tasks, including:
Limitations:
This model was fine-tuned using the following parameters:
You can use this model with the following code:
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
model_name = "chaitanya42/Llama-2-7b-chat-finetune"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
prompt = "What is a large language model?"
pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length=200)
result = pipe(f"[INST] {prompt} [/INST]")
print(result[0]['generated_text'])