Downloads · 30 days
3
6% of all-time downloads
gunbaz/twin-llama-3.1-8b
twin-llama-3.1-8b is a machine learning model from gunbaz. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
This model is a fine-tuned version of meta-llama/Meta-Llama-3.1-8B-Instruct using LoRA (Low-Rank Adaptation).
Downloads · 30 days
3
6% of all-time downloads
All-time downloads
53
Public
Repo size
185 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 91%
From the Hugging Face model README
This model is a fine-tuned version of meta-llama/Meta-Llama-3.1-8B-Instruct using LoRA (Low-Rank Adaptation).
This model is designed to generate text in the style of Yaşar Kemal, the renowned Turkish novelist.
from peft import AutoPeftModelForCausalLM
from transformers import AutoTokenizer
model = AutoPeftModelForCausalLM.from_pretrained(
"gunbaz/twin-llama-3.1-8b",
load_in_4bit=True,
)
tokenizer = AutoTokenizer.from_pretrained("gunbaz/twin-llama-3.1-8b")
# Generate
prompt = "Yaşar Kemal'in üslubuyla doğayı anlat."
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Apache 2.0 (following base model license)