youndukn commited on
Commit
5c0755a
1 Parent(s): 06df9c6

Model save

Browse files
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: TinyLlama/TinyLlama-1.1B-Chat-v1.0
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: TinyLlama-1.1B-Chat-v1.0-reasoning-v2-dpo-romantic
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # TinyLlama-1.1B-Chat-v1.0-reasoning-v2-dpo-romantic
15
+
16
+ This model is a fine-tuned version of [TinyLlama/TinyLlama-1.1B-Chat-v1.0](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 1.4293
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 2e-05
38
+ - train_batch_size: 4
39
+ - eval_batch_size: 8
40
+ - seed: 42
41
+ - distributed_type: multi-GPU
42
+ - gradient_accumulation_steps: 128
43
+ - total_train_batch_size: 512
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: cosine
46
+ - lr_scheduler_warmup_ratio: 0.1
47
+ - num_epochs: 3
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss |
52
+ |:-------------:|:-----:|:----:|:---------------:|
53
+ | 1.4496 | 0.4 | 4 | 1.4425 |
54
+ | 1.4508 | 1.39 | 8 | 1.4372 |
55
+ | 1.4458 | 2.39 | 12 | 1.4293 |
56
+
57
+
58
+ ### Framework versions
59
+
60
+ - Transformers 4.35.0
61
+ - Pytorch 2.1.0
62
+ - Datasets 2.14.6
63
+ - Tokenizers 0.14.1
adapter_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "lora_alpha": 16,
12
+ "lora_dropout": 0.1,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 64,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "o_proj",
20
+ "q_proj",
21
+ "v_proj",
22
+ "k_proj"
23
+ ],
24
+ "task_type": "CAUSAL_LM"
25
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:daccbcf3cd827eb0587dee01a7d9d0369ac16fbc99227dfb27134d1d8d13a966
3
+ size 72113224
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.39,
3
+ "eval_loss": 1.4292563199996948,
4
+ "eval_runtime": 12.4664,
5
+ "eval_samples": 575,
6
+ "eval_samples_per_second": 46.124,
7
+ "eval_steps_per_second": 5.776,
8
+ "train_loss": 1.4526023268699646,
9
+ "train_runtime": 1107.1405,
10
+ "train_samples": 5169,
11
+ "train_samples_per_second": 14.006,
12
+ "train_steps_per_second": 0.027
13
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.39,
3
+ "eval_loss": 1.4292563199996948,
4
+ "eval_runtime": 12.4664,
5
+ "eval_samples": 575,
6
+ "eval_samples_per_second": 46.124,
7
+ "eval_steps_per_second": 5.776
8
+ }
runs/Jan09_13-56-55_46e0bcaeaa2e/events.out.tfevents.1704808719.46e0bcaeaa2e.2235.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e561af705091386cd70f057810d2b01c57d4a66c85db65772e321368e000076b
3
+ size 5899
runs/Jan09_14-24-16_46e0bcaeaa2e/events.out.tfevents.1704810325.46e0bcaeaa2e.2537.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7e1509921f6193a87857b85a47fd79cad218b7554b679856bdee09b1cee23a0
3
+ size 6047
runs/Jan09_14-24-16_46e0bcaeaa2e/events.out.tfevents.1704811445.46e0bcaeaa2e.2537.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3faed847b92e84d3ef6f728109b51f6a7ff54c08dba6b31bc750e760b8c4deb2
3
+ size 354
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<unk>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<s>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ }
27
+ },
28
+ "bos_token": "<s>",
29
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
30
+ "clean_up_tokenization_spaces": false,
31
+ "eos_token": "</s>",
32
+ "legacy": false,
33
+ "model_max_length": 2048,
34
+ "pad_token": "</s>",
35
+ "padding_side": "right",
36
+ "sp_model_kwargs": {},
37
+ "tokenizer_class": "LlamaTokenizer",
38
+ "unk_token": "<unk>",
39
+ "use_default_system_prompt": false
40
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.39,
3
+ "train_loss": 1.4526023268699646,
4
+ "train_runtime": 1107.1405,
5
+ "train_samples": 5169,
6
+ "train_samples_per_second": 14.006,
7
+ "train_steps_per_second": 0.027
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 2.3928847641144624,
5
+ "eval_steps": 500,
6
+ "global_step": 12,
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.1,
13
+ "learning_rate": 6.666666666666667e-06,
14
+ "loss": 1.4496,
15
+ "step": 1
16
+ },
17
+ {
18
+ "epoch": 0.4,
19
+ "eval_loss": 1.4424513578414917,
20
+ "eval_runtime": 12.4902,
21
+ "eval_samples_per_second": 46.036,
22
+ "eval_steps_per_second": 5.765,
23
+ "step": 4
24
+ },
25
+ {
26
+ "epoch": 1.1,
27
+ "learning_rate": 1.973044870579824e-05,
28
+ "loss": 1.4508,
29
+ "step": 5
30
+ },
31
+ {
32
+ "epoch": 1.39,
33
+ "eval_loss": 1.437177062034607,
34
+ "eval_runtime": 12.4739,
35
+ "eval_samples_per_second": 46.096,
36
+ "eval_steps_per_second": 5.772,
37
+ "step": 8
38
+ },
39
+ {
40
+ "epoch": 2.19,
41
+ "learning_rate": 1.686241637868734e-05,
42
+ "loss": 1.4458,
43
+ "step": 10
44
+ },
45
+ {
46
+ "epoch": 2.39,
47
+ "eval_loss": 1.4292563199996948,
48
+ "eval_runtime": 12.4695,
49
+ "eval_samples_per_second": 46.113,
50
+ "eval_steps_per_second": 5.774,
51
+ "step": 12
52
+ },
53
+ {
54
+ "epoch": 2.39,
55
+ "step": 12,
56
+ "total_flos": 7.973531837844685e+16,
57
+ "train_loss": 1.4526023268699646,
58
+ "train_runtime": 1107.1405,
59
+ "train_samples_per_second": 14.006,
60
+ "train_steps_per_second": 0.027
61
+ }
62
+ ],
63
+ "logging_steps": 5,
64
+ "max_steps": 30,
65
+ "num_train_epochs": 3,
66
+ "save_steps": 500,
67
+ "total_flos": 7.973531837844685e+16,
68
+ "trial_name": null,
69
+ "trial_params": null
70
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0d38bb1c6d1af2def37aff4e06cf030172a35c31f9d69dc73721c592bdc4666
3
+ size 4728