Downloads · 30 days
544
9% of all-time downloads
QuantFactory/Turkcell-LLM-7b-v1-GGUF
Turkcell-LLM-7b-v1-GGUF is a machine learning model from QuantFactory. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
544
9% of all-time downloads
All-time downloads
5.8K
Public
Repo size
66 GB
Likes
3
Public
Click a slice to open those files.
.gguf66 GB · 100%
From the Hugging Face model README
This is quantized version of TURKCELL/Turkcell-LLM-7b-v1 created using llama.cpp
<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])