lianghsun commited on
Commit
4bcdc6d
·
verified ·
1 Parent(s): 37d3a3f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +117 -157
README.md CHANGED
@@ -14,199 +14,159 @@ tags:
14
  - zhtw
15
  - chat
16
  - Twinkle.AI
 
 
17
  ---
18
 
19
- # Model Card for gemma-3-270m-it-cpt-annealing-sft-251126
 
20
 
21
- <!-- Provide a quick summary of what the model is/does. -->
22
 
23
- This modelcard aims to be a base template for new models. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1).
 
24
 
25
- ## Model Details
 
 
 
 
 
26
 
27
- ### Model Description
28
-
29
- <!-- Provide a longer summary of what this model is. -->
30
-
31
-
32
-
33
- - **Developed by:** [More Information Needed]
34
- - **Funded by [optional]:** [More Information Needed]
35
- - **Shared by [optional]:** [More Information Needed]
36
- - **Model type:** [More Information Needed]
37
- - **Language(s) (NLP):** [More Information Needed]
38
- - **License:** [More Information Needed]
39
- - **Finetuned from model [optional]:** [More Information Needed]
40
-
41
- ### Model Sources [optional]
42
-
43
- <!-- Provide the basic links for the model. -->
44
-
45
- - **Repository:** [More Information Needed]
46
- - **Paper [optional]:** [More Information Needed]
47
- - **Demo [optional]:** [More Information Needed]
48
-
49
- ## Uses
50
-
51
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
52
-
53
- ### Direct Use
54
-
55
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
56
-
57
- [More Information Needed]
58
-
59
- ### Downstream Use [optional]
60
-
61
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
62
-
63
- [More Information Needed]
64
-
65
- ### Out-of-Scope Use
66
-
67
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
68
-
69
- [More Information Needed]
70
-
71
- ## Bias, Risks, and Limitations
72
-
73
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
74
-
75
- [More Information Needed]
76
-
77
- ### Recommendations
78
-
79
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
80
-
81
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
82
-
83
- ## How to Get Started with the Model
84
-
85
- Use the code below to get started with the model.
86
-
87
- [More Information Needed]
88
-
89
- ## Training Details
90
-
91
- ### Training Data
92
-
93
- <!-- 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. -->
94
-
95
- [More Information Needed]
96
-
97
- ### Training Procedure
98
-
99
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
100
-
101
- #### Preprocessing [optional]
102
-
103
- [More Information Needed]
104
-
105
-
106
- #### Training Hyperparameters
107
-
108
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
109
-
110
- #### Speeds, Sizes, Times [optional]
111
-
112
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
113
-
114
- [More Information Needed]
115
-
116
- ## Evaluation
117
-
118
- <!-- This section describes the evaluation protocols and provides the results. -->
119
-
120
- ### Testing Data, Factors & Metrics
121
-
122
- #### Testing Data
123
-
124
- <!-- This should link to a Dataset Card if possible. -->
125
-
126
- [More Information Needed]
127
-
128
- #### Factors
129
-
130
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
131
-
132
- [More Information Needed]
133
-
134
- #### Metrics
135
-
136
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
137
-
138
- [More Information Needed]
139
-
140
- ### Results
141
-
142
- [More Information Needed]
143
-
144
- #### Summary
145
 
 
146
 
 
147
 
148
- ## Model Examination [optional]
 
 
 
 
 
 
149
 
150
- <!-- Relevant interpretability work for the model goes here -->
151
 
152
- [More Information Needed]
153
 
154
- ## Environmental Impact
155
 
156
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
 
 
 
 
157
 
158
- 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).
 
 
 
159
 
160
- - **Hardware Type:** [More Information Needed]
161
- - **Hours used:** [More Information Needed]
162
- - **Cloud Provider:** [More Information Needed]
163
- - **Compute Region:** [More Information Needed]
164
- - **Carbon Emitted:** [More Information Needed]
165
 
166
- ## Technical Specifications [optional]
 
 
 
 
167
 
168
- ### Model Architecture and Objective
 
 
 
169
 
170
- [More Information Needed]
171
 
172
- ### Compute Infrastructure
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
 
174
- [More Information Needed]
175
 
176
- #### Hardware
 
 
 
 
177
 
178
- [More Information Needed]
 
 
 
 
 
179
 
180
- #### Software
181
 
182
- [More Information Needed]
 
 
 
 
183
 
184
- ## Citation [optional]
 
 
 
185
 
186
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
187
 
188
- **BibTeX:**
189
 
190
- [More Information Needed]
 
 
 
 
 
 
191
 
192
- **APA:**
 
193
 
194
- [More Information Needed]
 
195
 
196
- ## Glossary [optional]
197
 
198
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
199
 
200
- [More Information Needed]
 
 
 
201
 
202
- ## More Information [optional]
203
 
204
- [More Information Needed]
205
 
206
- ## Model Card Authors [optional]
 
 
 
 
 
207
 
208
- [More Information Needed]
209
 
210
- ## Model Card Contact
211
 
212
- [More Information Needed]
 
 
14
  - zhtw
15
  - chat
16
  - Twinkle.AI
17
+ metrics:
18
+ - perplexity
19
  ---
20
 
21
+ # 🧪 Model Behavior Incident Log
22
+ ## Collapse Symptoms After Annealing + SFT (Gemma-3-270M-TW)
23
 
24
+ This incident report documents multiple unexpected behaviors observed during the following pipeline:
25
 
26
+ - **Gemma-3-270M (base) CPT Dialogue-Annealing SFT**
27
+ - Training performed with **LLaMA-Factory** on multiple Traditional Chinese datasets.
28
 
29
+ The purpose of this log is to document:
30
+ - what happened
31
+ - why the model collapsed
32
+ - representative failure outputs
33
+ - suspected root causes
34
+ - mitigation steps and future plans
35
 
36
+ ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
+ # 📉 Summary of the Incident
39
 
40
+ After the stage **CPT → Phase-3 Dialogue Annealing → SFT**, the model displayed **severe conversational degradation**, including:
41
 
42
+ - repetitive loops
43
+ - meaningless vocalization (e.g., `hihihihi...`)
44
+ - empty or nearly empty responses
45
+ - echoing the user query
46
+ - hallucinated list expansions
47
+ - loss of chat-template consistency
48
+ - collapse-like distribution drift
49
 
50
+ These issues **did not appear** in earlier checkpoints (e.g., CPT → SFT without annealing).
51
 
52
+ ---
53
 
54
+ # 🔍 Representative Failure Outputs
55
 
56
+ ## 1. Character-level repetition
57
+ **Prompt:**
58
+ ```
59
+ hi
60
+ ```
61
 
62
+ **Output:**
63
+ ```
64
+ hihihihihihihihihihihihihihihi...
65
+ ```
66
 
67
+ ---
 
 
 
 
68
 
69
+ ## 2. Garbled symbols / noise
70
+ **Prompt:**
71
+ ```
72
+ 你好
73
+ ```
74
 
75
+ **Output:**
76
+ ```
77
+ 總!!」!」!」!」!”!」!”!”!」!”」!”
78
+ ```
79
 
80
+ ---
81
 
82
+ ## 3. Semantic drift + self-looping
83
+ **Prompt:**
84
+ ```
85
+ 圓的積分公式
86
+ ```
87
+
88
+ **Output:**
89
+ ```
90
+ 是什麼?
91
+ 有,他們都是那個。
92
+ 你們都 是那個。
93
+ 我 還是在那個裡頭,
94
+ 所以,沒了,沒有,沒了。。
95
+ 我也不知道。
96
+ 我知道。
97
+ 知道。
98
+ 知道了。
99
+ ```
100
 
101
+ ---
102
 
103
+ ## 4. Query echoing + hallucinated QA scaffolding
104
+ **Prompt:**
105
+ ```
106
+ 請用一句話解釋地球為什麼會自轉。
107
+ ```
108
 
109
+ **Output:**
110
+ ```
111
+ 請用一句話解釋地球為什麼會自轉。
112
+ - 根據物理學,什麼是「氣體」?
113
+ - 什麼是「磁場」?
114
+ ```
115
 
116
+ ---
117
 
118
+ ## 5. Baseline sanity check (pre-annealing) behaves normally
119
+ **Prompt:**
120
+ ```
121
+ 你好阿
122
+ ```
123
 
124
+ **Earlier output:**
125
+ ```
126
+ 你好!很高興能和你一起交流,我是台灣大語言模型 Formosa-1...
127
+ ```
128
 
129
+ ---
130
 
131
+ # 🧭 Suspected Root Causes
132
 
133
+ ## 1. Annealing Dataset Format Drift
134
+ Use of raw:
135
+ ```
136
+ user: ...
137
+ assistant: ...
138
+ ```
139
+ instead of structured JSON messages.
140
 
141
+ ## 2. Overwriting Instruction Alignment
142
+ Annealing is fragile for 270M models → possible distribution collapse.
143
 
144
+ ## 3. SFT Unable to Recover
145
+ Loss decreased, but entropy collapse persisted.
146
 
147
+ ---
148
 
149
+ # 🛠 Actions Taken
150
 
151
+ - Rebuilt CPT dataset (2.4M samples, 70/30 mix)
152
+ - Adopted stable LR tail (`cosine_with_min_lr`)
153
+ - Will rebuild annealing data with strict chat format
154
+ - Full SFT pipeline will be repeated after clean CPT
155
 
156
+ ---
157
 
158
+ # 🔄 Next Steps
159
 
160
+ 1. Complete clean CPT
161
+ 2. Rebuild dialogue annealing
162
+ 3. Annealing from min_lr → 0
163
+ 4. Re-run SFT
164
+ 5. Compare ablation paths
165
+ 6. Add regression tests
166
 
167
+ ---
168
 
169
+ # 🧭 Closing Note
170
 
171
+ Small multilingual models are extremely sensitive to formatting + LR scheduling.
172
+ This report documents the collapse event for transparency and future reproducibility.