suayptalha commited on
Commit
946cd63
·
verified ·
1 Parent(s): 1d5f579

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +56 -177
README.md CHANGED
@@ -11,200 +11,79 @@ language:
11
  base_model:
12
  - diffutron/DiffutronLM-0.3B-Base
13
  pipeline_tag: text-generation
 
14
  ---
 
15
 
 
16
 
17
- # Model Card for Model ID
18
 
19
- <!-- Provide a quick summary of what the model is/does. -->
20
 
 
 
 
 
 
 
 
21
 
 
22
 
23
- ## Model Details
24
 
25
- ### Model Description
 
26
 
27
- <!-- Provide a longer summary of what this model is. -->
 
 
 
 
28
 
29
- This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
30
 
31
- - **Developed by:** [More Information Needed]
32
- - **Funded by [optional]:** [More Information Needed]
33
- - **Shared by [optional]:** [More Information Needed]
34
- - **Model type:** [More Information Needed]
35
- - **Language(s) (NLP):** [More Information Needed]
36
- - **License:** [More Information Needed]
37
- - **Finetuned from model [optional]:** [More Information Needed]
38
 
39
- ### Model Sources [optional]
40
 
41
- <!-- Provide the basic links for the model. -->
 
 
 
 
 
 
 
 
 
42
 
43
- - **Repository:** [More Information Needed]
44
- - **Paper [optional]:** [More Information Needed]
45
- - **Demo [optional]:** [More Information Needed]
46
 
47
- ## Uses
48
 
49
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
 
 
 
 
 
50
 
51
- ### Direct Use
52
 
53
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
 
 
54
 
55
- [More Information Needed]
56
 
57
- ### Downstream Use [optional]
58
-
59
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
60
-
61
- [More Information Needed]
62
-
63
- ### Out-of-Scope Use
64
-
65
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
66
-
67
- [More Information Needed]
68
-
69
- ## Bias, Risks, and Limitations
70
-
71
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
72
-
73
- [More Information Needed]
74
-
75
- ### Recommendations
76
-
77
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
78
-
79
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
80
-
81
- ## How to Get Started with the Model
82
-
83
- Use the code below to get started with the model.
84
-
85
- [More Information Needed]
86
-
87
- ## Training Details
88
-
89
- ### Training Data
90
-
91
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
92
-
93
- [More Information Needed]
94
-
95
- ### Training Procedure
96
-
97
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
98
-
99
- #### Preprocessing [optional]
100
-
101
- [More Information Needed]
102
-
103
-
104
- #### Training Hyperparameters
105
-
106
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
107
-
108
- #### Speeds, Sizes, Times [optional]
109
-
110
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
111
-
112
- [More Information Needed]
113
-
114
- ## Evaluation
115
-
116
- <!-- This section describes the evaluation protocols and provides the results. -->
117
-
118
- ### Testing Data, Factors & Metrics
119
-
120
- #### Testing Data
121
-
122
- <!-- This should link to a Dataset Card if possible. -->
123
-
124
- [More Information Needed]
125
-
126
- #### Factors
127
-
128
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
129
-
130
- [More Information Needed]
131
-
132
- #### Metrics
133
-
134
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
135
-
136
- [More Information Needed]
137
-
138
- ### Results
139
-
140
- [More Information Needed]
141
-
142
- #### Summary
143
-
144
-
145
-
146
- ## Model Examination [optional]
147
-
148
- <!-- Relevant interpretability work for the model goes here -->
149
-
150
- [More Information Needed]
151
-
152
- ## Environmental Impact
153
-
154
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
155
-
156
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
157
-
158
- - **Hardware Type:** [More Information Needed]
159
- - **Hours used:** [More Information Needed]
160
- - **Cloud Provider:** [More Information Needed]
161
- - **Compute Region:** [More Information Needed]
162
- - **Carbon Emitted:** [More Information Needed]
163
-
164
- ## Technical Specifications [optional]
165
-
166
- ### Model Architecture and Objective
167
-
168
- [More Information Needed]
169
-
170
- ### Compute Infrastructure
171
-
172
- [More Information Needed]
173
-
174
- #### Hardware
175
-
176
- [More Information Needed]
177
-
178
- #### Software
179
-
180
- [More Information Needed]
181
-
182
- ## Citation [optional]
183
-
184
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
185
-
186
- **BibTeX:**
187
-
188
- [More Information Needed]
189
-
190
- **APA:**
191
-
192
- [More Information Needed]
193
-
194
- ## Glossary [optional]
195
-
196
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
197
-
198
- [More Information Needed]
199
-
200
- ## More Information [optional]
201
-
202
- [More Information Needed]
203
-
204
- ## Model Card Authors [optional]
205
-
206
- [More Information Needed]
207
-
208
- ## Model Card Contact
209
-
210
- [More Information Needed]
 
11
  base_model:
12
  - diffutron/DiffutronLM-0.3B-Base
13
  pipeline_tag: text-generation
14
+ new_version: diffutron/DiffutronLM-0.3B-Instruct
15
  ---
16
+ # DiffutronLM-0.3B-1st-Stage
17
 
18
+ **DiffutronLM-0.3B-1st-Stage** is an intermediate checkpoint of the Diffutron series, a parameter-efficient, Masked Diffusion Language Model (MDLM) designed for the Turkish language.
19
 
20
+ This specific model represents the completion of the **first stage of instruction fine-tuning**. It has been trained to grasp the fundamentals of instruction-following in Turkish, serving as a robust foundation before more complex, domain-specific specialization (which is handled in the final `Instruct` model).
21
 
22
+ ## 📌 Model Details
23
 
24
+ * **Model Type:** Masked Diffusion Language Model (MDLM)
25
+ * **Base Architecture:** `jhu-clsp/mmBERT-base` (Multilingual Encoder)
26
+ * **Language:** Turkish
27
+ * **Parameter Count:** 307M (0.3B)
28
+ * **Context Length:** 256 tokens
29
+ * **Training Libraries:** `dllm`, PyTorch
30
+ * **Status:** Intermediate Checkpoint (Stage 1 SFT)
31
 
32
+ ## 🚀 Training Pipeline for This Checkpoint
33
 
34
+ Diffutron replaces traditional next-token autoregressive generation with a discrete diffusion process, generating text by iteratively refining sequences in parallel. To reach this checkpoint, the model underwent two main phases:
35
 
36
+ ### 1. Continual Pre-training (CPT)
37
+ The multilingual backbone was adapted to Turkish using a high-rank LoRA strategy (r=256, α=256) on ~2 million sequences sourced from Havadis, Temiz-OSCAR, and Turkish Wikipedia. This effectively modeled Turkish morphological nuances without catastrophic forgetting.
38
 
39
+ ### 2. Stage 1: Foundational Instruction Tuning
40
+ Following CPT, the model underwent full supervised fine-tuning (SFT) to align it with human intent.
41
+ * **Dataset:** `metunlp/LlamaTurk-Instruction-Set`
42
+ * **Objective:** Introduce the model to a broad range of general instructions and establish basic response coherence.
43
+ * **Hyperparameters:** 20 Epochs, Batch Size 16, AdamW optimizer (lr=1e-4), Max Sequence Length 256.
44
 
45
+ *(Note: For the most advanced instruction-following capabilities, including complex reasoning, we recommend using the final `DiffutronLM-0.3B-Instruct` model, which includes a second stage of tuning on `InstrucTurca`.)*
46
 
47
+ ## 📊 Evaluation Results
 
 
 
 
 
 
48
 
49
+ Despite being an intermediate checkpoint, the 1st-Stage model demonstrates highly competitive performance against much larger autoregressive baselines on the **CETVEL Benchmark Suite**.
50
 
51
+ | Benchmark | **Diffutron-1st (0.3B)-Stage** | Diffutron-2nd-Stage (0.3B) | TURNA (1.1B) | Kumru (2B) | Kanarya (2B) | Llama-3.2 (3B) | Trendyol (7B) | Aya-101 (13B) |
52
+ | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
53
+ | **Belebele_TR** | **22.22** | 27.00 | 22.56 | 29.00 | 28.11 | 55.78 | 36.22 | 22.89 |
54
+ | **EXAMS_TR** | **25.95** | 27.74 | 23.66 | 30.03 | 30.03 | 26.21 | 28.50 | 22.90 |
55
+ | **IronyTR** | **50.67** | 52.00 | 48.33 | 51.00 | 50.00 | 50.17 | 50.00 | 52.17 |
56
+ | **News_Cat** | **23.20** | 32.40 | 32.80 | 26.40 | 66.80 | 64.00 | 81.20 | 20.00 |
57
+ | **MNLI_TR** | **33.29** | 32.81 | 34.94 | 36.42 | 33.40 | 34.76 | 35.19 | 27.90 |
58
+ | **STS_TR** | **17.77** | 18.78 | 14.21 | 11.75 | 12.91 | 12.91 | 15.52 | 16.97 |
59
+ | **XCOPA_TR** | **53.80** | 52.00 | 55.80 | 54.00 | 64.20 | 54.60 | 61.00 | 59.60 |
60
+ | **Average** | **32.41** | 34.68 | 33.19 | 34.09 | 40.78 | 42.63 | 43.95 | 31.78 |
61
 
62
+ ## 💻 Usage
 
 
63
 
64
+ Inference requires generating text via a discrete diffusion process rather than causal next-token prediction. We recommend using the `dllm` library.
65
 
66
+ **Recommended Generation Parameters:**
67
+ * **Steps:** 64 to 128
68
+ * **Temperature:** 0.1
69
+ * **Block Length:** 32
70
+ * **Repetition Penalty:** 1.2
71
+ * **Remask Strategy:** `low_conf`
72
 
73
+ ## ⚠️ Limitations
74
 
75
+ * **Intermediate State:** This model has not undergone the final specialization phase and may struggle with highly complex or multi-turn instructions compared to the final Instruct model.
76
+ * **Context Window:** Restricted to a 256-token context window.
77
+ * **Multilingual Backbone:** Inherits representations from a multilingual encoder, not a natively trained Turkish foundation model.
78
 
79
+ ## 📝 Citation
80
 
81
+ ```bibtex
82
+ @misc{diffutron2026,
83
+ author = {Kocabay, Şuayp Talha and Akkuş, Talha Rüzgar},
84
+ title = {Diffutron: A Masked Diffusion Language Model for Turkish Language},
85
+ year = {2026},
86
+ publisher = {Hugging Face},
87
+ howpublished = {\url{[https://huggingface.co/collections/diffutron/diffutronlm](https://huggingface.co/collections/diffutron/diffutronlm)}}
88
+ }
89
+ ```