ketchup123
commited on
Commit
•
4a1941e
1
Parent(s):
a5b0816
End of training
Browse files- README.md +13 -10
- all_results.json +13 -0
- config.json +42 -0
- eval_results.json +16 -0
- runs/Oct28_13-44-52_TUEILTI-GPU004/events.out.tfevents.1730127744.TUEILTI-GPU004.852476.1 +3 -0
README.md
CHANGED
@@ -3,9 +3,12 @@ library_name: peft
|
|
3 |
license: apache-2.0
|
4 |
base_model: mistralai/Mistral-7B-v0.1
|
5 |
tags:
|
|
|
6 |
- trl
|
7 |
- dpo
|
8 |
- generated_from_trainer
|
|
|
|
|
9 |
model-index:
|
10 |
- name: zephyr-7b-dpo-qlora
|
11 |
results: []
|
@@ -16,17 +19,17 @@ should probably proofread and complete it, then remove this comment. -->
|
|
16 |
|
17 |
# zephyr-7b-dpo-qlora
|
18 |
|
19 |
-
This model is a fine-tuned version of [
|
20 |
It achieves the following results on the evaluation set:
|
21 |
-
- Loss: 0.
|
22 |
-
- Rewards/chosen: -
|
23 |
-
- Rewards/rejected: -
|
24 |
-
- Rewards/accuracies: 0.
|
25 |
-
- Rewards/margins: 0.
|
26 |
-
- Logps/rejected: -
|
27 |
-
- Logps/chosen: -
|
28 |
-
- Logits/rejected: -1.
|
29 |
-
- Logits/chosen: -1.
|
30 |
|
31 |
## Model description
|
32 |
|
|
|
3 |
license: apache-2.0
|
4 |
base_model: mistralai/Mistral-7B-v0.1
|
5 |
tags:
|
6 |
+
- alignment-handbook
|
7 |
- trl
|
8 |
- dpo
|
9 |
- generated_from_trainer
|
10 |
+
datasets:
|
11 |
+
- HuggingFaceH4/ultrafeedback_binarized
|
12 |
model-index:
|
13 |
- name: zephyr-7b-dpo-qlora
|
14 |
results: []
|
|
|
19 |
|
20 |
# zephyr-7b-dpo-qlora
|
21 |
|
22 |
+
This model is a fine-tuned version of [alignment-handbook/zephyr-7b-sft-qlora](https://huggingface.co/alignment-handbook/zephyr-7b-sft-qlora) on the HuggingFaceH4/ultrafeedback_binarized dataset.
|
23 |
It achieves the following results on the evaluation set:
|
24 |
+
- Loss: 0.5031
|
25 |
+
- Rewards/chosen: -1.9728
|
26 |
+
- Rewards/rejected: -2.9618
|
27 |
+
- Rewards/accuracies: 0.7695
|
28 |
+
- Rewards/margins: 0.9890
|
29 |
+
- Logps/rejected: -543.7128
|
30 |
+
- Logps/chosen: -443.7073
|
31 |
+
- Logits/rejected: -1.1810
|
32 |
+
- Logits/chosen: -1.2525
|
33 |
|
34 |
## Model description
|
35 |
|
all_results.json
CHANGED
@@ -1,5 +1,18 @@
|
|
1 |
{
|
2 |
"epoch": 0.9984301412872841,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
"total_flos": 0.0,
|
4 |
"train_loss": 0.5421361258444796,
|
5 |
"train_runtime": 7660.497,
|
|
|
1 |
{
|
2 |
"epoch": 0.9984301412872841,
|
3 |
+
"eval_logits/chosen": -1.2525343894958496,
|
4 |
+
"eval_logits/rejected": -1.1810396909713745,
|
5 |
+
"eval_logps/chosen": -443.7073059082031,
|
6 |
+
"eval_logps/rejected": -543.7128295898438,
|
7 |
+
"eval_loss": 0.5031002759933472,
|
8 |
+
"eval_rewards/accuracies": 0.76953125,
|
9 |
+
"eval_rewards/chosen": -1.9727791547775269,
|
10 |
+
"eval_rewards/margins": 0.9890241622924805,
|
11 |
+
"eval_rewards/rejected": -2.961803436279297,
|
12 |
+
"eval_runtime": 110.64,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 18.077,
|
15 |
+
"eval_steps_per_second": 0.289,
|
16 |
"total_flos": 0.0,
|
17 |
"train_loss": 0.5421361258444796,
|
18 |
"train_runtime": 7660.497,
|
config.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "mistralai/Mistral-7B-v0.1",
|
3 |
+
"architectures": [
|
4 |
+
"MistralForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 1,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"head_dim": 128,
|
10 |
+
"hidden_act": "silu",
|
11 |
+
"hidden_size": 4096,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 14336,
|
14 |
+
"max_position_embeddings": 32768,
|
15 |
+
"model_type": "mistral",
|
16 |
+
"num_attention_heads": 32,
|
17 |
+
"num_hidden_layers": 32,
|
18 |
+
"num_key_value_heads": 8,
|
19 |
+
"quantization_config": {
|
20 |
+
"_load_in_4bit": true,
|
21 |
+
"_load_in_8bit": false,
|
22 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
23 |
+
"bnb_4bit_quant_storage": "uint8",
|
24 |
+
"bnb_4bit_quant_type": "nf4",
|
25 |
+
"bnb_4bit_use_double_quant": false,
|
26 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
27 |
+
"llm_int8_has_fp16_weight": false,
|
28 |
+
"llm_int8_skip_modules": null,
|
29 |
+
"llm_int8_threshold": 6.0,
|
30 |
+
"load_in_4bit": true,
|
31 |
+
"load_in_8bit": false,
|
32 |
+
"quant_method": "bitsandbytes"
|
33 |
+
},
|
34 |
+
"rms_norm_eps": 1e-05,
|
35 |
+
"rope_theta": 10000.0,
|
36 |
+
"sliding_window": 4096,
|
37 |
+
"tie_word_embeddings": false,
|
38 |
+
"torch_dtype": "bfloat16",
|
39 |
+
"transformers_version": "4.45.2",
|
40 |
+
"use_cache": true,
|
41 |
+
"vocab_size": 32000
|
42 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.9984301412872841,
|
3 |
+
"eval_logits/chosen": -1.2525343894958496,
|
4 |
+
"eval_logits/rejected": -1.1810396909713745,
|
5 |
+
"eval_logps/chosen": -443.7073059082031,
|
6 |
+
"eval_logps/rejected": -543.7128295898438,
|
7 |
+
"eval_loss": 0.5031002759933472,
|
8 |
+
"eval_rewards/accuracies": 0.76953125,
|
9 |
+
"eval_rewards/chosen": -1.9727791547775269,
|
10 |
+
"eval_rewards/margins": 0.9890241622924805,
|
11 |
+
"eval_rewards/rejected": -2.961803436279297,
|
12 |
+
"eval_runtime": 110.64,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 18.077,
|
15 |
+
"eval_steps_per_second": 0.289
|
16 |
+
}
|
runs/Oct28_13-44-52_TUEILTI-GPU004/events.out.tfevents.1730127744.TUEILTI-GPU004.852476.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:77d43d21111c23324268f0b21cde9dc6e4bcdad03cc1dd07c33c243d29de6876
|
3 |
+
size 828
|