sixfingerdev commited on
Commit
3e02e98
·
verified ·
1 Parent(s): 06f1504

Add English version of model card before Turkish

Browse files
Files changed (1) hide show
  1. README.md +81 -0
README.md CHANGED
@@ -20,6 +20,87 @@ base_model: sixfingerdev/kayra-1-exp
20
 
21
  # 🧠 Kayra-1-Thinking-Exp
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  **Düşünen Türkçe model — Chain-of-Thought reasoning fine-tune of Kayra-1-exp**
24
 
25
  Bu model, `sixfingerdev/kayra-1-exp` (86.4M parametre) üzerine **chain-of-thought reasoning** formatında fine-tune edilmiş deneysel bir sürümdür. `<|think|>` etiketleri arasında adım adım muhakeme yapıp ardından nihai cevabı üretmeyi öğrenir.
 
20
 
21
  # 🧠 Kayra-1-Thinking-Exp
22
 
23
+ **A thinking Turkish language model — Chain-of-Thought reasoning fine-tune of Kayra-1-exp**
24
+
25
+ This is an experimental fine-tune of [sixfingerdev/kayra-1-exp](https://huggingface.co/sixfingerdev/kayra-1-exp) (86.4M parameters) on a **chain-of-thought reasoning** dataset. It learns to produce step-by-step reasoning within `<|think|>` tags before generating the final answer.
26
+
27
+ ### Model Details
28
+
29
+ | Property | Value |
30
+ |----------|-------|
31
+ | **Base Model** | [sixfingerdev/kayra-1-exp](https://huggingface.co/sixfingerdev/kayra-1-exp) |
32
+ | **Parameters** | ~86.4M (106.8M with copied tied embeddings) |
33
+ | **Architecture** | Transformer Decoder (GPT-style), 10 layers, 640 hidden, 10 heads |
34
+ | **Context Length** | 512 tokens |
35
+ | **Vocabulary** | 32,000 BPE tokens |
36
+ | **Training Data** | [kayra-thinking-data](https://huggingface.co/datasets/sixfingerdev/kayra-thinking-data) (4,191 Turkish reasoning examples) |
37
+ | **Version** | Experimental (exp) |
38
+
39
+ ### Training
40
+
41
+ | Hyperparameter | Value |
42
+ |----------------|-------|
43
+ | Epochs | 5 |
44
+ | Batch Size | 8 (per device) |
45
+ | Learning Rate | 5e-5 |
46
+ | Scheduler | Cosine (20 steps warmup) |
47
+ | Optimizer | AdamW |
48
+ | Precision | FP16 |
49
+ | Train / Eval Split | 95% / 5% (3,981 / 210) |
50
+ | Total Steps | 2,490 |
51
+
52
+ Eval loss decreased from 2.73 → **2.25** over 5 epochs.
53
+
54
+ ### Dataset
55
+
56
+ Trained on [kayra-thinking-data](https://huggingface.co/datasets/sixfingerdev/kayra-thinking-data): a curated collection of 4,191 Turkish reasoning examples combining 4 sources — duxx (226), efe (350), Gemma-4 generated (32), and ThinkingData-200K-Turkish (~3,583).
57
+
58
+ Format:
59
+ ```text
60
+ ### Soru: <question>
61
+
62
+ ### Yanit: <|think|><step-by-step reasoning></|think|><final answer>
63
+ ```
64
+
65
+ ### Usage
66
+
67
+ ```python
68
+ from transformers import AutoModelForCausalLM, AutoTokenizer
69
+
70
+ model = AutoModelForCausalLM.from_pretrained(
71
+ "sixfingerdev/kayra-1-thinking-exp",
72
+ trust_remote_code=True
73
+ )
74
+ tokenizer = AutoTokenizer.from_pretrained("sixfingerdev/kayra-1-thinking-exp")
75
+
76
+ prompt = "### Soru: Türkiye'nin başkenti neresidir?\n\n### Yanit: <|think|>"
77
+ inputs = tokenizer(prompt, return_tensors="pt")
78
+
79
+ outputs = model.generate(
80
+ **inputs,
81
+ max_new_tokens=120,
82
+ do_sample=True,
83
+ temperature=0.3,
84
+ top_k=40,
85
+ repetition_penalty=1.2,
86
+ pad_token_id=tokenizer.pad_token_id,
87
+ )
88
+ ```
89
+
90
+ Recommended generation parameters: `temperature=0.3`, `top_k=40`, `repetition_penalty=1.2`, `max_new_tokens=100-150`.
91
+
92
+ ### Known Limitations
93
+
94
+ 1. **Model capacity**: 86M parameters is too small for reliable complex reasoning. The model learns the *format* of thinking but struggles with *correct logical inference*.
95
+ 2. **Function-call contamination**: The ThinkingData-200K source contains tool/API call examples. The model may occasionally generate function-call syntax (`get_name_by_id`, `tool_call`).
96
+ 3. **Repetition**: Like most small models, it can enter repetitive loops. Use `repetition_penalty` to mitigate.
97
+ 4. **Tokenizer spacing**: BPE subword tokenization can introduce spaces in Turkish words ("soruyor" → "sor uyor", "düşüneyim" → "düşün eyim").
98
+ 5. **No factuality guarantee**: This is an experimental model. Do not use in production without verification.
99
+
100
+ ---
101
+
102
+ # 🧠 Kayra-1-Thinking-Exp (Türkçe)
103
+
104
  **Düşünen Türkçe model — Chain-of-Thought reasoning fine-tune of Kayra-1-exp**
105
 
106
  Bu model, `sixfingerdev/kayra-1-exp` (86.4M parametre) üzerine **chain-of-thought reasoning** formatında fine-tune edilmiş deneysel bir sürümdür. `<|think|>` etiketleri arasında adım adım muhakeme yapıp ardından nihai cevabı üretmeyi öğrenir.