Uploaded model

  • Developed by: umarigan
  • License: apache-2.0
  • Finetuned from model : unsloth/llama-3-8b-bnb-4bit

This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.

Usage Examples


# 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|>
Downloads last month
35
Inference Providers NEW

Model tree for umarigan/LLama-3-8B-Instruction-tr

Finetuned
(3114)
this model

Dataset used to train umarigan/LLama-3-8B-Instruction-tr

Spaces using umarigan/LLama-3-8B-Instruction-tr 9

Collection including umarigan/LLama-3-8B-Instruction-tr