CarlosPov commited on
Commit
dc89326
1 Parent(s): c3d0890

Training with 90/10 Spanish dataset, 50 epochs, 3 Batch Size, reduce_lr_on_plateau

Browse files
README.md ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama2
3
+ library_name: peft
4
+ tags:
5
+ - generated_from_trainer
6
+ base_model: meta-llama/Llama-2-7b-chat-hf
7
+ model-index:
8
+ - name: Llama-2-7b-chat-hf-finetune_90_10_SY_gold
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # Llama-2-7b-chat-hf-finetune_90_10_SY_gold
16
+
17
+ This model is a fine-tuned version of [meta-llama/Llama-2-7b-chat-hf](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 1.1470
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 0.0001
39
+ - train_batch_size: 3
40
+ - eval_batch_size: 3
41
+ - seed: 42
42
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
43
+ - lr_scheduler_type: reduce_lr_on_plateau
44
+ - num_epochs: 50
45
+ - mixed_precision_training: Native AMP
46
+
47
+ ### Training results
48
+
49
+ | Training Loss | Epoch | Step | Validation Loss |
50
+ |:-------------:|:-------:|:----:|:---------------:|
51
+ | 0.5446 | 0.9937 | 157 | 0.7173 |
52
+ | 0.0863 | 1.9873 | 314 | 0.8235 |
53
+ | 0.1229 | 2.9810 | 471 | 0.8690 |
54
+ | 0.0914 | 3.9747 | 628 | 0.9089 |
55
+ | 0.0766 | 4.9684 | 785 | 0.9324 |
56
+ | 0.0842 | 5.9620 | 942 | 0.9564 |
57
+ | 0.0725 | 6.9557 | 1099 | 0.9903 |
58
+ | 0.0584 | 7.9494 | 1256 | 1.0348 |
59
+ | 0.0653 | 8.9430 | 1413 | 1.0468 |
60
+ | 0.0601 | 9.9367 | 1570 | 1.0397 |
61
+ | 0.0601 | 10.9304 | 1727 | 1.0622 |
62
+ | 0.0595 | 11.9241 | 1884 | 1.0757 |
63
+ | 0.0676 | 12.9177 | 2041 | 1.0911 |
64
+ | 0.0513 | 13.9114 | 2198 | 1.0942 |
65
+ | 0.0492 | 14.9051 | 2355 | 1.0980 |
66
+ | 0.0489 | 15.8987 | 2512 | 1.1041 |
67
+ | 0.05 | 16.8924 | 2669 | 1.1095 |
68
+ | 0.0498 | 17.8861 | 2826 | 1.1136 |
69
+ | 0.0494 | 18.8797 | 2983 | 1.1174 |
70
+ | 0.0483 | 19.8734 | 3140 | 1.1220 |
71
+ | 0.0476 | 20.8671 | 3297 | 1.1226 |
72
+ | 0.0487 | 21.8608 | 3454 | 1.1250 |
73
+ | 0.048 | 22.8544 | 3611 | 1.1297 |
74
+ | 0.0445 | 23.8481 | 3768 | 1.1307 |
75
+ | 0.0461 | 24.8418 | 3925 | 1.1321 |
76
+ | 0.0456 | 25.8354 | 4082 | 1.1338 |
77
+ | 0.0455 | 26.8291 | 4239 | 1.1355 |
78
+ | 0.0437 | 27.8228 | 4396 | 1.1372 |
79
+ | 0.0434 | 28.8165 | 4553 | 1.1390 |
80
+ | 0.0442 | 29.8101 | 4710 | 1.1400 |
81
+ | 0.0432 | 30.8038 | 4867 | 1.1417 |
82
+ | 0.0433 | 31.7975 | 5024 | 1.1426 |
83
+ | 0.0424 | 32.7911 | 5181 | 1.1437 |
84
+ | 0.0415 | 33.7848 | 5338 | 1.1453 |
85
+ | 0.0424 | 34.7785 | 5495 | 1.1453 |
86
+ | 0.0399 | 35.7722 | 5652 | 1.1455 |
87
+ | 0.04 | 36.7658 | 5809 | 1.1457 |
88
+ | 0.0401 | 37.7595 | 5966 | 1.1458 |
89
+ | 0.0394 | 38.7532 | 6123 | 1.1461 |
90
+ | 0.0369 | 39.7468 | 6280 | 1.1462 |
91
+ | 0.0515 | 40.7405 | 6437 | 1.1464 |
92
+ | 0.0511 | 41.7342 | 6594 | 1.1465 |
93
+ | 0.0483 | 42.7278 | 6751 | 1.1465 |
94
+ | 0.0478 | 43.7215 | 6908 | 1.1468 |
95
+ | 0.0492 | 44.7152 | 7065 | 1.1469 |
96
+ | 0.0492 | 45.7089 | 7222 | 1.1469 |
97
+ | 0.0473 | 46.7025 | 7379 | 1.1469 |
98
+ | 0.0483 | 47.6962 | 7536 | 1.1470 |
99
+ | 0.0474 | 48.6899 | 7693 | 1.1470 |
100
+ | 0.0473 | 49.6835 | 7850 | 1.1470 |
101
+
102
+
103
+ ### Framework versions
104
+
105
+ - PEFT 0.11.1
106
+ - Transformers 4.40.2
107
+ - Pytorch 2.3.0+cu121
108
+ - Datasets 2.20.0
109
+ - Tokenizers 0.19.1
adapter_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "meta-llama/Llama-2-7b-chat-hf",
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": 16,
14
+ "lora_dropout": 0.0001,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": [
18
+ "lm_head",
19
+ "embed_tokens"
20
+ ],
21
+ "peft_type": "LORA",
22
+ "r": 64,
23
+ "rank_pattern": {},
24
+ "revision": null,
25
+ "target_modules": [
26
+ "up_proj",
27
+ "q_proj",
28
+ "v_proj",
29
+ "gate_proj",
30
+ "o_proj",
31
+ "k_proj",
32
+ "down_proj"
33
+ ],
34
+ "task_type": "CAUSAL_LM",
35
+ "use_dora": false,
36
+ "use_rslora": false
37
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a2e98f9f8fa16c3f1d68305374b3ab8a85dffe51532b0bb9d1b500bc15957e4
3
+ size 1688269144
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<s>",
31
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "legacy": false,
35
+ "model_max_length": 1000000000000000019884624838656,
36
+ "pad_token": "</s>",
37
+ "padding_side": "right",
38
+ "sp_model_kwargs": {},
39
+ "tokenizer_class": "LlamaTokenizer",
40
+ "unk_token": "<unk>",
41
+ "use_default_system_prompt": false
42
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5357ccc7d424a05bc2b6e78a0ec98eb782e4f82689419422741fa0330569fd33
3
+ size 5048