Tejaswi006 commited on
Commit
2911a50
·
1 Parent(s): a2a4d69

Model save

Browse files
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: mistralai/Mistral-7B-v0.1
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: zephyr-7b-dpo-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
+ # zephyr-7b-dpo-lora
15
+
16
+ This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on the None dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 0.5261
19
+ - Rewards/chosen: -0.1563
20
+ - Rewards/rejected: -0.9035
21
+ - Rewards/accuracies: 0.7315
22
+ - Rewards/margins: 0.7472
23
+ - Logps/rejected: -232.6935
24
+ - Logps/chosen: -266.1220
25
+ - Logits/rejected: -1.9669
26
+ - Logits/chosen: -2.0211
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 5e-07
46
+ - train_batch_size: 2
47
+ - eval_batch_size: 4
48
+ - seed: 42
49
+ - distributed_type: multi-GPU
50
+ - gradient_accumulation_steps: 32
51
+ - total_train_batch_size: 64
52
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
53
+ - lr_scheduler_type: linear
54
+ - lr_scheduler_warmup_ratio: 0.1
55
+ - num_epochs: 3
56
+
57
+ ### Training results
58
+
59
+ | Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
60
+ |:-------------:|:-----:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
61
+ | 0.5647 | 1.0 | 968 | 0.5544 | -0.1110 | -0.6475 | 0.7130 | 0.5365 | -230.1329 | -265.6688 | -2.0148 | -2.0684 |
62
+ | 0.5569 | 2.0 | 1936 | 0.5303 | -0.1538 | -0.8646 | 0.7320 | 0.7108 | -232.3041 | -266.0967 | -1.9784 | -2.0322 |
63
+ | 0.5188 | 3.0 | 2904 | 0.5261 | -0.1563 | -0.9035 | 0.7315 | 0.7472 | -232.6935 | -266.1220 | -1.9669 | -2.0211 |
64
+
65
+
66
+ ### Framework versions
67
+
68
+ - Transformers 4.35.0
69
+ - Pytorch 2.1.1+cu121
70
+ - Datasets 2.14.6
71
+ - 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-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
+ "o_proj",
22
+ "v_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:065a47558d26079253315c4929725aa00e02d3649941d286c1d07bbcd4a47067
3
+ size 218138576
all_results.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_logits/chosen": -2.021121025085449,
4
+ "eval_logits/rejected": -1.9669499397277832,
5
+ "eval_logps/chosen": -266.1219787597656,
6
+ "eval_logps/rejected": -232.6935272216797,
7
+ "eval_loss": 0.5260806679725647,
8
+ "eval_rewards/accuracies": 0.7315000295639038,
9
+ "eval_rewards/chosen": -0.15633665025234222,
10
+ "eval_rewards/margins": 0.7471960186958313,
11
+ "eval_rewards/rejected": -0.9035327434539795,
12
+ "eval_runtime": 1138.5214,
13
+ "eval_samples": 2000,
14
+ "eval_samples_per_second": 1.757,
15
+ "eval_steps_per_second": 0.439,
16
+ "train_loss": 0.5634611926500791,
17
+ "train_runtime": 159830.7227,
18
+ "train_samples": 61966,
19
+ "train_samples_per_second": 1.163,
20
+ "train_steps_per_second": 0.018
21
+ }
eval_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_logits/chosen": -2.021121025085449,
4
+ "eval_logits/rejected": -1.9669499397277832,
5
+ "eval_logps/chosen": -266.1219787597656,
6
+ "eval_logps/rejected": -232.6935272216797,
7
+ "eval_loss": 0.5260806679725647,
8
+ "eval_rewards/accuracies": 0.7315000295639038,
9
+ "eval_rewards/chosen": -0.15633665025234222,
10
+ "eval_rewards/margins": 0.7471960186958313,
11
+ "eval_rewards/rejected": -0.9035327434539795,
12
+ "eval_runtime": 1138.5214,
13
+ "eval_samples": 2000,
14
+ "eval_samples_per_second": 1.757,
15
+ "eval_steps_per_second": 0.439
16
+ }
runs/Dec15_11-29-52_s4311/events.out.tfevents.1702639931.s4311.1866871.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c77bd765a3b25d9c2a98cefd3a5455587e8ceced69ca72903df2315b44eaacc2
3
+ size 191246
runs/Dec15_11-29-52_s4311/events.out.tfevents.1702800900.s4311.1866871.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6167e18c553a3973127e2fde98a2336f25fdb53b0e2c61745ac3951acc1f0356
3
+ size 828
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
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": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% 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": true
41
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "train_loss": 0.5634611926500791,
4
+ "train_runtime": 159830.7227,
5
+ "train_samples": 61966,
6
+ "train_samples_per_second": 1.163,
7
+ "train_steps_per_second": 0.018
8
+ }
trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
 
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7befb80341bdcc1df9a1a262c0c229d1909c72ab43ac3e4d1354fefd29fec1ba
3
+ size 4728