Downloads · 30 days
0
hosasmek/qwen2.5-7b-instruct-reasoning-tr
qwen2.5-7b-instruct-reasoning-tr is a machine learning model from hosasmek. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
Bu model, Alibaba'nın Qwen 2.5 7B Instruct taban modeli üzerine Türkçe dilinde doğal akıl yürütme yeteneği kazandırmak amacıyla fine-tune edilmiştir. ()
Downloads · 30 days
0
Access
Public
Updated Apr 17, 2025
Parameters
7.6B
15.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15.2 GB · 100%
From the Hugging Face model README
Bu model, Alibaba'nın Qwen 2.5 7B Instruct taban modeli üzerine Türkçe dilinde doğal akıl yürütme yeteneği kazandırmak amacıyla fine-tune edilmiştir. (*)
(*) Model test aşamasındadır, finetune veri seti ve detaylı bilgi ilerde paylaşılacaktır.
Qwen/Qwen2.5-7B-Instructfrom transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("hosasmek/qwen2.5-7b-instruct-reasoning-tr", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("hosasmek/qwen2.5-7b-instruct-reasoning-tr", trust_remote_code=True)
messages = [
{"role": "system", "content": "Sen, bilgili ve yardımsever bir yapay zekâ asistanısın."},
{"role": "user", "content": "Bir tünelin içinde ses neden yankılanır?"}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(output[0], skip_special_tokens=True))