Views
No views yet
ytu-ce-cosmos/Turkish-Llama-8b-DPO-v0.1 using the GRPO method on distilled Q&A data of Qwen3 model. It excels at open-ended reasoning tasks in Turkish, particularly STEM, history, and cultural questions.
| Model Name | Score (%) | Description |
|---|---|---|
| RefinedNeuro/RN_TR_R2 | 82.4 | Upgraded from RN_TR_R1 via GRPO on distilled Qwen3 data |
| Qwen3-8B | 76.8 | Off-the-shelf Qwen3-8B |
| RefinedNeuro/RN_TR_R1 | 64.8 | Baseline Turkish-fine-tuned model |
| ytu-ce-cosmos/Turkish-Llama-8b-DPO-v0.1 | 63.2 | Turkish-adapted Llama-8B via direct preference optimization |
| Meta-Llama-3.1-8B-Instruct | 63.2 | Meta’s Llama-3.1-8B with instruct tuning |
ytu-ce-cosmos/Turkish-Llama-8b-DPO-v0.1unslothunsloth==2025.3.18pip install unsloth==2025.3.181from unsloth import FastLanguageModel
2from transformers import TextStreamer
3
4# Load the model and tokenizer
5model, tokenizer = FastLanguageModel.from_pretrained(
6 model_name="RefinedNeuro/RN_TR_R2",
7 max_seq_length=8192,
8 load_in_4bit=True,
9)
10
11FastLanguageModel.for_inference(model)
12
13SYSTEM_PROMPT = """
14Sana sorulan sorulara cevap verirken, adım adım düşün ve gerekçelendir.
15Önce <think></think> tagları arasında adım adım düşün.
16Sonra düşünme adımlarını özetle.
17En son \\boxed{} içerisinde sorunun cevabını ver.
18"""
19
20def answer_question(question: str):
21 messages = [
22 {'role': 'system', 'content': SYSTEM_PROMPT},
23 {'role': 'user', 'content': question},
24 ]
25 inputs = tokenizer.apply_chat_template(
26 messages, tokenize=True, add_generation_prompt=True, return_tensors="pt"
27 ).to("cuda")
28
29 streamer = TextStreamer(tokenizer)
30 print("-" * 60)
31 _ = model.generate(
32 input_ids=inputs,
33 streamer=streamer,
34 max_new_tokens=2048,
35 temperature=0.6,
36 top_p=0.1,
37 )
38
39# Examples
40answer_question("Türkiye'nin başkenti neredir?")
41answer_question("6 ve 2'nin çarpımı nedir?")> **Q:** f(x) = 3x⁴ - 2x³ + 5x - 7 fonksiyonunun x = 1 noktasındaki türevini bulunuz.
>
> **A:** <think>
1. Adım: f(x) = 3x⁴ - 2x³ + 5x - 7 fonksiyonunun türevini bulmak için, önce f(x)'nin türevini bulmamız gerekmektedir.
2. Adım: Türevi bulmak için fonksiyonu parçalara ayırarak analiz edeceğiz.
f(x) = 3x⁴ - 2x³ + 5x - 7
3. Adım: Türevi bulmak için her terimi ayrı ayrı türevini buluyoruz.
- 3x⁴: Türevi 12x³'dür.
- -2x³: Türevi -6x²'dir.
- 5x: Türevi 5'dir.
- -7: Türevi 0'dır (çünkü sabit bir sayıdır).
4. Adım: Türevi bulmak için elde edilen türevleri birleştiriyoruz.
f'(x) = 12x³ - 6x² + 5
5. Adım: Şimdi x = 1 yerine koyarak f'(x)'nin türevini hesaplayacağız.
f'(1) = 12(1)³ - 6(1)² + 5
f'(1) = 12(1) - 6(1) + 5
f'(1) = 12 - 6 + 5
f'(1) = 11
6. Adım: x = 1 noktasındaki türevi 11 olarak bulduk.
\boxed{11}
</think>
\boxed{11}
1@misc{farsak2025rn_tr_r2,
2 title = {RefinedNeuro/RN\_TR\_R2: A Turkish Reasoning Model},
3 author = {Mehmet Can Farsak and Serhat Atayeter and RefinedNeuro},
4 year = {2025},
5 howpublished = {\url{https://huggingface.co/RefinedNeuro/RN_TR_R2}},
6 license = {Apache-2.0}
7}