tsavage68 commited on
Commit
0cc9aca
·
verified ·
1 Parent(s): 7cf373f

End of training

Browse files
README.md CHANGED
@@ -17,7 +17,7 @@ should probably proofread and complete it, then remove this comment. -->
17
 
18
  This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2) on an unknown dataset.
19
  It achieves the following results on the evaluation set:
20
- - Loss: 0.4442
21
 
22
  ## Model description
23
 
@@ -37,11 +37,9 @@ More information needed
37
 
38
  The following hyperparameters were used during training:
39
  - learning_rate: 1e-07
40
- - train_batch_size: 2
41
  - eval_batch_size: 1
42
  - seed: 42
43
- - gradient_accumulation_steps: 2
44
- - total_train_batch_size: 4
45
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
  - lr_scheduler_type: cosine
47
  - lr_scheduler_warmup_steps: 100
@@ -51,31 +49,31 @@ The following hyperparameters were used during training:
51
 
52
  | Training Loss | Epoch | Step | Validation Loss |
53
  |:-------------:|:------:|:----:|:---------------:|
54
- | 1.8849 | 0.0447 | 50 | 1.8726 |
55
- | 1.4871 | 0.0895 | 100 | 1.4453 |
56
- | 0.8608 | 0.1342 | 150 | 0.7955 |
57
- | 0.4432 | 0.1790 | 200 | 0.4648 |
58
- | 0.4269 | 0.2237 | 250 | 0.4556 |
59
- | 0.424 | 0.2685 | 300 | 0.4519 |
60
- | 0.4417 | 0.3132 | 350 | 0.4497 |
61
- | 0.4253 | 0.3579 | 400 | 0.4481 |
62
- | 0.4247 | 0.4027 | 450 | 0.4470 |
63
- | 0.4152 | 0.4474 | 500 | 0.4461 |
64
- | 0.4116 | 0.4922 | 550 | 0.4453 |
65
- | 0.4174 | 0.5369 | 600 | 0.4448 |
66
- | 0.4201 | 0.5817 | 650 | 0.4446 |
67
- | 0.423 | 0.6264 | 700 | 0.4444 |
68
- | 0.4243 | 0.6711 | 750 | 0.4441 |
69
- | 0.4325 | 0.7159 | 800 | 0.4442 |
70
- | 0.4128 | 0.7606 | 850 | 0.4441 |
71
- | 0.4207 | 0.8054 | 900 | 0.4441 |
72
- | 0.424 | 0.8501 | 950 | 0.4442 |
73
- | 0.4219 | 0.8949 | 1000 | 0.4442 |
74
 
75
 
76
  ### Framework versions
77
 
78
- - Transformers 4.42.3
79
  - Pytorch 2.0.0+cu117
80
  - Datasets 2.20.0
81
  - Tokenizers 0.19.1
 
17
 
18
  This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2) on an unknown dataset.
19
  It achieves the following results on the evaluation set:
20
+ - Loss: 0.0586
21
 
22
  ## Model description
23
 
 
37
 
38
  The following hyperparameters were used during training:
39
  - learning_rate: 1e-07
40
+ - train_batch_size: 1
41
  - eval_batch_size: 1
42
  - seed: 42
 
 
43
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
  - lr_scheduler_type: cosine
45
  - lr_scheduler_warmup_steps: 100
 
49
 
50
  | Training Loss | Epoch | Step | Validation Loss |
51
  |:-------------:|:------:|:----:|:---------------:|
52
+ | 2.0168 | 0.0112 | 50 | 1.9854 |
53
+ | 1.3848 | 0.0224 | 100 | 1.3059 |
54
+ | 0.1374 | 0.0336 | 150 | 0.1142 |
55
+ | 0.0099 | 0.0448 | 200 | 0.0587 |
56
+ | 0.0076 | 0.0559 | 250 | 0.0581 |
57
+ | 0.0073 | 0.0671 | 300 | 0.0580 |
58
+ | 0.0071 | 0.0783 | 350 | 0.0587 |
59
+ | 0.0071 | 0.0895 | 400 | 0.0586 |
60
+ | 0.0069 | 0.1007 | 450 | 0.0589 |
61
+ | 0.0068 | 0.1119 | 500 | 0.0586 |
62
+ | 0.0068 | 0.1231 | 550 | 0.0586 |
63
+ | 0.0067 | 0.1343 | 600 | 0.0588 |
64
+ | 0.0067 | 0.1454 | 650 | 0.0589 |
65
+ | 0.0066 | 0.1566 | 700 | 0.0590 |
66
+ | 0.0066 | 0.1678 | 750 | 0.0587 |
67
+ | 0.0066 | 0.1790 | 800 | 0.0588 |
68
+ | 0.0066 | 0.1902 | 850 | 0.0588 |
69
+ | 0.0066 | 0.2014 | 900 | 0.0586 |
70
+ | 0.0066 | 0.2126 | 950 | 0.0586 |
71
+ | 0.0066 | 0.2238 | 1000 | 0.0586 |
72
 
73
 
74
  ### Framework versions
75
 
76
+ - Transformers 4.42.4
77
  - Pytorch 2.0.0+cu117
78
  - Datasets 2.20.0
79
  - Tokenizers 0.19.1
config.json CHANGED
@@ -20,7 +20,7 @@
20
  "sliding_window": null,
21
  "tie_word_embeddings": false,
22
  "torch_dtype": "float16",
23
- "transformers_version": "4.42.3",
24
  "use_cache": false,
25
  "vocab_size": 32000
26
  }
 
20
  "sliding_window": null,
21
  "tie_word_embeddings": false,
22
  "torch_dtype": "float16",
23
+ "transformers_version": "4.42.4",
24
  "use_cache": false,
25
  "vocab_size": 32000
26
  }
final_checkpoint/config.json CHANGED
@@ -20,7 +20,7 @@
20
  "sliding_window": null,
21
  "tie_word_embeddings": false,
22
  "torch_dtype": "float16",
23
- "transformers_version": "4.42.3",
24
  "use_cache": false,
25
  "vocab_size": 32000
26
  }
 
20
  "sliding_window": null,
21
  "tie_word_embeddings": false,
22
  "torch_dtype": "float16",
23
+ "transformers_version": "4.42.4",
24
  "use_cache": false,
25
  "vocab_size": 32000
26
  }
final_checkpoint/generation_config.json CHANGED
@@ -2,5 +2,5 @@
2
  "_from_model_config": true,
3
  "bos_token_id": 1,
4
  "eos_token_id": 2,
5
- "transformers_version": "4.42.3"
6
  }
 
2
  "_from_model_config": true,
3
  "bos_token_id": 1,
4
  "eos_token_id": 2,
5
+ "transformers_version": "4.42.4"
6
  }
final_checkpoint/model-00001-of-00003.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0bffa714844631e46a66169aae2df3428ee7e8c704768d49234b90f19d0b1da5
3
  size 4943162240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c4ff2d9256673a5f7be81f7babe4ecc2a742e2e9a7a057c017f32b467b44635
3
  size 4943162240
final_checkpoint/model-00002-of-00003.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f8acd8dcfe3eef914d1d34914d548e1870b2a02468daba96fea34fc7c7811a7a
3
  size 4999819232
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37188812dfd2fb736ec74c32b80e5a1f39f6f86553dff4c6326501bfb861f7a7
3
  size 4999819232
final_checkpoint/model-00003-of-00003.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5ef257d88fcb1f000dd053a9f59648c5e08d5cf58f2a643113ad6feab93d5633
3
  size 4540516256
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a137b71b1dc010833e81b3b0584e56c10fe876c73e8601a88b6ebdf3bfd3087b
3
  size 4540516256
generation_config.json CHANGED
@@ -2,5 +2,5 @@
2
  "_from_model_config": true,
3
  "bos_token_id": 1,
4
  "eos_token_id": 2,
5
- "transformers_version": "4.42.3"
6
  }
 
2
  "_from_model_config": true,
3
  "bos_token_id": 1,
4
  "eos_token_id": 2,
5
+ "transformers_version": "4.42.4"
6
  }
model-00001-of-00003.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0bffa714844631e46a66169aae2df3428ee7e8c704768d49234b90f19d0b1da5
3
  size 4943162240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c4ff2d9256673a5f7be81f7babe4ecc2a742e2e9a7a057c017f32b467b44635
3
  size 4943162240
model-00002-of-00003.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f8acd8dcfe3eef914d1d34914d548e1870b2a02468daba96fea34fc7c7811a7a
3
  size 4999819232
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37188812dfd2fb736ec74c32b80e5a1f39f6f86553dff4c6326501bfb861f7a7
3
  size 4999819232
model-00003-of-00003.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5ef257d88fcb1f000dd053a9f59648c5e08d5cf58f2a643113ad6feab93d5633
3
  size 4540516256
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a137b71b1dc010833e81b3b0584e56c10fe876c73e8601a88b6ebdf3bfd3087b
3
  size 4540516256
tokenizer.json CHANGED
@@ -2,7 +2,7 @@
2
  "version": "1.0",
3
  "truncation": {
4
  "direction": "Right",
5
- "max_length": 2048,
6
  "strategy": "LongestFirst",
7
  "stride": 0
8
  },
@@ -36,23 +36,13 @@
36
  "special": true
37
  }
38
  ],
39
- "normalizer": {
40
- "type": "Sequence",
41
- "normalizers": [
42
- {
43
- "type": "Prepend",
44
- "prepend": "▁"
45
- },
46
- {
47
- "type": "Replace",
48
- "pattern": {
49
- "String": " "
50
- },
51
- "content": "▁"
52
- }
53
- ]
54
  },
55
- "pre_tokenizer": null,
56
  "post_processor": {
57
  "type": "TemplateProcessing",
58
  "single": [
 
2
  "version": "1.0",
3
  "truncation": {
4
  "direction": "Right",
5
+ "max_length": 1024,
6
  "strategy": "LongestFirst",
7
  "stride": 0
8
  },
 
36
  "special": true
37
  }
38
  ],
39
+ "normalizer": null,
40
+ "pre_tokenizer": {
41
+ "type": "Metaspace",
42
+ "replacement": "▁",
43
+ "prepend_scheme": "first",
44
+ "split": false
 
 
 
 
 
 
 
 
 
45
  },
 
46
  "post_processor": {
47
  "type": "TemplateProcessing",
48
  "single": [
tokenizer_config.json CHANGED
@@ -30,10 +30,10 @@
30
  },
31
  "additional_special_tokens": [],
32
  "bos_token": "<s>",
33
- "chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
34
  "clean_up_tokenization_spaces": false,
35
  "eos_token": "</s>",
36
- "legacy": true,
37
  "model_max_length": 1000000000000000019884624838656,
38
  "pad_token": "</s>",
39
  "sp_model_kwargs": {},
 
30
  },
31
  "additional_special_tokens": [],
32
  "bos_token": "<s>",
33
+ "chat_template": "{%- if messages[0]['role'] == 'system' %}\n {%- set system_message = messages[0]['content'] %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set loop_messages = messages %}\n{%- endif %}\n\n{{- bos_token }}\n{%- for message in loop_messages %}\n {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}\n {{- raise_exception('After the optional system message, conversation roles must alternate user/assistant/user/assistant/...') }}\n {%- endif %}\n {%- if message['role'] == 'user' %}\n {%- if loop.first and system_message is defined %}\n {{- ' [INST] ' + system_message + '\\n\\n' + message['content'] + ' [/INST]' }}\n {%- else %}\n {{- ' [INST] ' + message['content'] + ' [/INST]' }}\n {%- endif %}\n {%- elif message['role'] == 'assistant' %}\n {{- ' ' + message['content'] + eos_token}}\n {%- else %}\n {{- raise_exception('Only user and assistant roles are supported, with the exception of an initial optional system message!') }}\n {%- endif %}\n{%- endfor %}\n",
34
  "clean_up_tokenization_spaces": false,
35
  "eos_token": "</s>",
36
+ "legacy": false,
37
  "model_max_length": 1000000000000000019884624838656,
38
  "pad_token": "</s>",
39
  "sp_model_kwargs": {},
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b97858d85089058d23fda7dcd7e9dfe996e7baa38803cfdfa42e0622f5268cdd
3
  size 4667
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fdddd6c0ec31e1895f8a65b351660a02d706be113d62507b7d83f44900e1071
3
  size 4667