justinwangx commited on
Commit
e092ce1
·
1 Parent(s): 81500b1

Model save

Browse files
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: mistralai/Mistral-7B-Instruct-v0.1
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: mistral-instruct-adv-robust-3-sft-lora
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
+ # mistral-instruct-adv-robust-3-sft-lora
15
+
16
+ This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.1](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 2.5498
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: 0.0003
38
+ - train_batch_size: 4
39
+ - eval_batch_size: 8
40
+ - seed: 42
41
+ - distributed_type: multi-GPU
42
+ - num_devices: 4
43
+ - gradient_accumulation_steps: 16
44
+ - total_train_batch_size: 256
45
+ - total_eval_batch_size: 32
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: cosine
48
+ - num_epochs: 3
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss |
53
+ |:-------------:|:-----:|:----:|:---------------:|
54
+ | 3.1318 | 0.12 | 1 | 2.8355 |
55
+ | 3.1318 | 1.12 | 2 | 2.6371 |
56
+ | 3.1318 | 2.12 | 3 | 2.4963 |
57
+
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 4.35.0
62
+ - Pytorch 2.1.0a0+32f93b1
63
+ - Datasets 2.14.6
64
+ - 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": "mistralai/Mistral-7B-Instruct-v0.1",
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
+ "k_proj",
20
+ "q_proj",
21
+ "v_proj",
22
+ "o_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:29c55278f6fb9e8cb7f6880bebe4efa53063d92efd8aa988d98809f27c1dc009
3
+ size 109086672
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.12,
3
+ "eval_loss": 2.549821615219116,
4
+ "eval_runtime": 1.5336,
5
+ "eval_samples": 234,
6
+ "eval_samples_per_second": 152.584,
7
+ "eval_steps_per_second": 5.217,
8
+ "train_loss": 2.9835983912150064,
9
+ "train_runtime": 146.3783,
10
+ "train_samples": 2097,
11
+ "train_samples_per_second": 42.978,
12
+ "train_steps_per_second": 0.164
13
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.12,
3
+ "eval_loss": 2.549821615219116,
4
+ "eval_runtime": 1.5336,
5
+ "eval_samples": 234,
6
+ "eval_samples_per_second": 152.584,
7
+ "eval_steps_per_second": 5.217
8
+ }
runs/Jan08_20-24-37_c33a1a6d4547/events.out.tfevents.1704745624.c33a1a6d4547.1255.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4960d7590e4410329bb6ef7639047b7db43a1f7e94984384b01cf045eb85290f
3
+ size 5601
runs/Jan08_20-24-37_c33a1a6d4547/events.out.tfevents.1704745772.c33a1a6d4547.1255.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29dd3adbebc0f0287c00b7d6ed0b43251670ba320203566b6709b42a88f6e7b2
3
+ size 306
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:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
tokenizer_config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "additional_special_tokens": [],
29
+ "bos_token": "<s>",
30
+ "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 %}",
31
+ "clean_up_tokenization_spaces": false,
32
+ "eos_token": "</s>",
33
+ "legacy": true,
34
+ "model_max_length": 2048,
35
+ "pad_token": "</s>",
36
+ "sp_model_kwargs": {},
37
+ "spaces_between_special_tokens": false,
38
+ "tokenizer_class": "LlamaTokenizer",
39
+ "unk_token": "<unk>",
40
+ "use_default_system_prompt": false
41
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.12,
3
+ "train_loss": 2.9835983912150064,
4
+ "train_runtime": 146.3783,
5
+ "train_samples": 2097,
6
+ "train_samples_per_second": 42.978,
7
+ "train_steps_per_second": 0.164
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 2.121212121212121,
5
+ "eval_steps": 500,
6
+ "global_step": 3,
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.12,
13
+ "learning_rate": 0.00029871672920607153,
14
+ "loss": 3.1318,
15
+ "step": 1
16
+ },
17
+ {
18
+ "epoch": 0.12,
19
+ "eval_loss": 2.8355371952056885,
20
+ "eval_runtime": 1.8669,
21
+ "eval_samples_per_second": 125.339,
22
+ "eval_steps_per_second": 4.285,
23
+ "step": 1
24
+ },
25
+ {
26
+ "epoch": 1.12,
27
+ "eval_loss": 2.63714861869812,
28
+ "eval_runtime": 1.5412,
29
+ "eval_samples_per_second": 151.829,
30
+ "eval_steps_per_second": 5.191,
31
+ "step": 2
32
+ },
33
+ {
34
+ "epoch": 2.12,
35
+ "eval_loss": 2.496318817138672,
36
+ "eval_runtime": 1.5238,
37
+ "eval_samples_per_second": 153.559,
38
+ "eval_steps_per_second": 5.25,
39
+ "step": 3
40
+ },
41
+ {
42
+ "epoch": 2.12,
43
+ "step": 3,
44
+ "total_flos": 270826947477504.0,
45
+ "train_loss": 2.9835983912150064,
46
+ "train_runtime": 146.3783,
47
+ "train_samples_per_second": 42.978,
48
+ "train_steps_per_second": 0.164
49
+ }
50
+ ],
51
+ "logging_steps": 5,
52
+ "max_steps": 24,
53
+ "num_train_epochs": 3,
54
+ "save_steps": 500,
55
+ "total_flos": 270826947477504.0,
56
+ "trial_name": null,
57
+ "trial_params": null
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97b41f85065bd5a2c4de181b61230762a44325e1c0e139aa6894b9d121d56647
3
+ size 5688