NikhilSharma commited on
Commit
5671159
·
verified ·
1 Parent(s): 4c5e7be

update files

Browse files
README.md ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ pipeline_tag: text-generation
4
+ base_model: google/gemma-3-1b-it
5
+ tags: [lora, gemma3, few-shot]
6
+ ---
7
+
8
+
9
+ # Model Card for Model ID
10
+
11
+ <!-- Provide a quick summary of what the model is/does. -->
12
+
13
+
14
+
15
+ ## Model Details
16
+
17
+ ### Model Description
18
+
19
+ <!-- Provide a longer summary of what this model is. -->
20
+
21
+
22
+
23
+ - **Developed by:** [More Information Needed]
24
+ - **Funded by [optional]:** [More Information Needed]
25
+ - **Shared by [optional]:** [More Information Needed]
26
+ - **Model type:** [More Information Needed]
27
+ - **Language(s) (NLP):** [More Information Needed]
28
+ - **License:** [More Information Needed]
29
+ - **Finetuned from model [optional]:** [More Information Needed]
30
+
31
+ ### Model Sources [optional]
32
+
33
+ <!-- Provide the basic links for the model. -->
34
+
35
+ - **Repository:** [More Information Needed]
36
+ - **Paper [optional]:** [More Information Needed]
37
+ - **Demo [optional]:** [More Information Needed]
38
+
39
+ ## Uses
40
+
41
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
42
+
43
+ ### Direct Use
44
+
45
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
46
+
47
+ [More Information Needed]
48
+
49
+ ### Downstream Use [optional]
50
+
51
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
52
+
53
+ [More Information Needed]
54
+
55
+ ### Out-of-Scope Use
56
+
57
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
58
+
59
+ [More Information Needed]
60
+
61
+ ## Bias, Risks, and Limitations
62
+
63
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
64
+
65
+ [More Information Needed]
66
+
67
+ ### Recommendations
68
+
69
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
70
+
71
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
72
+
73
+ ## How to Get Started with the Model
74
+
75
+ Use the code below to get started with the model.
76
+
77
+ [More Information Needed]
78
+
79
+ ## Training Details
80
+
81
+ ### Training Data
82
+
83
+ <!-- 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. -->
84
+
85
+ [More Information Needed]
86
+
87
+ ### Training Procedure
88
+
89
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
90
+
91
+ #### Preprocessing [optional]
92
+
93
+ [More Information Needed]
94
+
95
+
96
+ #### Training Hyperparameters
97
+
98
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
99
+
100
+ #### Speeds, Sizes, Times [optional]
101
+
102
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
103
+
104
+ [More Information Needed]
105
+
106
+ ## Evaluation
107
+
108
+ <!-- This section describes the evaluation protocols and provides the results. -->
109
+
110
+ ### Testing Data, Factors & Metrics
111
+
112
+ #### Testing Data
113
+
114
+ <!-- This should link to a Dataset Card if possible. -->
115
+
116
+ [More Information Needed]
117
+
118
+ #### Factors
119
+
120
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
121
+
122
+ [More Information Needed]
123
+
124
+ #### Metrics
125
+
126
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
127
+
128
+ [More Information Needed]
129
+
130
+ ### Results
131
+
132
+ [More Information Needed]
133
+
134
+ #### Summary
135
+
136
+
137
+
138
+ ## Model Examination [optional]
139
+
140
+ <!-- Relevant interpretability work for the model goes here -->
141
+
142
+ [More Information Needed]
143
+
144
+ ## Environmental Impact
145
+
146
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
147
+
148
+ 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).
149
+
150
+ - **Hardware Type:** [More Information Needed]
151
+ - **Hours used:** [More Information Needed]
152
+ - **Cloud Provider:** [More Information Needed]
153
+ - **Compute Region:** [More Information Needed]
154
+ - **Carbon Emitted:** [More Information Needed]
155
+
156
+ ## Technical Specifications [optional]
157
+
158
+ ### Model Architecture and Objective
159
+
160
+ [More Information Needed]
161
+
162
+ ### Compute Infrastructure
163
+
164
+ [More Information Needed]
165
+
166
+ #### Hardware
167
+
168
+ [More Information Needed]
169
+
170
+ #### Software
171
+
172
+ [More Information Needed]
173
+
174
+ ## Citation [optional]
175
+
176
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
177
+
178
+ **BibTeX:**
179
+
180
+ [More Information Needed]
181
+
182
+ **APA:**
183
+
184
+ [More Information Needed]
185
+
186
+ ## Glossary [optional]
187
+
188
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
189
+
190
+ [More Information Needed]
191
+
192
+ ## More Information [optional]
193
+
194
+ [More Information Needed]
195
+
196
+ ## Model Card Authors [optional]
197
+
198
+ [More Information Needed]
199
+
200
+ ## Model Card Contact
201
+
202
+ [More Information Needed]
203
+ ### Framework versions
204
+
205
+ - PEFT 0.15.2
adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "/home/ge65wed/.cache/modelscope/hub/models/LLM-Research/gemma-3-1b-it",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": false,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 32,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.05,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": [],
22
+ "peft_type": "LORA",
23
+ "r": 8,
24
+ "rank_pattern": {},
25
+ "revision": null,
26
+ "target_modules": [
27
+ "down_proj",
28
+ "v_proj",
29
+ "k_proj",
30
+ "q_proj",
31
+ "up_proj",
32
+ "gate_proj",
33
+ "o_proj"
34
+ ],
35
+ "task_type": "CAUSAL_LM",
36
+ "trainable_token_indices": null,
37
+ "use_dora": false,
38
+ "use_rslora": false
39
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:568db5c85f059885e0953cd19e3022dfce0689e038356ffe1d788b6b826a328f
3
+ size 26139264
additional_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lora_dtype": null, "lorap_lr_ratio": null, "lorap_emb_lr": 1e-06}
args.json ADDED
@@ -0,0 +1,329 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "output_dir": "/home/ge65wed/PSLM/output/lora-8/v2-20250707-123813",
3
+ "overwrite_output_dir": false,
4
+ "do_train": false,
5
+ "do_eval": false,
6
+ "do_predict": false,
7
+ "eval_strategy": "steps",
8
+ "prediction_loss_only": false,
9
+ "per_device_train_batch_size": 1,
10
+ "per_device_eval_batch_size": 1,
11
+ "per_gpu_train_batch_size": null,
12
+ "per_gpu_eval_batch_size": null,
13
+ "gradient_accumulation_steps": 16,
14
+ "eval_accumulation_steps": null,
15
+ "eval_delay": 0,
16
+ "torch_empty_cache_steps": null,
17
+ "learning_rate": 0.0001,
18
+ "weight_decay": 0.1,
19
+ "adam_beta1": 0.9,
20
+ "adam_beta2": 0.95,
21
+ "adam_epsilon": 1e-08,
22
+ "max_grad_norm": 1.0,
23
+ "num_train_epochs": 1.0,
24
+ "max_steps": -1,
25
+ "lr_scheduler_type": "cosine",
26
+ "lr_scheduler_kwargs": null,
27
+ "warmup_ratio": 0.0,
28
+ "warmup_steps": 0,
29
+ "log_level": "passive",
30
+ "log_level_replica": "warning",
31
+ "log_on_each_node": true,
32
+ "logging_dir": "/home/ge65wed/PSLM/output/lora-8/v2-20250707-123813/runs",
33
+ "logging_strategy": "steps",
34
+ "logging_first_step": true,
35
+ "logging_steps": 5,
36
+ "logging_nan_inf_filter": true,
37
+ "save_strategy": "steps",
38
+ "save_steps": 50.0,
39
+ "save_total_limit": 2,
40
+ "save_safetensors": true,
41
+ "save_on_each_node": false,
42
+ "save_only_model": false,
43
+ "restore_callback_states_from_checkpoint": false,
44
+ "no_cuda": false,
45
+ "use_cpu": false,
46
+ "use_mps_device": false,
47
+ "seed": 42,
48
+ "data_seed": 42,
49
+ "jit_mode_eval": false,
50
+ "use_ipex": false,
51
+ "bf16": false,
52
+ "fp16": true,
53
+ "fp16_opt_level": "O1",
54
+ "half_precision_backend": "auto",
55
+ "bf16_full_eval": false,
56
+ "fp16_full_eval": false,
57
+ "tf32": null,
58
+ "local_rank": -1,
59
+ "ddp_backend": null,
60
+ "tpu_num_cores": null,
61
+ "tpu_metrics_debug": false,
62
+ "debug": null,
63
+ "dataloader_drop_last": false,
64
+ "eval_steps": 25.0,
65
+ "dataloader_num_workers": null,
66
+ "dataloader_prefetch_factor": null,
67
+ "past_index": -1,
68
+ "run_name": "/home/ge65wed/PSLM/output/lora-8/v2-20250707-123813",
69
+ "disable_tqdm": null,
70
+ "remove_unused_columns": true,
71
+ "label_names": null,
72
+ "load_best_model_at_end": false,
73
+ "metric_for_best_model": "loss",
74
+ "greater_is_better": false,
75
+ "ignore_data_skip": false,
76
+ "fsdp": "",
77
+ "fsdp_min_num_params": 0,
78
+ "fsdp_config": null,
79
+ "fsdp_transformer_layer_cls_to_wrap": null,
80
+ "accelerator_config": {
81
+ "dispatch_batches": false
82
+ },
83
+ "deepspeed": null,
84
+ "label_smoothing_factor": 0.0,
85
+ "optim": "adamw_torch",
86
+ "optim_args": null,
87
+ "adafactor": false,
88
+ "group_by_length": false,
89
+ "length_column_name": "length",
90
+ "report_to": [
91
+ "tensorboard"
92
+ ],
93
+ "ddp_find_unused_parameters": null,
94
+ "ddp_bucket_cap_mb": null,
95
+ "ddp_broadcast_buffers": null,
96
+ "dataloader_pin_memory": true,
97
+ "dataloader_persistent_workers": false,
98
+ "skip_memory_metrics": true,
99
+ "use_legacy_prediction_loop": false,
100
+ "push_to_hub": false,
101
+ "resume_from_checkpoint": null,
102
+ "hub_model_id": null,
103
+ "hub_strategy": "every_save",
104
+ "hub_token": null,
105
+ "hub_private_repo": null,
106
+ "hub_always_push": false,
107
+ "gradient_checkpointing": true,
108
+ "gradient_checkpointing_kwargs": null,
109
+ "include_inputs_for_metrics": false,
110
+ "include_for_metrics": [],
111
+ "eval_do_concat_batches": true,
112
+ "fp16_backend": "auto",
113
+ "push_to_hub_model_id": null,
114
+ "push_to_hub_organization": null,
115
+ "push_to_hub_token": null,
116
+ "mp_parameters": "",
117
+ "auto_find_batch_size": false,
118
+ "full_determinism": false,
119
+ "torchdynamo": null,
120
+ "ray_scope": "last",
121
+ "ddp_timeout": 18000000,
122
+ "torch_compile": false,
123
+ "torch_compile_backend": null,
124
+ "torch_compile_mode": null,
125
+ "include_tokens_per_second": false,
126
+ "include_num_input_tokens_seen": false,
127
+ "neftune_noise_alpha": null,
128
+ "optim_target_modules": null,
129
+ "batch_eval_metrics": false,
130
+ "eval_on_start": false,
131
+ "use_liger_kernel": false,
132
+ "eval_use_gather_object": false,
133
+ "average_tokens_across_devices": false,
134
+ "sortish_sampler": false,
135
+ "predict_with_generate": false,
136
+ "generation_max_length": null,
137
+ "generation_num_beams": null,
138
+ "generation_config": null,
139
+ "vit_gradient_checkpointing": null,
140
+ "check_model": true,
141
+ "acc_strategy": "token",
142
+ "train_dataloader_shuffle": true,
143
+ "max_epochs": null,
144
+ "aligner_lr": null,
145
+ "vit_lr": null,
146
+ "optimizer": null,
147
+ "use_logits_to_keep": null,
148
+ "channels": null,
149
+ "metric_warmup_step": 0,
150
+ "fsdp_num": 1,
151
+ "acc_steps": 1,
152
+ "eval_use_evalscope": false,
153
+ "eval_datasets": [],
154
+ "eval_limit": null,
155
+ "eval_datasets_args": null,
156
+ "eval_generation_config": null,
157
+ "model": "LLM-Research/gemma-3-1b-it",
158
+ "model_type": "gemma3_text",
159
+ "model_revision": null,
160
+ "task_type": "causal_lm",
161
+ "torch_dtype": "float16",
162
+ "attn_impl": null,
163
+ "num_labels": null,
164
+ "problem_type": null,
165
+ "rope_scaling": null,
166
+ "device_map": null,
167
+ "max_memory": {},
168
+ "local_repo_path": null,
169
+ "init_strategy": null,
170
+ "template": "gemma3_text",
171
+ "system": null,
172
+ "max_length": 2048,
173
+ "truncation_strategy": "delete",
174
+ "max_pixels": null,
175
+ "agent_template": null,
176
+ "norm_bbox": null,
177
+ "use_chat_template": true,
178
+ "padding_free": false,
179
+ "padding_side": "right",
180
+ "loss_scale": "default",
181
+ "sequence_parallel_size": 1,
182
+ "response_prefix": null,
183
+ "template_backend": "swift",
184
+ "dataset": [
185
+ "messages_train-few-shot.jsonl"
186
+ ],
187
+ "val_dataset": [],
188
+ "split_dataset_ratio": 0.01,
189
+ "dataset_num_proc": 1,
190
+ "load_from_cache_file": true,
191
+ "dataset_shuffle": true,
192
+ "val_dataset_shuffle": false,
193
+ "streaming": false,
194
+ "interleave_prob": null,
195
+ "stopping_strategy": "first_exhausted",
196
+ "shuffle_buffer_size": 1000,
197
+ "download_mode": "reuse_dataset_if_exists",
198
+ "columns": {},
199
+ "strict": false,
200
+ "model_name": null,
201
+ "model_author": null,
202
+ "custom_dataset_info": [],
203
+ "quant_method": null,
204
+ "quant_bits": null,
205
+ "hqq_axis": null,
206
+ "bnb_4bit_compute_dtype": "float32",
207
+ "bnb_4bit_quant_type": "nf4",
208
+ "bnb_4bit_use_double_quant": true,
209
+ "bnb_4bit_quant_storage": null,
210
+ "max_new_tokens": 64,
211
+ "temperature": 0.0,
212
+ "top_k": null,
213
+ "top_p": null,
214
+ "repetition_penalty": null,
215
+ "num_beams": 1,
216
+ "stream": false,
217
+ "stop_words": [],
218
+ "logprobs": false,
219
+ "top_logprobs": null,
220
+ "ckpt_dir": null,
221
+ "lora_modules": [],
222
+ "tuner_backend": "peft",
223
+ "train_type": "lora",
224
+ "adapters": [],
225
+ "external_plugins": [],
226
+ "model_kwargs": {},
227
+ "load_args": false,
228
+ "load_data_args": false,
229
+ "packing": false,
230
+ "packing_cache": null,
231
+ "custom_register_path": [],
232
+ "use_hf": false,
233
+ "ignore_args_error": false,
234
+ "use_swift_lora": false,
235
+ "freeze_parameters": [],
236
+ "freeze_parameters_regex": null,
237
+ "freeze_parameters_ratio": 0.0,
238
+ "trainable_parameters": [],
239
+ "trainable_parameters_regex": null,
240
+ "freeze_llm": false,
241
+ "freeze_vit": true,
242
+ "freeze_aligner": true,
243
+ "target_modules": [
244
+ "all-linear"
245
+ ],
246
+ "target_regex": null,
247
+ "modules_to_save": [],
248
+ "lora_rank": 8,
249
+ "lora_alpha": 32,
250
+ "lora_dropout": 0.05,
251
+ "lora_bias": "none",
252
+ "lora_dtype": null,
253
+ "lorap_lr_ratio": null,
254
+ "use_rslora": false,
255
+ "use_dora": false,
256
+ "lora_ga_batch_size": 2,
257
+ "lora_ga_iters": 2,
258
+ "lora_ga_max_length": 1024,
259
+ "lora_ga_direction": "ArB2r",
260
+ "lora_ga_scale": "stable",
261
+ "lora_ga_stable_gamma": 16,
262
+ "init_weights": true,
263
+ "fourier_n_frequency": 2000,
264
+ "fourier_scaling": 300.0,
265
+ "boft_block_size": 4,
266
+ "boft_block_num": 0,
267
+ "boft_n_butterfly_factor": 1,
268
+ "boft_dropout": 0.0,
269
+ "vera_rank": 256,
270
+ "vera_projection_prng_key": 0,
271
+ "vera_dropout": 0.0,
272
+ "vera_d_initial": 0.1,
273
+ "adapter_act": "gelu",
274
+ "adapter_length": 128,
275
+ "use_galore": false,
276
+ "galore_target_modules": null,
277
+ "galore_rank": 128,
278
+ "galore_update_proj_gap": 50,
279
+ "galore_scale": 1.0,
280
+ "galore_proj_type": "std",
281
+ "galore_optim_per_parameter": false,
282
+ "galore_with_embedding": false,
283
+ "galore_quantization": false,
284
+ "galore_proj_quant": false,
285
+ "galore_proj_bits": 4,
286
+ "galore_proj_group_size": 256,
287
+ "galore_cos_threshold": 0.4,
288
+ "galore_gamma_proj": 2,
289
+ "galore_queue_size": 5,
290
+ "adalora_target_r": 8,
291
+ "adalora_init_r": 12,
292
+ "adalora_tinit": 0,
293
+ "adalora_tfinal": 0,
294
+ "adalora_deltaT": 1,
295
+ "adalora_beta1": 0.85,
296
+ "adalora_beta2": 0.85,
297
+ "adalora_orth_reg_weight": 0.5,
298
+ "llamapro_num_new_blocks": 4,
299
+ "llamapro_num_groups": null,
300
+ "lisa_activated_layers": 0,
301
+ "lisa_step_interval": 20,
302
+ "reft_layer_key": null,
303
+ "reft_layers": null,
304
+ "reft_rank": 4,
305
+ "reft_intervention_type": "LoreftIntervention",
306
+ "reft_args": null,
307
+ "swanlab_token": null,
308
+ "swanlab_project": null,
309
+ "swanlab_workspace": null,
310
+ "swanlab_exp_name": null,
311
+ "swanlab_mode": "cloud",
312
+ "add_version": true,
313
+ "resume_only_model": false,
314
+ "create_checkpoint_symlink": false,
315
+ "lazy_tokenize": false,
316
+ "loss_type": null,
317
+ "metric": null,
318
+ "zero_hpz_partition_size": null,
319
+ "rank": -1,
320
+ "global_world_size": 1,
321
+ "local_world_size": 1,
322
+ "model_suffix": "gemma-3-1b-it",
323
+ "model_info": "ModelInfo(model_type='gemma3_text', model_dir='/home/ge65wed/.cache/modelscope/hub/models/LLM-Research/gemma-3-1b-it', torch_dtype=torch.float16, max_model_len=32768, quant_method=None, quant_bits=None, rope_scaling=None, config=None, task_type='causal_lm', num_labels=None)",
324
+ "model_meta": "ModelMeta(model_type='gemma3_text', model_groups=[ModelGroup(models=[Model(ms_model_id='LLM-Research/gemma-3-1b-pt', hf_model_id='google/gemma-3-1b-pt', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='LLM-Research/gemma-3-1b-it', hf_model_id='google/gemma-3-1b-it', model_path=None, ms_revision=None, hf_revision=None)], ignore_patterns=None, requires=None, tags=[])], template='gemma3_text', get_function=<function get_model_tokenizer_gemma3_text at 0x7f3e31c0d940>, model_arch='llama', architectures=['Gemma3ForCausalLM'], additional_saved_files=[], torch_dtype=None, is_multimodal=False, is_reward=False, task_type=None, ignore_patterns=None, requires=['transformers>=4.49'], tags=[])",
325
+ "model_dir": "/home/ge65wed/.cache/modelscope/hub/models/LLM-Research/gemma-3-1b-it",
326
+ "hub": "<class 'swift.hub.hub.MSHub'>",
327
+ "evaluation_strategy": "steps",
328
+ "training_args": "Seq2SeqTrainingArguments(output_dir='/home/ge65wed/PSLM/output/lora-8/v2-20250707-123813', overwrite_output_dir=False, do_train=False, do_eval=True, do_predict=False, eval_strategy=<IntervalStrategy.STEPS: 'steps'>, prediction_loss_only=False, per_device_train_batch_size=1, per_device_eval_batch_size=1, per_gpu_train_batch_size=None, per_gpu_eval_batch_size=None, gradient_accumulation_steps=16, eval_accumulation_steps=None, eval_delay=0, torch_empty_cache_steps=None, learning_rate=0.0001, weight_decay=0.1, adam_beta1=0.9, adam_beta2=0.95, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=1.0, max_steps=-1, lr_scheduler_type=<SchedulerType.COSINE: 'cosine'>, lr_scheduler_kwargs=None, warmup_ratio=0.0, warmup_steps=0, log_level='passive', log_level_replica='warning', log_on_each_node=True, logging_dir='/home/ge65wed/PSLM/output/lora-8/v2-20250707-123813/runs', logging_strategy=<IntervalStrategy.STEPS: 'steps'>, logging_first_step=True, logging_steps=5, logging_nan_inf_filter=True, save_strategy=<SaveStrategy.STEPS: 'steps'>, save_steps=50, save_total_limit=2, save_safetensors=True, save_on_each_node=False, save_only_model=False, restore_callback_states_from_checkpoint=False, no_cuda=False, use_cpu=False, use_mps_device=False, seed=42, data_seed=42, jit_mode_eval=False, use_ipex=False, bf16=False, fp16=True, fp16_opt_level='O1', half_precision_backend='auto', bf16_full_eval=False, fp16_full_eval=False, tf32=None, local_rank=0, ddp_backend=None, tpu_num_cores=None, tpu_metrics_debug=False, debug=[], dataloader_drop_last=False, eval_steps=25, dataloader_num_workers=1, dataloader_prefetch_factor=10, past_index=-1, run_name='/home/ge65wed/PSLM/output/lora-8/v2-20250707-123813', disable_tqdm=False, remove_unused_columns=False, label_names=None, load_best_model_at_end=False, metric_for_best_model='loss', greater_is_better=False, ignore_data_skip=False, fsdp=[], fsdp_min_num_params=0, fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}, fsdp_transformer_layer_cls_to_wrap=None, accelerator_config=AcceleratorConfig(split_batches=False, dispatch_batches=False, even_batches=True, use_seedable_sampler=True, non_blocking=False, gradient_accumulation_kwargs=None, use_configured_state=False), deepspeed=None, label_smoothing_factor=0.0, optim=<OptimizerNames.ADAMW_TORCH: 'adamw_torch'>, optim_args=None, adafactor=False, group_by_length=False, length_column_name='length', report_to=['tensorboard'], ddp_find_unused_parameters=None, ddp_bucket_cap_mb=None, ddp_broadcast_buffers=None, dataloader_pin_memory=True, dataloader_persistent_workers=False, skip_memory_metrics=True, use_legacy_prediction_loop=False, push_to_hub=False, resume_from_checkpoint=None, hub_model_id=None, hub_strategy=<HubStrategy.EVERY_SAVE: 'every_save'>, hub_token=None, hub_private_repo=None, hub_always_push=False, gradient_checkpointing=True, gradient_checkpointing_kwargs=None, include_inputs_for_metrics=False, include_for_metrics=[], eval_do_concat_batches=True, fp16_backend='auto', push_to_hub_model_id=None, push_to_hub_organization=None, push_to_hub_token=None, mp_parameters='', auto_find_batch_size=False, full_determinism=False, torchdynamo=None, ray_scope='last', ddp_timeout=18000000, torch_compile=False, torch_compile_backend=None, torch_compile_mode=None, include_tokens_per_second=None, include_num_input_tokens_seen=None, neftune_noise_alpha=None, optim_target_modules=None, batch_eval_metrics=False, eval_on_start=False, use_liger_kernel=False, eval_use_gather_object=False, average_tokens_across_devices=None, sortish_sampler=False, predict_with_generate=False, generation_max_length=None, generation_num_beams=None, generation_config=None, vit_gradient_checkpointing=True, check_model=True, acc_strategy='token', train_dataloader_shuffle=True, max_epochs=None, aligner_lr=None, vit_lr=None, optimizer=None, use_logits_to_keep=None, channels=None, metric_warmup_step=0, fsdp_num=1, acc_steps=1, eval_use_evalscope=False, eval_datasets=[], eval_limit=None, eval_datasets_args=None, eval_generation_config=None, train_type='lora', local_repo_path=None, galore_config=None)"
329
+ }
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9a59c76812dd7df57aac3ebc2ead28478b018db712a45a810d3777a0bb36963
3
+ size 52489063
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f63654f422e30499ad1351906337357a5f74f75cc201c5f5cdbb409f89af8a67
3
+ size 14645
scaler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15998a3076a68e935f74fee7e39fbd2a004a3b7bcbfe2082129f169c7c993093
3
+ size 1383
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79097f3250fe9c3d93d74ca2fa5ccdfb46f04ece0a79400432478548a1ac81f1
3
+ size 1465
trainer_state.json ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": 41,
3
+ "best_metric": 2.55751514,
4
+ "best_model_checkpoint": "/home/ge65wed/PSLM/output/lora-8/v2-20250707-123813/checkpoint-41",
5
+ "epoch": 1.0,
6
+ "eval_steps": 25,
7
+ "global_step": 41,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.02450229709035222,
14
+ "grad_norm": NaN,
15
+ "learning_rate": 0.0001,
16
+ "loss": 3.8918616771698,
17
+ "memory(GiB)": 4.25,
18
+ "step": 1,
19
+ "token_acc": 0.40435510887772197,
20
+ "train_speed(iter/s)": 0.035339
21
+ },
22
+ {
23
+ "epoch": 0.1225114854517611,
24
+ "grad_norm": 1.6332721710205078,
25
+ "learning_rate": 9.766981960274653e-05,
26
+ "loss": 3.1261677742004395,
27
+ "memory(GiB)": 7.41,
28
+ "step": 5,
29
+ "token_acc": 0.4092135437744503,
30
+ "train_speed(iter/s)": 0.033213
31
+ },
32
+ {
33
+ "epoch": 0.2450229709035222,
34
+ "grad_norm": 1.4651521444320679,
35
+ "learning_rate": 8.857445899109715e-05,
36
+ "loss": 2.639118957519531,
37
+ "memory(GiB)": 9.04,
38
+ "step": 10,
39
+ "token_acc": 0.4357703428335399,
40
+ "train_speed(iter/s)": 0.0324
41
+ },
42
+ {
43
+ "epoch": 0.3675344563552833,
44
+ "grad_norm": 1.319446086883545,
45
+ "learning_rate": 7.388599092561315e-05,
46
+ "loss": 2.7252979278564453,
47
+ "memory(GiB)": 10.78,
48
+ "step": 15,
49
+ "token_acc": 0.4232362500796635,
50
+ "train_speed(iter/s)": 0.032144
51
+ },
52
+ {
53
+ "epoch": 0.4900459418070444,
54
+ "grad_norm": 1.1134439706802368,
55
+ "learning_rate": 5.573417126992003e-05,
56
+ "loss": 2.706107330322266,
57
+ "memory(GiB)": 10.78,
58
+ "step": 20,
59
+ "token_acc": 0.42854686156491834,
60
+ "train_speed(iter/s)": 0.031844
61
+ },
62
+ {
63
+ "epoch": 0.6125574272588055,
64
+ "grad_norm": 1.1963179111480713,
65
+ "learning_rate": 3.675092489016693e-05,
66
+ "loss": 2.6325620651245116,
67
+ "memory(GiB)": 10.78,
68
+ "step": 25,
69
+ "token_acc": 0.435288414929714,
70
+ "train_speed(iter/s)": 0.031685
71
+ },
72
+ {
73
+ "epoch": 0.6125574272588055,
74
+ "eval_loss": 2.5632457733154297,
75
+ "eval_runtime": 3.8665,
76
+ "eval_samples_per_second": 1.552,
77
+ "eval_steps_per_second": 1.552,
78
+ "step": 25
79
+ },
80
+ {
81
+ "epoch": 0.7350689127105666,
82
+ "grad_norm": 1.0305734872817993,
83
+ "learning_rate": 1.9688729451668114e-05,
84
+ "loss": 2.6473711013793944,
85
+ "memory(GiB)": 10.78,
86
+ "step": 30,
87
+ "token_acc": 0.435996801377868,
88
+ "train_speed(iter/s)": 0.031498
89
+ },
90
+ {
91
+ "epoch": 0.8575803981623277,
92
+ "grad_norm": 0.9539395570755005,
93
+ "learning_rate": 7.0215196506399515e-06,
94
+ "loss": 2.6621904373168945,
95
+ "memory(GiB)": 10.78,
96
+ "step": 35,
97
+ "token_acc": 0.4297314996725606,
98
+ "train_speed(iter/s)": 0.031512
99
+ },
100
+ {
101
+ "epoch": 0.9800918836140888,
102
+ "grad_norm": 0.994426965713501,
103
+ "learning_rate": 5.859788109825793e-07,
104
+ "loss": 2.680731010437012,
105
+ "memory(GiB)": 10.78,
106
+ "step": 40,
107
+ "token_acc": 0.42303860523038606,
108
+ "train_speed(iter/s)": 0.031482
109
+ },
110
+ {
111
+ "epoch": 1.0,
112
+ "eval_loss": 2.5575151443481445,
113
+ "eval_runtime": 3.8994,
114
+ "eval_samples_per_second": 1.539,
115
+ "eval_steps_per_second": 1.539,
116
+ "step": 41
117
+ }
118
+ ],
119
+ "logging_steps": 5,
120
+ "max_steps": 41,
121
+ "num_input_tokens_seen": 0,
122
+ "num_train_epochs": 1,
123
+ "save_steps": 50,
124
+ "stateful_callbacks": {
125
+ "TrainerControl": {
126
+ "args": {
127
+ "should_epoch_stop": false,
128
+ "should_evaluate": false,
129
+ "should_log": false,
130
+ "should_save": true,
131
+ "should_training_stop": true
132
+ },
133
+ "attributes": {}
134
+ }
135
+ },
136
+ "total_flos": 4668120944183040.0,
137
+ "train_batch_size": 1,
138
+ "trial_name": null,
139
+ "trial_params": null
140
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:339672fc374fa92052e8516b0f02f9fd46cca6122259e1555218ea8f11df091d
3
+ size 6353