Ai-Marshal
commited on
Commit
•
5628eff
1
Parent(s):
674b016
Ai-Marshal/mistral_12.5k_A100_5epoch_adapter
Browse files- README.md +107 -0
- adapter_config.json +34 -0
- adapter_model.safetensors +3 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer_config.json +43 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- sft
|
7 |
+
- generated_from_trainer
|
8 |
+
base_model: mistralai/Mistral-7B-Instruct-v0.2
|
9 |
+
datasets:
|
10 |
+
- generator
|
11 |
+
model-index:
|
12 |
+
- name: Mistral_Sentiment_Classification_2024-06-02
|
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 |
+
# Mistral_Sentiment_Classification_2024-06-02
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2) on the generator dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.3000
|
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: 2.5e-05
|
43 |
+
- train_batch_size: 1
|
44 |
+
- eval_batch_size: 8
|
45 |
+
- seed: 42
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: linear
|
48 |
+
- lr_scheduler_warmup_steps: 0.03
|
49 |
+
- num_epochs: 5
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
54 |
+
|:-------------:|:------:|:----:|:---------------:|
|
55 |
+
| 0.4414 | 0.1126 | 100 | 0.3360 |
|
56 |
+
| 0.3434 | 0.2252 | 200 | 0.3211 |
|
57 |
+
| 0.3107 | 0.3378 | 300 | 0.3150 |
|
58 |
+
| 0.3306 | 0.4505 | 400 | 0.3103 |
|
59 |
+
| 0.3087 | 0.5631 | 500 | 0.3071 |
|
60 |
+
| 0.3226 | 0.6757 | 600 | 0.3044 |
|
61 |
+
| 0.3091 | 0.7883 | 700 | 0.3021 |
|
62 |
+
| 0.3277 | 0.9009 | 800 | 0.3004 |
|
63 |
+
| 0.3068 | 1.0135 | 900 | 0.2991 |
|
64 |
+
| 0.295 | 1.1261 | 1000 | 0.2981 |
|
65 |
+
| 0.2844 | 1.2387 | 1100 | 0.2964 |
|
66 |
+
| 0.2885 | 1.3514 | 1200 | 0.2949 |
|
67 |
+
| 0.3047 | 1.4640 | 1300 | 0.2938 |
|
68 |
+
| 0.2985 | 1.5766 | 1400 | 0.2929 |
|
69 |
+
| 0.2792 | 1.6892 | 1500 | 0.2922 |
|
70 |
+
| 0.2739 | 1.8018 | 1600 | 0.2906 |
|
71 |
+
| 0.2757 | 1.9144 | 1700 | 0.2897 |
|
72 |
+
| 0.2632 | 2.0270 | 1800 | 0.2920 |
|
73 |
+
| 0.2707 | 2.1396 | 1900 | 0.2927 |
|
74 |
+
| 0.2615 | 2.2523 | 2000 | 0.2919 |
|
75 |
+
| 0.2428 | 2.3649 | 2100 | 0.2913 |
|
76 |
+
| 0.2614 | 2.4775 | 2200 | 0.2908 |
|
77 |
+
| 0.2661 | 2.5901 | 2300 | 0.2904 |
|
78 |
+
| 0.2711 | 2.7027 | 2400 | 0.2900 |
|
79 |
+
| 0.2566 | 2.8153 | 2500 | 0.2888 |
|
80 |
+
| 0.252 | 2.9279 | 2600 | 0.2884 |
|
81 |
+
| 0.2623 | 3.0405 | 2700 | 0.2927 |
|
82 |
+
| 0.2222 | 3.1532 | 2800 | 0.2942 |
|
83 |
+
| 0.2446 | 3.2658 | 2900 | 0.2943 |
|
84 |
+
| 0.2281 | 3.3784 | 3000 | 0.2942 |
|
85 |
+
| 0.2284 | 3.4910 | 3100 | 0.2942 |
|
86 |
+
| 0.2282 | 3.6036 | 3200 | 0.2937 |
|
87 |
+
| 0.2218 | 3.7162 | 3300 | 0.2939 |
|
88 |
+
| 0.2531 | 3.8288 | 3400 | 0.2919 |
|
89 |
+
| 0.2396 | 3.9414 | 3500 | 0.2922 |
|
90 |
+
| 0.2261 | 4.0541 | 3600 | 0.2989 |
|
91 |
+
| 0.2202 | 4.1667 | 3700 | 0.3000 |
|
92 |
+
| 0.2085 | 4.2793 | 3800 | 0.3001 |
|
93 |
+
| 0.2132 | 4.3919 | 3900 | 0.3001 |
|
94 |
+
| 0.2119 | 4.5045 | 4000 | 0.3005 |
|
95 |
+
| 0.2285 | 4.6171 | 4100 | 0.2999 |
|
96 |
+
| 0.2053 | 4.7297 | 4200 | 0.3003 |
|
97 |
+
| 0.2097 | 4.8423 | 4300 | 0.3005 |
|
98 |
+
| 0.2273 | 4.9550 | 4400 | 0.3000 |
|
99 |
+
|
100 |
+
|
101 |
+
### Framework versions
|
102 |
+
|
103 |
+
- PEFT 0.11.1
|
104 |
+
- Transformers 4.41.2
|
105 |
+
- Pytorch 2.3.0+cu121
|
106 |
+
- Datasets 2.19.1
|
107 |
+
- 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": "mistralai/Mistral-7B-Instruct-v0.2",
|
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": 64,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"up_proj",
|
24 |
+
"v_proj",
|
25 |
+
"k_proj",
|
26 |
+
"q_proj",
|
27 |
+
"down_proj",
|
28 |
+
"o_proj",
|
29 |
+
"gate_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:780405d984120991c22102b9038f88c6c28b90fd549da7db2e513f7366861a81
|
3 |
+
size 671149168
|
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_config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"additional_special_tokens": [],
|
31 |
+
"bos_token": "<s>",
|
32 |
+
"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 %}",
|
33 |
+
"clean_up_tokenization_spaces": false,
|
34 |
+
"eos_token": "</s>",
|
35 |
+
"legacy": true,
|
36 |
+
"model_max_length": 1000000000000000019884624838656,
|
37 |
+
"pad_token": "</s>",
|
38 |
+
"sp_model_kwargs": {},
|
39 |
+
"spaces_between_special_tokens": false,
|
40 |
+
"tokenizer_class": "LlamaTokenizer",
|
41 |
+
"unk_token": "<unk>",
|
42 |
+
"use_default_system_prompt": false
|
43 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4a322a139ffc46012f5c91f2b7222514cb3352d896b39e32cc7f65166b7f96d2
|
3 |
+
size 5112
|