sikoraaxd commited on
Commit
812a61a
1 Parent(s): 8ab018e

Qwen2-0.5B-Instruct-ru-lora

Browse files
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ base_model: Qwen/Qwen2-0.5B-Instruct
9
+ datasets:
10
+ - generator
11
+ model-index:
12
+ - name: qwen2
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # qwen2
20
+
21
+ This model is a fine-tuned version of [Qwen/Qwen2-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2-0.5B-Instruct) on the generator dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 1.3740
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 0.0003
43
+ - train_batch_size: 4
44
+ - eval_batch_size: 4
45
+ - seed: 0
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: cosine
48
+ - lr_scheduler_warmup_ratio: 0.2
49
+ - num_epochs: 1
50
+
51
+ ### Training results
52
+
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - PEFT 0.11.1
58
+ - Transformers 4.41.2
59
+ - Pytorch 2.3.0+cu121
60
+ - Datasets 2.19.2
61
+ - Tokenizers 0.19.1
adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Qwen/Qwen2-0.5B-Instruct",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 32,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 16,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "q_proj",
24
+ "gate_proj",
25
+ "k_proj",
26
+ "down_proj",
27
+ "up_proj",
28
+ "o_proj",
29
+ "v_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47b4e4440d86e928350cc61daa30bec5d98deec2324955ca30c079e8323f9677
3
+ size 17640808
added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "<|endoftext|>": 151643,
3
+ "<|im_end|>": 151645,
4
+ "<|im_start|>": 151644
5
+ }
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_loss": 1.3739961385726929,
4
+ "eval_runtime": 16.6407,
5
+ "eval_samples": 1506,
6
+ "eval_samples_per_second": 7.452,
7
+ "eval_steps_per_second": 1.863,
8
+ "total_flos": 5010632390737920.0,
9
+ "train_loss": 1.4269454736503766,
10
+ "train_runtime": 555.1964,
11
+ "train_samples_per_second": 2.003,
12
+ "train_steps_per_second": 0.501
13
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_loss": 1.3739961385726929,
4
+ "eval_runtime": 16.6407,
5
+ "eval_samples": 1506,
6
+ "eval_samples_per_second": 7.452,
7
+ "eval_steps_per_second": 1.863
8
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
runs/Jun07_16-52-07_7c8c7a5b99aa/events.out.tfevents.1717779205.7c8c7a5b99aa.1602.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39b5384a3558f9f05d9cc522560bc913db605481ada463b367c8f57d9fe9e370
3
+ size 28678
runs/Jun07_16-52-07_7c8c7a5b99aa/events.out.tfevents.1717783807.7c8c7a5b99aa.1602.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8863c3a842747c7ca5461e6cc34179a9920f3c2fb4f8748728de315397b0b71
3
+ size 359
runs/Jun07_16-52-07_7c8c7a5b99aa/events.out.tfevents.1717784106.7c8c7a5b99aa.1602.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2dee48cecb3d14a8dda7280c740fb8ef961a901ffa548eb899295165198f1741
3
+ size 8211
runs/Jun07_16-52-07_7c8c7a5b99aa/events.out.tfevents.1717784686.7c8c7a5b99aa.1602.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f80f9b6f4e7c12102378fcc1d5a66b9d00e9c2892a4f9f2b814cfb852bde9edd
3
+ size 359
special_tokens_map.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "eos_token": {
7
+ "content": "<|im_end|>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "pad_token": "<|im_end|>"
14
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ }
28
+ },
29
+ "additional_special_tokens": [
30
+ "<|im_start|>",
31
+ "<|im_end|>"
32
+ ],
33
+ "bos_token": null,
34
+ "chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
35
+ "clean_up_tokenization_spaces": false,
36
+ "eos_token": "<|im_end|>",
37
+ "errors": "replace",
38
+ "model_max_length": 2048,
39
+ "pad_token": "<|im_end|>",
40
+ "split_special_tokens": false,
41
+ "tokenizer_class": "Qwen2Tokenizer",
42
+ "unk_token": null
43
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 5010632390737920.0,
4
+ "train_loss": 1.4269454736503766,
5
+ "train_runtime": 555.1964,
6
+ "train_samples_per_second": 2.003,
7
+ "train_steps_per_second": 0.501
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 278,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.07194244604316546,
13
+ "grad_norm": 0.5625,
14
+ "learning_rate": 0.00010714285714285714,
15
+ "loss": 1.6164,
16
+ "step": 20
17
+ },
18
+ {
19
+ "epoch": 0.14388489208633093,
20
+ "grad_norm": 0.51171875,
21
+ "learning_rate": 0.00021428571428571427,
22
+ "loss": 1.49,
23
+ "step": 40
24
+ },
25
+ {
26
+ "epoch": 0.2158273381294964,
27
+ "grad_norm": 0.48046875,
28
+ "learning_rate": 0.00029975975238935744,
29
+ "loss": 1.4566,
30
+ "step": 60
31
+ },
32
+ {
33
+ "epoch": 0.28776978417266186,
34
+ "grad_norm": 0.50390625,
35
+ "learning_rate": 0.0002914316168191626,
36
+ "loss": 1.4481,
37
+ "step": 80
38
+ },
39
+ {
40
+ "epoch": 0.3597122302158273,
41
+ "grad_norm": 0.451171875,
42
+ "learning_rate": 0.00027184967850358286,
43
+ "loss": 1.42,
44
+ "step": 100
45
+ },
46
+ {
47
+ "epoch": 0.4316546762589928,
48
+ "grad_norm": 0.4453125,
49
+ "learning_rate": 0.00024257208459621828,
50
+ "loss": 1.4013,
51
+ "step": 120
52
+ },
53
+ {
54
+ "epoch": 0.5035971223021583,
55
+ "grad_norm": 0.4609375,
56
+ "learning_rate": 0.0002059284716670463,
57
+ "loss": 1.424,
58
+ "step": 140
59
+ },
60
+ {
61
+ "epoch": 0.5755395683453237,
62
+ "grad_norm": 0.443359375,
63
+ "learning_rate": 0.00016483459505463747,
64
+ "loss": 1.394,
65
+ "step": 160
66
+ },
67
+ {
68
+ "epoch": 0.6474820143884892,
69
+ "grad_norm": 0.462890625,
70
+ "learning_rate": 0.000122560320379142,
71
+ "loss": 1.3847,
72
+ "step": 180
73
+ },
74
+ {
75
+ "epoch": 0.7194244604316546,
76
+ "grad_norm": 0.44140625,
77
+ "learning_rate": 8.246943827734897e-05,
78
+ "loss": 1.3983,
79
+ "step": 200
80
+ },
81
+ {
82
+ "epoch": 0.7913669064748201,
83
+ "grad_norm": 0.462890625,
84
+ "learning_rate": 4.7752005465070094e-05,
85
+ "loss": 1.3804,
86
+ "step": 220
87
+ },
88
+ {
89
+ "epoch": 0.8633093525179856,
90
+ "grad_norm": 0.45703125,
91
+ "learning_rate": 2.117050991693609e-05,
92
+ "loss": 1.3835,
93
+ "step": 240
94
+ },
95
+ {
96
+ "epoch": 0.935251798561151,
97
+ "grad_norm": 0.455078125,
98
+ "learning_rate": 4.840057959975169e-06,
99
+ "loss": 1.3881,
100
+ "step": 260
101
+ },
102
+ {
103
+ "epoch": 1.0,
104
+ "step": 278,
105
+ "total_flos": 5010632390737920.0,
106
+ "train_loss": 1.4269454736503766,
107
+ "train_runtime": 555.1964,
108
+ "train_samples_per_second": 2.003,
109
+ "train_steps_per_second": 0.501
110
+ }
111
+ ],
112
+ "logging_steps": 20,
113
+ "max_steps": 278,
114
+ "num_input_tokens_seen": 0,
115
+ "num_train_epochs": 1,
116
+ "save_steps": 100,
117
+ "stateful_callbacks": {
118
+ "TrainerControl": {
119
+ "args": {
120
+ "should_epoch_stop": false,
121
+ "should_evaluate": false,
122
+ "should_log": false,
123
+ "should_save": true,
124
+ "should_training_stop": false
125
+ },
126
+ "attributes": {}
127
+ }
128
+ },
129
+ "total_flos": 5010632390737920.0,
130
+ "train_batch_size": 4,
131
+ "trial_name": null,
132
+ "trial_params": null
133
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fb191e85724f3f85f77a4252eeb796d3de79160a1b94210a10bf3ff99c38793
3
+ size 5368
vocab.json ADDED
The diff for this file is too large to render. See raw diff