Downloads · 30 days
7
4% of all-time downloads
BrokenSoul/llama-2-7b-miniguanaco
llama-2-7b-miniguanaco is a text generation model from BrokenSoul. Use it when you need the model to write or continue text. It is set up for transformers.
This is a test model finetuned for learning.
Downloads · 30 days
7
4% of all-time downloads
All-time downloads
198
Public
Repo size
13.5 GB
Likes
0
Public
Click a slice to open those files.
.bin13.5 GB · 100%
From the Hugging Face model README
This is a test model finetuned for learning.
from transformers import (
AutoTokenizer,
pipeline
)
model_name = "BrokenSoul/llama-2-7b-miniguanaco"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
tokenizer.pad_token = tokenizer.eos_token
tokenizer.padding_side = "right"
prompt = "What is a large language model?"
pipe = pipeline(task="text-generation", model=model_name, tokenizer=tokenizer, max_length=200)
result = pipe(f"<s>[INST] {prompt} [/INST]")
print(result[0]['generated_text'])
mlabonne/guanaco-llama2-1k dataset.
It was trained following the maximelabonne's guide. all credits for him.
license: apache-2.0 language: