End of training
Browse files
README.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1 |
---
|
2 |
base_model: HuggingFaceH4/zephyr-7b-gemma-sft-v0.1
|
|
|
|
|
|
|
3 |
library_name: peft
|
4 |
license: other
|
5 |
tags:
|
|
|
6 |
- trl
|
7 |
- dpo
|
8 |
- generated_from_trainer
|
@@ -16,17 +20,17 @@ should probably proofread and complete it, then remove this comment. -->
|
|
16 |
|
17 |
# zephyr-7b-gemma-dpo
|
18 |
|
19 |
-
This model is a fine-tuned version of [HuggingFaceH4/zephyr-7b-gemma-sft-v0.1](https://huggingface.co/HuggingFaceH4/zephyr-7b-gemma-sft-v0.1) on the
|
20 |
It achieves the following results on the evaluation set:
|
21 |
-
- Loss: 0.
|
22 |
-
- Rewards/chosen: -0.
|
23 |
-
- Rewards/rejected: -0.
|
24 |
-
- Rewards/accuracies: 0.
|
25 |
-
- Rewards/margins: 0.
|
26 |
-
- Logps/rejected: -334.
|
27 |
-
- Logps/chosen: -295.
|
28 |
-
- Logits/rejected: 436.
|
29 |
-
- Logits/chosen: 452.
|
30 |
|
31 |
## Model description
|
32 |
|
|
|
1 |
---
|
2 |
base_model: HuggingFaceH4/zephyr-7b-gemma-sft-v0.1
|
3 |
+
datasets:
|
4 |
+
- argilla/dpo-mix-7k
|
5 |
+
- RedaAlami/PKU-SafeRLHF-Processed
|
6 |
library_name: peft
|
7 |
license: other
|
8 |
tags:
|
9 |
+
- alignment-handbook
|
10 |
- trl
|
11 |
- dpo
|
12 |
- generated_from_trainer
|
|
|
20 |
|
21 |
# zephyr-7b-gemma-dpo
|
22 |
|
23 |
+
This model is a fine-tuned version of [HuggingFaceH4/zephyr-7b-gemma-sft-v0.1](https://huggingface.co/HuggingFaceH4/zephyr-7b-gemma-sft-v0.1) on the argilla/dpo-mix-7k and the RedaAlami/PKU-SafeRLHF-Processed datasets.
|
24 |
It achieves the following results on the evaluation set:
|
25 |
+
- Loss: 0.6478
|
26 |
+
- Rewards/chosen: -0.3452
|
27 |
+
- Rewards/rejected: -0.5788
|
28 |
+
- Rewards/accuracies: 0.6169
|
29 |
+
- Rewards/margins: 0.2336
|
30 |
+
- Logps/rejected: -334.5554
|
31 |
+
- Logps/chosen: -295.9647
|
32 |
+
- Logits/rejected: 436.0139
|
33 |
+
- Logits/chosen: 452.6414
|
34 |
|
35 |
## Model description
|
36 |
|
all_results.json
CHANGED
@@ -1,5 +1,18 @@
|
|
1 |
{
|
2 |
"epoch": 1.9986987638256344,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
"total_flos": 0.0,
|
4 |
"train_loss": 0.6547494133313497,
|
5 |
"train_runtime": 8032.2795,
|
|
|
1 |
{
|
2 |
"epoch": 1.9986987638256344,
|
3 |
+
"eval_logits/chosen": 452.641357421875,
|
4 |
+
"eval_logits/rejected": 436.01385498046875,
|
5 |
+
"eval_logps/chosen": -295.9647216796875,
|
6 |
+
"eval_logps/rejected": -334.555419921875,
|
7 |
+
"eval_loss": 0.6477869153022766,
|
8 |
+
"eval_rewards/accuracies": 0.6168639063835144,
|
9 |
+
"eval_rewards/chosen": -0.34524381160736084,
|
10 |
+
"eval_rewards/margins": 0.23360556364059448,
|
11 |
+
"eval_rewards/rejected": -0.5788493752479553,
|
12 |
+
"eval_runtime": 243.7753,
|
13 |
+
"eval_samples": 5406,
|
14 |
+
"eval_samples_per_second": 22.176,
|
15 |
+
"eval_steps_per_second": 0.693,
|
16 |
"total_flos": 0.0,
|
17 |
"train_loss": 0.6547494133313497,
|
18 |
"train_runtime": 8032.2795,
|
config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "HuggingFaceH4/zephyr-7b-gemma-sft-v0.1",
|
3 |
+
"architectures": [
|
4 |
+
"GemmaForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"bos_token_id": 2,
|
9 |
+
"eos_token_id": 1,
|
10 |
+
"head_dim": 256,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
13 |
+
"hidden_size": 3072,
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"intermediate_size": 24576,
|
16 |
+
"max_position_embeddings": 8192,
|
17 |
+
"model_type": "gemma",
|
18 |
+
"num_attention_heads": 16,
|
19 |
+
"num_hidden_layers": 28,
|
20 |
+
"num_key_value_heads": 16,
|
21 |
+
"pad_token_id": 0,
|
22 |
+
"quantization_config": {
|
23 |
+
"_load_in_4bit": true,
|
24 |
+
"_load_in_8bit": false,
|
25 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
26 |
+
"bnb_4bit_quant_storage": "uint8",
|
27 |
+
"bnb_4bit_quant_type": "nf4",
|
28 |
+
"bnb_4bit_use_double_quant": false,
|
29 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
30 |
+
"llm_int8_has_fp16_weight": false,
|
31 |
+
"llm_int8_skip_modules": null,
|
32 |
+
"llm_int8_threshold": 6.0,
|
33 |
+
"load_in_4bit": true,
|
34 |
+
"load_in_8bit": false,
|
35 |
+
"quant_method": "bitsandbytes"
|
36 |
+
},
|
37 |
+
"rms_norm_eps": 1e-06,
|
38 |
+
"rope_scaling": null,
|
39 |
+
"rope_theta": 10000.0,
|
40 |
+
"torch_dtype": "bfloat16",
|
41 |
+
"transformers_version": "4.43.3",
|
42 |
+
"use_cache": true,
|
43 |
+
"vocab_size": 256000
|
44 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.9986987638256344,
|
3 |
+
"eval_logits/chosen": 452.641357421875,
|
4 |
+
"eval_logits/rejected": 436.01385498046875,
|
5 |
+
"eval_logps/chosen": -295.9647216796875,
|
6 |
+
"eval_logps/rejected": -334.555419921875,
|
7 |
+
"eval_loss": 0.6477869153022766,
|
8 |
+
"eval_rewards/accuracies": 0.6168639063835144,
|
9 |
+
"eval_rewards/chosen": -0.34524381160736084,
|
10 |
+
"eval_rewards/margins": 0.23360556364059448,
|
11 |
+
"eval_rewards/rejected": -0.5788493752479553,
|
12 |
+
"eval_runtime": 243.7753,
|
13 |
+
"eval_samples": 5406,
|
14 |
+
"eval_samples_per_second": 22.176,
|
15 |
+
"eval_steps_per_second": 0.693
|
16 |
+
}
|
runs/Jul31_11-58-27_ip-172-16-2-184.us-west-2.compute.internal/events.out.tfevents.1722435568.ip-172-16-2-184.us-west-2.compute.internal.45409.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:43428576dd032014b432311e40581bf451bca7298c6ac252912e58f8d45e1d44
|
3 |
+
size 828
|