Oğuz-MoE-354M-V3 is a highly optimized, 354M-parameter Mixture of Experts (MoE) language model designed for Turkish and English. Built upon the Oğuz V2 architecture, this version undergoes a rigorous continued pretraining pipeline featuring Orthogonality Loss for expert specialization, Dynamic NTK RoPE scaling for 4096 context extension, and Domain-Adaptive Math Injection using translated GSM8K.
Evaluated using the EleutherAI LM Evaluation Harness (0-shot, deterministic seed 1234).
| Benchmark | Category | Oguz V2 (Base) | Oguz V3 | Delta |
|---|---|---|---|---|
| MMLU | General Knowledge (EN) | 23.02% | 26.57% | +3.55% |
| ARC-Challenge | Hard Science (EN) | 17.92% | 19.71% | +1.79% |
| XNLI (tr) | Logical Inference (TR) | 34.78% | 35.94% | +1.16% |
| XCOPA (tr) | Causal Logic (TR) | 53.60% | 53.80% | +0.20% |
| Winogrande | Coreference (EN) | 50.51% | 50.04% | -0.47% |
| HellaSwag | Commonsense (EN) | 26.93% | 26.10% | -0.83% |
| Belebele (tr) | Reading Comp (TR) | 29.22% | 26.56% | -2.66% |
| GSM8K | Math Generation (EN) | 0.68% | 0.08% | -0.60% |
Note: As a Base model, generative tasks like GSM8K score near zero due to the lack of instruction tuning. The model has internalized the logic but requires SFT to format answers. The drop in Belebele represents a mild trade-off from heavily weighting the training mix toward textbooks and logic.
Because Oguz uses a custom MoE implementation, you must pass trust_remote_code=True.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Yigit-Karaman/Oguz-MoE-354M-V3-Base"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
torch_dtype=torch.bfloat16,
device_map="cuda"
)
prompt = "### Math Problem\nA farm has 15 cows and 20 sheep. If the farmer buys 5 more cows, how many total animals are there?\n\n### Solution\n"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(inputs.input_ids, max_new_tokens=100, temperature=0.1)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))