Model save
Browse files- README.md +17 -22
- adapter_config.json +3 -3
- adapter_model.safetensors +1 -1
- all_results.json +12 -18
- eval_results.json +12 -13
- runs/Dec25_16-17-11_uclaml03.cs.ucla.edu/events.out.tfevents.1703550035.uclaml03.cs.ucla.edu.2021654.0 +3 -0
- runs/Dec25_16-21-27_uclaml03.cs.ucla.edu/events.out.tfevents.1703550966.uclaml03.cs.ucla.edu.2024560.0 +3 -0
- special_tokens_map.json +5 -0
- tokenizer_config.json +6 -1
- training_args.bin +1 -1
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
---
|
2 |
-
license:
|
3 |
-
base_model:
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
model-index:
|
@@ -13,17 +13,21 @@ 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 [
|
17 |
It achieves the following results on the evaluation set:
|
18 |
-
-
|
19 |
-
-
|
20 |
-
-
|
21 |
-
-
|
22 |
-
-
|
23 |
-
-
|
24 |
-
-
|
25 |
-
-
|
26 |
-
-
|
|
|
|
|
|
|
|
|
27 |
|
28 |
## Model description
|
29 |
|
@@ -54,16 +58,7 @@ The following hyperparameters were used during training:
|
|
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:
|
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.6137 | 1.0 | 968 | 0.6277 | -0.0287 | -0.4191 | 0.7040 | 0.3905 | -232.6823 | -271.4433 | -2.9989 | -3.0154 |
|
64 |
-
| 0.0705 | 2.0 | 1937 | 0.0570 | -0.6708 | -1.6676 | 0.6960 | 0.9968 | -245.1669 | -277.8647 | -2.9609 | -2.9830 |
|
65 |
-
| -0.2602 | 3.0 | 2904 | -0.2038 | -1.1628 | -2.4457 | 0.6840 | 1.2829 | -252.9479 | -282.7848 | -2.9400 | -2.9655 |
|
66 |
-
|
67 |
|
68 |
### Framework versions
|
69 |
|
|
|
1 |
---
|
2 |
+
license: mit
|
3 |
+
base_model: HuggingFaceH4/zephyr-7b-beta
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
model-index:
|
|
|
13 |
|
14 |
# zephyr-7b-dpo-lora
|
15 |
|
16 |
+
This model is a fine-tuned version of [HuggingFaceH4/zephyr-7b-beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) on the None dataset.
|
17 |
It achieves the following results on the evaluation set:
|
18 |
+
- eval_loss: 0.6931
|
19 |
+
- eval_runtime: 824.3454
|
20 |
+
- eval_samples_per_second: 2.426
|
21 |
+
- eval_steps_per_second: 0.152
|
22 |
+
- eval_rewards/chosen: 0.0
|
23 |
+
- eval_rewards/rejected: 0.0
|
24 |
+
- eval_rewards/accuracies: 0.0
|
25 |
+
- eval_rewards/margins: 0.0
|
26 |
+
- eval_logps/rejected: -311.3714
|
27 |
+
- eval_logps/chosen: -319.0738
|
28 |
+
- eval_logits/rejected: -2.3541
|
29 |
+
- eval_logits/chosen: -2.4051
|
30 |
+
- step: 0
|
31 |
|
32 |
## Model description
|
33 |
|
|
|
58 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
59 |
- lr_scheduler_type: linear
|
60 |
- lr_scheduler_warmup_ratio: 0.1
|
61 |
+
- num_epochs: 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
### Framework versions
|
64 |
|
adapter_config.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"alpha_pattern": {},
|
3 |
"auto_mapping": null,
|
4 |
-
"base_model_name_or_path": "
|
5 |
"bias": "none",
|
6 |
"fan_in_fan_out": false,
|
7 |
"inference_mode": true,
|
@@ -16,10 +16,10 @@
|
|
16 |
"rank_pattern": {},
|
17 |
"revision": null,
|
18 |
"target_modules": [
|
|
|
19 |
"k_proj",
|
20 |
-
"q_proj",
|
21 |
"o_proj",
|
22 |
-
"
|
23 |
],
|
24 |
"task_type": "CAUSAL_LM"
|
25 |
}
|
|
|
1 |
{
|
2 |
"alpha_pattern": {},
|
3 |
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "HuggingFaceH4/zephyr-7b-beta",
|
5 |
"bias": "none",
|
6 |
"fan_in_fan_out": false,
|
7 |
"inference_mode": true,
|
|
|
16 |
"rank_pattern": {},
|
17 |
"revision": null,
|
18 |
"target_modules": [
|
19 |
+
"v_proj",
|
20 |
"k_proj",
|
|
|
21 |
"o_proj",
|
22 |
+
"q_proj"
|
23 |
],
|
24 |
"task_type": "CAUSAL_LM"
|
25 |
}
|
adapter_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 218138576
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9c4851d0fda021876b9eb5ecbd6ec0d108d643bb4b81a517a68af72134d8b407
|
3 |
size 218138576
|
all_results.json
CHANGED
@@ -1,21 +1,15 @@
|
|
1 |
{
|
2 |
-
"
|
3 |
-
"eval_logits/
|
4 |
-
"
|
5 |
-
"eval_logps/
|
6 |
-
"
|
7 |
-
"
|
8 |
-
"eval_rewards/
|
9 |
-
"eval_rewards/
|
10 |
-
"eval_rewards/
|
11 |
-
"
|
12 |
-
"eval_runtime": 444.1107,
|
13 |
"eval_samples": 2000,
|
14 |
-
"eval_samples_per_second":
|
15 |
-
"eval_steps_per_second": 0.
|
16 |
-
"train_loss": 0.36701411283100355,
|
17 |
-
"train_runtime": 84636.1866,
|
18 |
-
"train_samples": 61966,
|
19 |
-
"train_samples_per_second": 2.196,
|
20 |
-
"train_steps_per_second": 0.034
|
21 |
}
|
|
|
1 |
{
|
2 |
+
"eval_logits/chosen": -2.405111074447632,
|
3 |
+
"eval_logits/rejected": -2.3540520668029785,
|
4 |
+
"eval_logps/chosen": -319.0737609863281,
|
5 |
+
"eval_logps/rejected": -311.3714294433594,
|
6 |
+
"eval_loss": 0.6931473612785339,
|
7 |
+
"eval_rewards/accuracies": 0.0,
|
8 |
+
"eval_rewards/chosen": 0.0,
|
9 |
+
"eval_rewards/margins": 0.0,
|
10 |
+
"eval_rewards/rejected": 0.0,
|
11 |
+
"eval_runtime": 824.3454,
|
|
|
12 |
"eval_samples": 2000,
|
13 |
+
"eval_samples_per_second": 2.426,
|
14 |
+
"eval_steps_per_second": 0.152
|
|
|
|
|
|
|
|
|
|
|
15 |
}
|
eval_results.json
CHANGED
@@ -1,16 +1,15 @@
|
|
1 |
{
|
2 |
-
"
|
3 |
-
"eval_logits/
|
4 |
-
"
|
5 |
-
"eval_logps/
|
6 |
-
"
|
7 |
-
"
|
8 |
-
"eval_rewards/
|
9 |
-
"eval_rewards/
|
10 |
-
"eval_rewards/
|
11 |
-
"
|
12 |
-
"eval_runtime": 444.1107,
|
13 |
"eval_samples": 2000,
|
14 |
-
"eval_samples_per_second":
|
15 |
-
"eval_steps_per_second": 0.
|
16 |
}
|
|
|
1 |
{
|
2 |
+
"eval_logits/chosen": -2.405111074447632,
|
3 |
+
"eval_logits/rejected": -2.3540520668029785,
|
4 |
+
"eval_logps/chosen": -319.0737609863281,
|
5 |
+
"eval_logps/rejected": -311.3714294433594,
|
6 |
+
"eval_loss": 0.6931473612785339,
|
7 |
+
"eval_rewards/accuracies": 0.0,
|
8 |
+
"eval_rewards/chosen": 0.0,
|
9 |
+
"eval_rewards/margins": 0.0,
|
10 |
+
"eval_rewards/rejected": 0.0,
|
11 |
+
"eval_runtime": 824.3454,
|
|
|
12 |
"eval_samples": 2000,
|
13 |
+
"eval_samples_per_second": 2.426,
|
14 |
+
"eval_steps_per_second": 0.152
|
15 |
}
|
runs/Dec25_16-17-11_uclaml03.cs.ucla.edu/events.out.tfevents.1703550035.uclaml03.cs.ucla.edu.2021654.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:250af4f4ece551c2fa046ec94457acdec2f8d44ca160ef36fa08445d3631c98c
|
3 |
+
size 4371
|
runs/Dec25_16-21-27_uclaml03.cs.ucla.edu/events.out.tfevents.1703550966.uclaml03.cs.ucla.edu.2024560.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:478559017d57ef761b2adae946a053092d2a13e6530047481f26dcd67d9e9ab6
|
3 |
+
size 742
|
special_tokens_map.json
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
{
|
|
|
|
|
|
|
|
|
|
|
2 |
"bos_token": {
|
3 |
"content": "<s>",
|
4 |
"lstrip": false,
|
|
|
1 |
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<unk>",
|
4 |
+
"<s>",
|
5 |
+
"</s>"
|
6 |
+
],
|
7 |
"bos_token": {
|
8 |
"content": "<s>",
|
9 |
"lstrip": false,
|
tokenizer_config.json
CHANGED
@@ -25,7 +25,11 @@
|
|
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,
|
@@ -36,6 +40,7 @@
|
|
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 |
}
|
|
|
25 |
"special": true
|
26 |
}
|
27 |
},
|
28 |
+
"additional_special_tokens": [
|
29 |
+
"<unk>",
|
30 |
+
"<s>",
|
31 |
+
"</s>"
|
32 |
+
],
|
33 |
"bos_token": "<s>",
|
34 |
"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 %}",
|
35 |
"clean_up_tokenization_spaces": false,
|
|
|
40 |
"sp_model_kwargs": {},
|
41 |
"spaces_between_special_tokens": false,
|
42 |
"tokenizer_class": "LlamaTokenizer",
|
43 |
+
"truncation_side": "left",
|
44 |
"unk_token": "<unk>",
|
45 |
"use_default_system_prompt": true
|
46 |
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4728
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:86f1020552ee26305e6b63679fd14e3fefb3d8d2e891256da9ca15c98a8bded8
|
3 |
size 4728
|