Downloads · 30 days
394
1% of all-time downloads
TURKCELL/Turkcell-LLM-7b-v1
Turkcell-LLM-7b-v1 is a text generation model from TURKCELL. 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.
<img src="https://huggingface.co/TURKCELL/Turkcell-LLM-7b-v1/resolve/main/icon.jpeg" alt="Turkcell LLM" width="300"/
Downloads · 30 days
394
1% of all-time downloads
All-time downloads
68.2K
Public
Parameters
7.4B
19.2 GB on disk
Likes
99
Public
Click a slice to open those files.
.safetensors14.8 GB · 100%
From the Hugging Face model README
<img src="https://huggingface.co/TURKCELL/Turkcell-LLM-7b-v1/resolve/main/icon.jpeg" alt="Turkcell LLM" width="300"/>
This model is an extended version of a Mistral-based Large Language Model (LLM) for Turkish. It was trained on a cleaned Turkish raw dataset containing 5 billion tokens. The training process involved using the DORA method initially. Following this, we utilized Turkish instruction sets created from various open-source and internal resources for fine-tuning with the LORA method.
lora_alpha: 128lora_dropout: 0.05r: 64target_modules: "all-linear"lora_alpha: 128lora_dropout: 0.05r: 256target_modules: "all-linear"
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda" # the device to load the model onto
model = AutoModelForCausalLM.from_pretrained("TURKCELL/Turkcell-LLM-7b-v1")
tokenizer = AutoTokenizer.from_pretrained("TURKCELL/Turkcell-LLM-7b-v1")
messages = [
{"role": "user", "content": "Türkiye'nin başkenti neresidir?"},
]
encodeds = tokenizer.apply_chat_template(messages, return_tensors="pt")
eos_token = tokenizer("<|im_end|>",add_special_tokens=False)["input_ids"][0]
model_inputs = encodeds.to(device)
model.to(device)
generated_ids = model.generate(model_inputs,
max_new_tokens=1024,
do_sample=True,
eos_token_id=eos_token)
decoded = tokenizer.batch_decode(generated_ids)
print(decoded[0])