Views
No views yet

[!TIP] Try the model instantly in our chat:
👉 https://model.cosmosytu.com/
No setup needed — you can test Turkish-Gemma-9b-T1 directly in the chatbot.
| Model Name | Win Rate |
|---|---|
| ytu-ce-cosmos/Turkish-Gemma-9b-T1 | 68.65% |
| ytu-ce-cosmos/Turkish-Gemma-9b-T0 | 67.58% |
| Qwen3-32B | 67.20% |
| Qwen3-14B | 67.20% |
| google/gemma-3-27b-it | 65.81% |
| google/gemma-3-12b-it | 59.72% |
| google/gemma-2-27b-it | 52.24% |
| ytu-ce-cosmos/Turkish-Gemma-9b-v0.1 | 52.12% |
| google/gemma-2-9b-it | 48.94% |

| Model Name | Gsm8K |
|---|---|
| Qwen/Qwen2.5-72B-Instruct | 83.60 |
| Qwen/Qwen2.5-32B-Instruct | 77.83 |
| google/gemma-3-27b-it | 77.52 |
| ytu-ce-cosmos/Turkish-Gemma-9b-T1 | 77.41 |
| Qwen/Qwen2.5-14B-it | 76.77 |
| google/gemma-2-27b-it | 76.54 |
| ytu-ce-cosmos/Turkish-Gemma-9b-v0.1 | 73.42 |
| google/gemma-3-12b-it | 72.06 |
| meta-llama/Llama-3-1-70B-Instruct | 66.13 |
| Qwen/Qwen2.5-7B-Instruct | 64.16 |
| google/gemma-2-9b-it | 63.10 |
| ytu-ce-cosmos/Turkish-Llama-8b-DPO-v0.1 | 59.87 |
Note: When running Turkish evaluations on well-known benchmarks, it is important to adjust the evaluation configurations specifically for reasoning models. Default settings may not reflect the true performance, as factors like context handling and prompt formatting can significantly affect results. Carefully tuning these configs ensures fairer and more accurate comparisons across models.
1from transformers import AutoTokenizer, AutoModelForCausalLM
2import torch
3import transformers
4
5model_id = "ytu-ce-cosmos/Turkish-Gemma-9b-T1"
6tokenizer = AutoTokenizer.from_pretrained(model_id)
7model = AutoModelForCausalLM.from_pretrained(
8 model_id,
9 torch_dtype=torch.bfloat16,
10 device_map="auto",
11)
12
13pipeline = transformers.pipeline(
14 "text-generation",
15 model=model_id,
16 model_kwargs={"torch_dtype": torch.bfloat16},
17 device_map="auto",
18)
19messages = [
20 {"role": "user", "content": "İstanbul halkı, timsahları evcilleştirip balkonlarda beslemeyi alışkanlık hale getirmiştir. Hangi timsah türleri en çok tercih edilir?"}
21]
22input_ids = tokenizer.apply_chat_template(
23 messages,
24 add_generation_prompt=True,
25 return_tensors="pt"
26).to(model.device)
27terminators = [
28 pipeline.tokenizer.eos_token_id,
29 pipeline.tokenizer.convert_tokens_to_ids("<end_of_turn>")
30]
31outputs = model.generate(
32 input_ids,
33 max_new_tokens=4096,
34 eos_token_id=terminators,
35 do_sample=False,
36)
37response = outputs[0][input_ids.shape[-1]:]
38print(tokenizer.decode(response, skip_special_tokens=True))
39
40## <think> .... </think>
41## Bu soru gerçek dışı bir senaryo içeriyor. **İstanbul'da veya herhangi bir kentsel alanda timsahların evcilleştirilip balkonlarda beslenmesi mümkün değildir ve bu bir alışkanlık değildir.
42UseTemperature=0.6,TopP=0.95,TopK=20, andMinP=0(the default setting ingeneration_config.json). DO NOT use greedy decoding, as it can lead to performance degradation and endless repetitions.
max_new_tokens. You can increase the repetition penalty and also adjust the presence_penalty parameter (between 0 and 2) to reduce endless repetitions. However, using a higher value may occasionally result in language mixing and a slight decrease in model performance