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-01
|
| 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-01
|
| 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.2992
|
| 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.4525 | 0.1126 | 100 | 0.3376 |
|
| 56 |
+
| 0.3445 | 0.2252 | 200 | 0.3210 |
|
| 57 |
+
| 0.3244 | 0.3378 | 300 | 0.3147 |
|
| 58 |
+
| 0.3012 | 0.4505 | 400 | 0.3101 |
|
| 59 |
+
| 0.3169 | 0.5631 | 500 | 0.3069 |
|
| 60 |
+
| 0.3357 | 0.6757 | 600 | 0.3045 |
|
| 61 |
+
| 0.31 | 0.7883 | 700 | 0.3027 |
|
| 62 |
+
| 0.3146 | 0.9009 | 800 | 0.3008 |
|
| 63 |
+
| 0.2868 | 1.0135 | 900 | 0.2988 |
|
| 64 |
+
| 0.2881 | 1.1261 | 1000 | 0.2988 |
|
| 65 |
+
| 0.3123 | 1.2387 | 1100 | 0.2972 |
|
| 66 |
+
| 0.2796 | 1.3514 | 1200 | 0.2960 |
|
| 67 |
+
| 0.2865 | 1.4640 | 1300 | 0.2943 |
|
| 68 |
+
| 0.2906 | 1.5766 | 1400 | 0.2929 |
|
| 69 |
+
| 0.2713 | 1.6892 | 1500 | 0.2919 |
|
| 70 |
+
| 0.2751 | 1.8018 | 1600 | 0.2906 |
|
| 71 |
+
| 0.2916 | 1.9144 | 1700 | 0.2895 |
|
| 72 |
+
| 0.264 | 2.0270 | 1800 | 0.2917 |
|
| 73 |
+
| 0.2603 | 2.1396 | 1900 | 0.2919 |
|
| 74 |
+
| 0.2486 | 2.2523 | 2000 | 0.2917 |
|
| 75 |
+
| 0.2583 | 2.3649 | 2100 | 0.2910 |
|
| 76 |
+
| 0.2556 | 2.4775 | 2200 | 0.2905 |
|
| 77 |
+
| 0.2629 | 2.5901 | 2300 | 0.2897 |
|
| 78 |
+
| 0.2423 | 2.7027 | 2400 | 0.2894 |
|
| 79 |
+
| 0.256 | 2.8153 | 2500 | 0.2889 |
|
| 80 |
+
| 0.2664 | 2.9279 | 2600 | 0.2881 |
|
| 81 |
+
| 0.2595 | 3.0405 | 2700 | 0.2933 |
|
| 82 |
+
| 0.2297 | 3.1532 | 2800 | 0.2955 |
|
| 83 |
+
| 0.239 | 3.2658 | 2900 | 0.2940 |
|
| 84 |
+
| 0.2363 | 3.3784 | 3000 | 0.2929 |
|
| 85 |
+
| 0.2295 | 3.4910 | 3100 | 0.2937 |
|
| 86 |
+
| 0.2438 | 3.6036 | 3200 | 0.2923 |
|
| 87 |
+
| 0.2226 | 3.7162 | 3300 | 0.2920 |
|
| 88 |
+
| 0.2473 | 3.8288 | 3400 | 0.2924 |
|
| 89 |
+
| 0.2314 | 3.9414 | 3500 | 0.2919 |
|
| 90 |
+
| 0.2218 | 4.0541 | 3600 | 0.2985 |
|
| 91 |
+
| 0.218 | 4.1667 | 3700 | 0.2994 |
|
| 92 |
+
| 0.2154 | 4.2793 | 3800 | 0.2994 |
|
| 93 |
+
| 0.2032 | 4.3919 | 3900 | 0.2994 |
|
| 94 |
+
| 0.2234 | 4.5045 | 4000 | 0.2996 |
|
| 95 |
+
| 0.224 | 4.6171 | 4100 | 0.2995 |
|
| 96 |
+
| 0.1978 | 4.7297 | 4200 | 0.2997 |
|
| 97 |
+
| 0.2204 | 4.8423 | 4300 | 0.3000 |
|
| 98 |
+
| 0.2114 | 4.9550 | 4400 | 0.2992 |
|
| 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 |
+
"gate_proj",
|
| 25 |
+
"v_proj",
|
| 26 |
+
"o_proj",
|
| 27 |
+
"down_proj",
|
| 28 |
+
"q_proj",
|
| 29 |
+
"k_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:f0804dd92ca1bb693ef7d4e6b9ab27a018064414290911a1aa7d45f03afc71a3
|
| 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:a5783ee5ca1c5b21ca78c71c0b75a31543d69694eae7b7a03b29bb766f26e48f
|
| 3 |
+
size 5112
|