Downloads · 30 days
23
0% of all-time downloads
umarigan/LLama-3-8B-Instruction-tr
LLama-3-8B-Instruction-tr is a text generation model from umarigan. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
- Developed by: umarigan - License: apache-2.0 - Finetuned from model : unsloth/llama-3-8b-bnb-4bit
Downloads · 30 days
23
0% of all-time downloads
All-time downloads
47.2K
Public
Repo size
32.1 GB
Likes
6
Public
Click a slice to open those files.
.bin16.1 GB · 100%
From the Hugging Face model README
This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("umarigan/LLama-3-8B-Instruction-tr")
model = AutoModelForCausalLM.from_pretrained("umarigan/LLama-3-8B-Instruction-tr")
alpaca_prompt = """
Görev:
{}
Girdi:
{}
Cevap:
{}"""
inputs = tokenizer(
[
alpaca_prompt.format(
"bir haftada 3 kilo verebileceğim 5 öneri sunabilir misin?", # Görev
"", # Girdi
"", # Cevap - boş bırakın!
)
], return_tensors = "pt")
outputs = model.generate(**inputs, max_new_tokens = 64, use_cache = True)
tokenizer.batch_decode(outputs)
Output:
<|begin_of_text|> Görev: bir haftada 3 kilo verebileceğim 5 öneri sunabilir misin?
Girdi:
Cevap:
1. Yemeklerinizde daha az tuz kullanın. 2. Daha fazla sebze ve meyve tüketin. 3. Daha fazla su için. 4. Daha fazla egzersiz yapın. 5. Daha fazla uyku alın.<|end_of_text|>