Downloads · 30 days
207
46% of all-time downloads
erenzeytunn/Llama-3.1-8B-Turkish
Llama-3.1-8B-Turkish is a text generation model from erenzeytunn. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.1.
Built with Llama. A Turkish language adaptation of meta-llama/Llama-3.1-8B, produced end-to-end on a single RTX 4090 (24 GB): tokenizer expansion → continued pretraining (QLoRA) → instruction fine-tuning. This is a re…
Downloads · 30 days
207
46% of all-time downloads
All-time downloads
454
Public
Parameters
8.1B
16.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors16.2 GB · 100%
From the Hugging Face model README
Built with Llama. A Turkish language adaptation of meta-llama/Llama-3.1-8B, produced end-to-end on a single RTX 4090 (24 GB): tokenizer expansion → continued pretraining (QLoRA) → instruction fine-tuning. This is a research / portfolio model demonstrating the full adaptation pipeline, not a production system.
lm_head alongside LoRA to fix end-of-turn stopping.meta-llama/Llama-3.1-8B-InstructEvaluated on held-out Turkish and recognized multilingual benchmarks (lm-evaluation-harness, 0-shot).
| Metric | This model | Base 3.1-8B | 3.1-8B-Instruct |
|---|---|---|---|
| Turkish bits/byte (↓ better) | 0.786 | 0.852 | 0.912 |
| Tokens/word on Turkish (↓ better) | 2.06 | 2.33 | 2.33 |
| XCOPA-tr (acc) | 0.636 | – | 0.632 |
| XNLI-tr (acc) | 0.460 | – | 0.474 |
Headline wins (the axes a language-adaptation targets):
Honest limitations: an 8B model cannot out-know a same-size, more heavily post-trained instruct model. This model trails Instruct on knowledge (MMLU) and reading comprehension (Belebele), and — like most small models — is unreliable at symbolic math and can hallucinate confidently. Use with a guardrail; not for high-stakes use.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
m = "erenzeytunn/Llama-3.1-8B-Turkish"
tok = AutoTokenizer.from_pretrained(m)
model = AutoModelForCausalLM.from_pretrained(m, torch_dtype=torch.bfloat16, device_map="auto")
msgs = [{"role": "user", "content": "Türkiye'nin başkenti neresidir ve kısaca tarihinden bahset."}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=256, do_sample=True, temperature=0.3, top_p=0.9)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
Governed by the Llama 3.1 Community License. Built with Llama. Use is subject to Meta's Acceptable Use Policy.