Commit
•
0814c54
1
Parent(s):
cacfe08
Model save
Browse files- README.md +72 -0
- adapter_config.json +25 -0
- adapter_model.safetensors +3 -0
- all_results.json +21 -0
- eval_results.json +16 -0
- runs/Nov10_12-20-56_ip-26-0-152-211/events.out.tfevents.1699619038.ip-26-0-152-211.859454.0 +3 -0
- runs/Nov10_12-20-56_ip-26-0-152-211/events.out.tfevents.1699627184.ip-26-0-152-211.859454.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,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.5270
|
19 |
+
- Rewards/chosen: -0.1210
|
20 |
+
- Rewards/rejected: -0.9978
|
21 |
+
- Rewards/accuracies: 0.7812
|
22 |
+
- Rewards/margins: 0.8768
|
23 |
+
- Logps/rejected: -198.5849
|
24 |
+
- Logps/chosen: -248.6519
|
25 |
+
- Logits/rejected: -1.9190
|
26 |
+
- Logits/chosen: -2.0860
|
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: 32
|
51 |
+
- total_train_batch_size: 64
|
52 |
+
- total_eval_batch_size: 128
|
53 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
54 |
+
- lr_scheduler_type: linear
|
55 |
+
- lr_scheduler_warmup_ratio: 0.1
|
56 |
+
- num_epochs: 3
|
57 |
+
|
58 |
+
### Training results
|
59 |
+
|
60 |
+
| Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
|
61 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
|
62 |
+
| 0.5491 | 1.0 | 969 | 0.5563 | -0.0962 | -0.7226 | 0.7812 | 0.6263 | -195.8333 | -248.4046 | -1.9755 | -2.1375 |
|
63 |
+
| 0.5454 | 2.0 | 1938 | 0.5312 | -0.1249 | -0.9600 | 0.7969 | 0.8351 | -198.2077 | -248.6910 | -1.9316 | -2.0971 |
|
64 |
+
| 0.5242 | 3.0 | 2907 | 0.5270 | -0.1210 | -0.9978 | 0.7812 | 0.8768 | -198.5849 | -248.6519 | -1.9190 | -2.0860 |
|
65 |
+
|
66 |
+
|
67 |
+
### Framework versions
|
68 |
+
|
69 |
+
- Transformers 4.35.0
|
70 |
+
- Pytorch 2.1.0+cu118
|
71 |
+
- Datasets 2.14.6
|
72 |
+
- 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 |
+
"v_proj",
|
21 |
+
"o_proj",
|
22 |
+
"q_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:264a3c053b11c90dcd9ceeeda0f7537f83dcc7a59125928c4f19031f03be635f
|
3 |
+
size 218138576
|
all_results.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_logits/chosen": -2.085988998413086,
|
4 |
+
"eval_logits/rejected": -1.9190013408660889,
|
5 |
+
"eval_logps/chosen": -248.65191650390625,
|
6 |
+
"eval_logps/rejected": -198.58494567871094,
|
7 |
+
"eval_loss": 0.5269633531570435,
|
8 |
+
"eval_rewards/accuracies": 0.78125,
|
9 |
+
"eval_rewards/chosen": -0.12098389863967896,
|
10 |
+
"eval_rewards/margins": 0.8767741918563843,
|
11 |
+
"eval_rewards/rejected": -0.9977580308914185,
|
12 |
+
"eval_runtime": 49.9631,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 40.03,
|
15 |
+
"eval_steps_per_second": 0.32,
|
16 |
+
"train_loss": 0.5643668570057567,
|
17 |
+
"train_runtime": 8096.9375,
|
18 |
+
"train_samples": 61966,
|
19 |
+
"train_samples_per_second": 22.959,
|
20 |
+
"train_steps_per_second": 0.359
|
21 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"eval_logits/chosen": -2.085988998413086,
|
4 |
+
"eval_logits/rejected": -1.9190013408660889,
|
5 |
+
"eval_logps/chosen": -248.65191650390625,
|
6 |
+
"eval_logps/rejected": -198.58494567871094,
|
7 |
+
"eval_loss": 0.5269633531570435,
|
8 |
+
"eval_rewards/accuracies": 0.78125,
|
9 |
+
"eval_rewards/chosen": -0.12098389863967896,
|
10 |
+
"eval_rewards/margins": 0.8767741918563843,
|
11 |
+
"eval_rewards/rejected": -0.9977580308914185,
|
12 |
+
"eval_runtime": 49.9631,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 40.03,
|
15 |
+
"eval_steps_per_second": 0.32
|
16 |
+
}
|
runs/Nov10_12-20-56_ip-26-0-152-211/events.out.tfevents.1699619038.ip-26-0-152-211.859454.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c586c809d7ec4c3f124fbde2bab0946be97638a3d620e49dd6dd6f9e1209bb5d
|
3 |
+
size 191268
|
runs/Nov10_12-20-56_ip-26-0-152-211/events.out.tfevents.1699627184.ip-26-0-152-211.859454.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:88fec9f9c49e10efa8c9e63c0c5ca51aecc9b402f8b7573a96c19f94074f65cf
|
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.5643668570057567,
|
4 |
+
"train_runtime": 8096.9375,
|
5 |
+
"train_samples": 61966,
|
6 |
+
"train_samples_per_second": 22.959,
|
7 |
+
"train_steps_per_second": 0.359
|
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:900c1632fa48b2074ba3b08024549d04fcc0354b9655feb068ee189e456064e2
|
3 |
+
size 4728
|