Model save
Browse files- README.md +73 -0
- adapter_config.json +25 -0
- adapter_model.safetensors +3 -0
- all_results.json +21 -0
- eval_results.json +16 -0
- runs/Dec08_15-05-24_uclaml03.cs.ucla.edu/events.out.tfevents.1702076810.uclaml03.cs.ucla.edu.2469919.0 +3 -0
- runs/Dec08_15-29-27_uclaml03.cs.ucla.edu/events.out.tfevents.1702078257.uclaml03.cs.ucla.edu.2480377.0 +3 -0
- runs/Dec08_15-29-27_uclaml03.cs.ucla.edu/events.out.tfevents.1702149905.uclaml03.cs.ucla.edu.2480377.1 +3 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +41 -0
- train_results.json +8 -0
- trainer_state.json +0 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.5266
|
19 |
+
- Rewards/chosen: -0.1470
|
20 |
+
- Rewards/rejected: -0.8985
|
21 |
+
- Rewards/accuracies: 0.7460
|
22 |
+
- Rewards/margins: 0.7516
|
23 |
+
- Logps/rejected: -228.2694
|
24 |
+
- Logps/chosen: -266.1304
|
25 |
+
- Logits/rejected: -1.9412
|
26 |
+
- Logits/chosen: -2.0659
|
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 |
+
- num_devices: 4
|
51 |
+
- gradient_accumulation_steps: 8
|
52 |
+
- total_train_batch_size: 64
|
53 |
+
- total_eval_batch_size: 16
|
54 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
55 |
+
- lr_scheduler_type: linear
|
56 |
+
- lr_scheduler_warmup_ratio: 0.1
|
57 |
+
- num_epochs: 3
|
58 |
+
|
59 |
+
### Training results
|
60 |
+
|
61 |
+
| Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
|
62 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
|
63 |
+
| 0.5501 | 1.0 | 968 | 0.5560 | -0.1093 | -0.6400 | 0.7200 | 0.5307 | -225.6847 | -265.7538 | -1.9901 | -2.1115 |
|
64 |
+
| 0.5412 | 2.0 | 1936 | 0.5318 | -0.1497 | -0.8640 | 0.7420 | 0.7143 | -227.9245 | -266.1583 | -1.9509 | -2.0748 |
|
65 |
+
| 0.5454 | 3.0 | 2904 | 0.5266 | -0.1470 | -0.8985 | 0.7460 | 0.7516 | -228.2694 | -266.1304 | -1.9412 | -2.0659 |
|
66 |
+
|
67 |
+
|
68 |
+
### Framework versions
|
69 |
+
|
70 |
+
- Transformers 4.35.0
|
71 |
+
- Pytorch 2.1.1+cu121
|
72 |
+
- Datasets 2.14.6
|
73 |
+
- 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 |
+
"q_proj",
|
20 |
+
"o_proj",
|
21 |
+
"v_proj",
|
22 |
+
"k_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:1250a500d169b9ccbef2d0c2c5e354bc243cdefbe1d3aab19d8a72dc9f370211
|
3 |
+
size 218138576
|
all_results.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_logits/chosen": -2.0658671855926514,
|
4 |
+
"eval_logits/rejected": -1.9411793947219849,
|
5 |
+
"eval_logps/chosen": -266.13037109375,
|
6 |
+
"eval_logps/rejected": -228.2694091796875,
|
7 |
+
"eval_loss": 0.5265706777572632,
|
8 |
+
"eval_rewards/accuracies": 0.7459999918937683,
|
9 |
+
"eval_rewards/chosen": -0.1469534933567047,
|
10 |
+
"eval_rewards/margins": 0.7515553832054138,
|
11 |
+
"eval_rewards/rejected": -0.8985088467597961,
|
12 |
+
"eval_runtime": 453.4186,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 4.411,
|
15 |
+
"eval_steps_per_second": 0.276,
|
16 |
+
"train_loss": 0.5642705829018732,
|
17 |
+
"train_runtime": 71197.0849,
|
18 |
+
"train_samples": 61966,
|
19 |
+
"train_samples_per_second": 2.611,
|
20 |
+
"train_steps_per_second": 0.041
|
21 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_logits/chosen": -2.0658671855926514,
|
4 |
+
"eval_logits/rejected": -1.9411793947219849,
|
5 |
+
"eval_logps/chosen": -266.13037109375,
|
6 |
+
"eval_logps/rejected": -228.2694091796875,
|
7 |
+
"eval_loss": 0.5265706777572632,
|
8 |
+
"eval_rewards/accuracies": 0.7459999918937683,
|
9 |
+
"eval_rewards/chosen": -0.1469534933567047,
|
10 |
+
"eval_rewards/margins": 0.7515553832054138,
|
11 |
+
"eval_rewards/rejected": -0.8985088467597961,
|
12 |
+
"eval_runtime": 453.4186,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 4.411,
|
15 |
+
"eval_steps_per_second": 0.276
|
16 |
+
}
|
runs/Dec08_15-05-24_uclaml03.cs.ucla.edu/events.out.tfevents.1702076810.uclaml03.cs.ucla.edu.2469919.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9f9109e6a515e3cb4535649a57deaabf5c09cebf5f9cc83b5d2b388567c7590f
|
3 |
+
size 4959
|
runs/Dec08_15-29-27_uclaml03.cs.ucla.edu/events.out.tfevents.1702078257.uclaml03.cs.ucla.edu.2480377.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:81d02f20cbac7433aa93174247a17de7fec5ba88254b0236c207b7d5c3bf5752
|
3 |
+
size 191260
|
runs/Dec08_15-29-27_uclaml03.cs.ucla.edu/events.out.tfevents.1702149905.uclaml03.cs.ucla.edu.2480377.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:51af0221e19ef212b813aaf9f0a081c64f8d876d5f264b2389313c924f26c35c
|
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.5642705829018732,
|
4 |
+
"train_runtime": 71197.0849,
|
5 |
+
"train_samples": 61966,
|
6 |
+
"train_samples_per_second": 2.611,
|
7 |
+
"train_steps_per_second": 0.041
|
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:0e3d89c98a70b3981eccd16d991d900549d9d0c1def54f9297d39d15769e4812
|
3 |
+
size 4728
|