ldp72 commited on
Commit
0b50b47
·
verified ·
1 Parent(s): 0ab5ec8

docs: add README.md

Browse files
Files changed (1) hide show
  1. README.md +257 -11
README.md CHANGED
@@ -1,13 +1,23 @@
1
  ---
 
 
 
 
 
 
 
2
  library_name: transformers
 
 
3
  tags: []
 
4
  ---
5
 
6
- # Model Card for Model ID
7
 
8
  <!-- Provide a quick summary of what the model is/does. -->
9
 
10
-
11
 
12
  ## Model Details
13
 
@@ -15,15 +25,16 @@ tags: []
15
 
16
  <!-- Provide a longer summary of what this model is. -->
17
 
18
- This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
 
20
- - **Developed by:** [More Information Needed]
 
21
  - **Funded by [optional]:** [More Information Needed]
22
  - **Shared by [optional]:** [More Information Needed]
23
  - **Model type:** [More Information Needed]
24
- - **Language(s) (NLP):** [More Information Needed]
25
  - **License:** [More Information Needed]
26
- - **Finetuned from model [optional]:** [More Information Needed]
 
27
 
28
  ### Model Sources [optional]
29
 
@@ -41,7 +52,29 @@ This is the model card of a 🤗 transformers model that has been pushed on the
41
 
42
  <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
 
44
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  ### Downstream Use [optional]
47
 
@@ -75,11 +108,165 @@ Use the code below to get started with the model.
75
 
76
  ## Training Details
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  ### Training Data
79
 
80
  <!-- 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. -->
81
 
82
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
 
84
  ### Training Procedure
85
 
@@ -89,10 +276,69 @@ Use the code below to get started with the model.
89
 
90
  [More Information Needed]
91
 
92
-
93
  #### Training Hyperparameters
94
 
95
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
 
97
  #### Speeds, Sizes, Times [optional]
98
 
@@ -196,4 +442,4 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
196
 
197
  ## Model Card Contact
198
 
199
- [More Information Needed]
 
1
  ---
2
+ # For reference on model card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/modelcard.md?plain=1
3
+ # Doc / guide: https://huggingface.co/docs/hub/model-cards
4
+ base_model:
5
+ - Orange/Qwen3-0.6B-reasoning
6
+ datasets: []
7
+ languages:
8
+ - wo
9
  library_name: transformers
10
+ metrics: []
11
+ pipeline_tag: text-generation
12
  tags: []
13
+
14
  ---
15
 
16
+ # Model Card for ldp72/test-push
17
 
18
  <!-- Provide a quick summary of what the model is/does. -->
19
 
20
+ This model was finetuned by performing instruct tuning on Wolof language datatsets.
21
 
22
  ## Model Details
23
 
 
25
 
26
  <!-- Provide a longer summary of what this model is. -->
27
 
 
28
 
29
+
30
+ - **Developed by:** Orange
31
  - **Funded by [optional]:** [More Information Needed]
32
  - **Shared by [optional]:** [More Information Needed]
33
  - **Model type:** [More Information Needed]
34
+ - **Language(s) (NLP):** Wolof
35
  - **License:** [More Information Needed]
36
+ - **Finetuned from model [optional]:** Orange/Qwen3-0.6B-reasoning
37
+ - **Date [optional]:** 2026-10-07 14:09:49
38
 
39
  ### Model Sources [optional]
40
 
 
52
 
53
  <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
54
 
55
+ This model can be used with the `transformers` library using `pipeline` abstraction as follows:
56
+
57
+ ```python
58
+ import torch
59
+ from transformers import pipeline
60
+
61
+ model_id = "ldp72/test-push"
62
+ pipe = pipeline(
63
+ "text-generation",
64
+ model=model_id,
65
+ torch_dtype=torch.bfloat16,
66
+ device_map="auto",
67
+ )
68
+ messages = [
69
+ {"role": "system", "content": "You are chatbot specialized on Wolof language."},
70
+ {"role": "user", "content": "Can you give a sample of your specialized knowledge?"},
71
+ ]
72
+ outputs = pipe(
73
+ messages,
74
+ max_new_tokens=256,
75
+ )
76
+ print(outputs[0]["generated_text"][-1])
77
+ ```
78
 
79
  ### Downstream Use [optional]
80
 
 
108
 
109
  ## Training Details
110
 
111
+ This model was finetuned with [Orange internal fine tuning tools](https://gitlab.tech.orange/NEPAL/knowledge/orangelm/lm-adaptation/) with the Docker Image tagged `0.2.8` in the [registry](https://gitlab.tech.orange/NEPAL/knowledge/orangelm/lm-adaptation/container_registry/84664) and the following configuration file:
112
+
113
+ ```yaml
114
+ data:
115
+ add_dataset_name: false
116
+ dataset_name:
117
+ train:
118
+ - path: wolof-lm/en_function_calling-instructions
119
+ revision: v10
120
+ split: train
121
+ subsample:
122
+ p: 0.05
123
+ seed: 42
124
+ - path: wolof-lm/alpaca_translated_into_wolof-instructions
125
+ revision: 2025.02.28
126
+ split: train
127
+ subsample:
128
+ p: 0.05
129
+ seed: 42
130
+ validation_fc:
131
+ - path: wolof-lm/en_function_calling-instructions
132
+ revision: v10
133
+ split: validation
134
+ subsample:
135
+ p: 0.05
136
+ seed: 42
137
+ validation_it-v2:
138
+ - path: wolof-lm/alpaca_translated_into_wolof-instructions
139
+ revision: 2025.02.28
140
+ split: validation
141
+ subsample:
142
+ p: 0.1
143
+ seed: 42
144
+ - path: wolof-lm/argilla_databricks-dolly-15k-curated-multilingual_en_translated_into_wolof-instructions
145
+ revision: 2026.03.02
146
+ split: validation
147
+ subsample:
148
+ p: 0.1
149
+ seed: 42
150
+ debug: false
151
+ implementation_name: conversations
152
+ description:
153
+ contributors:
154
+ - email: pierre.adam@orange.com
155
+ first_name: Pierre
156
+ last_name: Adam
157
+ domain: Wolof
158
+ languages:
159
+ - wo
160
+ model_name: ldp72/test-push
161
+ image:
162
+ name: registry.gitlab.tech.orange/nepal/knowledge/orangelm/lm-adaptation/lm-adaptation
163
+ version: 0.2.8
164
+ model:
165
+ attn_implementation: flash_attention_2
166
+ chat_template_tokenizer: Orange/Qwen3-0.6B-reasoning
167
+ model_name_or_path: Orange/Qwen3-0.6B-reasoning
168
+ trust_remote_code: true
169
+ software_info:
170
+ git:
171
+ branch: 165-dpr-0-23-1
172
+ commit_date: '2026-10-06 11:47:34+02:00'
173
+ commit_hash: da09ac3426d8d17ee7b5c690e85139f07ff5e756
174
+ commit_message: 'fix: remove useless code dealing with qat'
175
+ is_dirty: true
176
+ short_hash: da09ac3
177
+ parameters:
178
+ accelerate_file: null
179
+ clean_output: false
180
+ cluster: marcel
181
+ codecarbon_log_level: warning
182
+ collator_stats: false
183
+ config_file: resources/configs/Wolof-Qwen3-0.6B-toy-reasoning.yml
184
+ constraints: queue:name=gpu_mem_40,gpu:1
185
+ data_seed: 42
186
+ debug: false
187
+ deepspeed_file: null
188
+ dry_run: false
189
+ environment_variable:
190
+ TOKENIZERS_PARALLELISM: 'false'
191
+ load_only: null
192
+ log_level: INFO
193
+ log_output: null
194
+ merge_peft: false
195
+ no_requeue: false
196
+ output_dir: Wolof-Qwen3-0.6B-toy-reasoning-test
197
+ profiler_config: null
198
+ push_to_hub: false
199
+ qat_config: null
200
+ requeue_n_epochs: 1
201
+ time_out: 24h
202
+ time_requeue: false
203
+ use_qat: false
204
+ version: 0.2.9.dev36+merging.147.grpo.update.g6da62cdc9.d20261005
205
+ training:
206
+ assistant_only_loss: true
207
+ bf16: true
208
+ dataloader_num_workers: 4
209
+ dataloader_persistent_workers: true
210
+ dataloader_pin_memory: true
211
+ dataloader_prefetch_factor: 2
212
+ disable_tqdm: true
213
+ eval_accumulation_steps: 1
214
+ eval_steps: 4
215
+ eval_strategy: steps
216
+ fp16: false
217
+ gradient_accumulation_steps: 32
218
+ gradient_checkpointing: true
219
+ greater_is_better: false
220
+ learning_rate: 2.0e-05
221
+ load_best_model_at_end: true
222
+ log_level: warning
223
+ logging_dir: /outputs/Wolof-Qwen3-0.6B-toy-reasoning-test/logs
224
+ logging_steps: 1
225
+ lr_scheduler_type: cosine
226
+ max_grad_norm: 1.0
227
+ max_length: 1024
228
+ max_steps: -1
229
+ metric_for_best_model: eval_weighted_validation_loss
230
+ num_train_epochs: 2
231
+ optim: paged_adamw_32bit
232
+ output_dir: /outputs/Wolof-Qwen3-0.6B-toy-reasoning-test
233
+ per_device_eval_batch_size: 8
234
+ per_device_train_batch_size: 8
235
+ push_to_hub: false
236
+ report_to: tensorboard
237
+ save_steps: 4
238
+ save_strategy: steps
239
+ save_total_limit: 2
240
+ seed: 42
241
+ torch_compile: false
242
+ training_type: instruct-tuning
243
+ use_liger_kernel: true
244
+ warmup_ratio: 0.05
245
+ weight_decay: 0.1
246
+ ```
247
+
248
+ The model was trained on 1 gpus with at least 40GB on each gpu.
249
+
250
  ### Training Data
251
 
252
  <!-- 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. -->
253
 
254
+ This model was trained on the following datasets:
255
+
256
+ ```yaml
257
+ - path: wolof-lm/en_function_calling-instructions
258
+ revision: v10
259
+ split: train
260
+ subsample:
261
+ p: 0.05
262
+ seed: 42
263
+ - path: wolof-lm/alpaca_translated_into_wolof-instructions
264
+ revision: 2025.02.28
265
+ split: train
266
+ subsample:
267
+ p: 0.05
268
+ seed: 42
269
+ ```
270
 
271
  ### Training Procedure
272
 
 
276
 
277
  [More Information Needed]
278
 
 
279
  #### Training Hyperparameters
280
 
281
+ <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
282
+
283
+ - **Training regime:** This model was trained with the following hyperparameters for `SFTTrainer`,other parameters were set as default:
284
+
285
+ ```yaml
286
+ assistant_only_loss: true
287
+ bf16: true
288
+ dataloader_num_workers: 4
289
+ dataloader_persistent_workers: true
290
+ dataloader_pin_memory: true
291
+ dataloader_prefetch_factor: 2
292
+ disable_tqdm: true
293
+ eval_accumulation_steps: 1
294
+ eval_steps: 4
295
+ eval_strategy: steps
296
+ fp16: false
297
+ gradient_accumulation_steps: 32
298
+ gradient_checkpointing: true
299
+ greater_is_better: false
300
+ learning_rate: 2.0e-05
301
+ load_best_model_at_end: true
302
+ log_level: warning
303
+ logging_dir: /outputs/Wolof-Qwen3-0.6B-toy-reasoning-test/logs
304
+ logging_steps: 1
305
+ lr_scheduler_type: cosine
306
+ max_grad_norm: 1.0
307
+ max_length: 1024
308
+ max_steps: -1
309
+ metric_for_best_model: eval_weighted_validation_loss
310
+ num_train_epochs: 2
311
+ optim: paged_adamw_32bit
312
+ output_dir: /outputs/Wolof-Qwen3-0.6B-toy-reasoning-test
313
+ per_device_eval_batch_size: 8
314
+ per_device_train_batch_size: 8
315
+ push_to_hub: false
316
+ report_to: tensorboard
317
+ save_steps: 4
318
+ save_strategy: steps
319
+ save_total_limit: 2
320
+ seed: 42
321
+ torch_compile: false
322
+ use_liger_kernel: true
323
+ warmup_ratio: 0.05
324
+ weight_decay: 0.1
325
+ ```
326
+
327
+ **Number of Tokens vs Steps**
328
+
329
+ ![number of tokens vs steps](train_num_tokens_vs_steps.png 'Number of Tokens vs Steps')
330
+
331
+ **Learning Rate Curve**
332
+
333
+ ![learning rate curve](train_learning_rate_vs_cumulated_tokens.png 'Learning Rate')
334
+
335
+ **Training Loss**
336
+
337
+ ![training loss curve](train_loss_vs_cumulated_tokens.png 'Training Loss')
338
+
339
+ **Validation Loss**
340
+
341
+ ![validation loss curve](validation_loss_vs_cumulated_tokens.png 'Validation Loss')
342
 
343
  #### Speeds, Sizes, Times [optional]
344
 
 
442
 
443
  ## Model Card Contact
444
 
445
+ Thanks to [Pierre Adam](mailto:pierre.adam@orange.com) for adding this model.