Sungur-3x9B-T1 is a Domain-Specialized Sparse Mixture of Experts (MoE) model designed for high-performance Turkish text generation. It is built upon the robust google/gemma-2-9b-it as its base foundation.
This model was constructed using Gemma-2-MoE, a custom library I developed to build Gemma 2 based MoE models. Unlike traditional merges that rely purely on random router initialization, this model uses Semantic Router Initialization followed by a targeted fine-tuning stage.
It combines the strengths of three 9B models—including my own Sungur-9B—into a single efficient inference engine.
Note on Benchmark Results: The evaluation results show a performance level that is generally consistent with the strongest individual expert models, rather than a significant leap forward often seen in fully trained MoE models. This is primarily because the model's core expert weights were frozen during the brief fine-tuning stage; only the router was trained to route tokens to the correct specialist. For future iterations, a full fine-tuning pass across all expert weights and the router is anticipated. This will allow the distinct expert models to learn to cooperate and complement each other, leading to a substantial gain in overall benchmark performance and cross-domain synergy.
Expert Composition (Top-2 Routing)
The model dynamically routes each token to the top 2 experts, combining logic, academic knowledge, and creative nuance.
Using my Gemma-2-MoE builder, the initial router weights were calculated using Concept Algebra on the embedding space.
$$\text{Expert Vector} = \text{Mean}(\text{Positive Prompts}) - 0.5 \times \text{Mean}(\text{Negative Prompts})$$
2. Router Fine-Tuning
After construction, the base model and expert weights were frozen. Only the router (gating) network was fine-tuned for 2 epochs using a synthetic dataset of 1,500 samples. This dataset contained prompt-expert pairs (e.g., a Python question paired with the Reasoner expert) to sharpen the router's decision-making and ensure prompts are sent to the correct domain specialist.
Build Configuration
This model was built using the following YAML configuration, which defines the experts and semantic routing logic:
See MoE config
yaml
1base_model: google/gemma-2-9b-it
2dtype: bfloat16
3num_experts_per_tok:245experts:6# EXPERT 0: THE REASONER (Logic & Code)7-source_model: ytu-ce-cosmos/Turkish-Gemma-9b-T1
8positive_prompts:9-"matematiksel çözüm"10-"python kodu yaz"11-"algoritma kur"12-"türev hesapla"13-"javascript fonksiyonu"14-"mantık sorusu"15-"zincirleme düşünce"16-"write python code"17-"solve this equation"18-"calculate derivative"19negative_prompts:20-"şiir yaz"21-"roman anlat"22-"günlük sohbet"23-"write a poem"24-"tell me a story"2526# EXPERT 1: THE SCHOLAR (Knowledge & Facts)27-source_model: ytu-ce-cosmos/Turkish-Gemma-9b-v0.1
28positive_prompts:29-"tarihsel olay nedir"30-"biyolojik süreç"31-"coğrafi bilgi"32-"fizik kanunları"33-"akademik makale özeti"34-"what is the history of"35-"scientific facts"36-"laws of physics"37negative_prompts:38-"python kodu"39-"hayal et"40-"masal anlat"41-"write code"4243# EXPERT 2: THE CREATIVE CHATBOT (Chat & Creative)44-source_model: suayptalha/Sungur-9B
45positive_prompts:46-"merhaba nasılsın"47-"bana bir hikaye anlat"48-"duygusal bir şiir yaz"49-"rol yapma oyunu"50-"arkadaşça sohbet"51-"hello how are you"52-"tell me a bedtime story"53-"write a poem about love"54negative_prompts:55-"integral hesapla"56-"c++ kodu"57-"calculate integral"58-"compile error"
Usage
To use this model, you need to set trust_remote_code=True.