jiangjun0105woven
commited on
Commit
•
cd1a359
1
Parent(s):
aa9c5c8
End of training
Browse files- README.md +12 -9
- all_results.json +13 -0
- config.json +42 -0
- eval_results.json +16 -0
- runs/Oct25_12-34-43_spg-sv08/events.out.tfevents.1729875189.spg-sv08.2030372.1 +3 -0
README.md
CHANGED
@@ -1,8 +1,11 @@
|
|
1 |
---
|
2 |
base_model: mistralai/Mistral-7B-v0.1
|
|
|
|
|
3 |
library_name: peft
|
4 |
license: apache-2.0
|
5 |
tags:
|
|
|
6 |
- trl
|
7 |
- dpo
|
8 |
- generated_from_trainer
|
@@ -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: -2.1712
|
23 |
-
- Rewards/rejected: -2.
|
24 |
-
- Rewards/accuracies: 0.
|
25 |
-
- Rewards/margins: 0.
|
26 |
-
- Logps/rejected: -535.
|
27 |
-
- Logps/chosen: -475.
|
28 |
-
- Logits/rejected: -1.
|
29 |
-
- Logits/chosen: -1.
|
30 |
|
31 |
## Model description
|
32 |
|
|
|
1 |
---
|
2 |
base_model: mistralai/Mistral-7B-v0.1
|
3 |
+
datasets:
|
4 |
+
- HuggingFaceH4/ultrafeedback_binarized
|
5 |
library_name: peft
|
6 |
license: apache-2.0
|
7 |
tags:
|
8 |
+
- alignment-handbook
|
9 |
- trl
|
10 |
- dpo
|
11 |
- generated_from_trainer
|
|
|
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.5020
|
25 |
- Rewards/chosen: -2.1712
|
26 |
+
- Rewards/rejected: -2.9620
|
27 |
+
- Rewards/accuracies: 0.7054
|
28 |
+
- Rewards/margins: 0.7908
|
29 |
+
- Logps/rejected: -535.7245
|
30 |
+
- Logps/chosen: -475.6829
|
31 |
+
- Logits/rejected: -1.1754
|
32 |
+
- Logits/chosen: -1.2812
|
33 |
|
34 |
## Model description
|
35 |
|
all_results.json
CHANGED
@@ -1,5 +1,18 @@
|
|
1 |
{
|
2 |
"epoch": 1.0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
"total_flos": 0.0,
|
4 |
"train_loss": 0.5397420258873861,
|
5 |
"train_runtime": 14909.9591,
|
|
|
1 |
{
|
2 |
"epoch": 1.0,
|
3 |
+
"eval_logits/chosen": -1.2812360525131226,
|
4 |
+
"eval_logits/rejected": -1.175386905670166,
|
5 |
+
"eval_logps/chosen": -475.6828918457031,
|
6 |
+
"eval_logps/rejected": -535.7244873046875,
|
7 |
+
"eval_loss": 0.5020151734352112,
|
8 |
+
"eval_rewards/accuracies": 0.7053571343421936,
|
9 |
+
"eval_rewards/chosen": -2.1711955070495605,
|
10 |
+
"eval_rewards/margins": 0.7908250093460083,
|
11 |
+
"eval_rewards/rejected": -2.9620203971862793,
|
12 |
+
"eval_runtime": 218.5799,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 9.15,
|
15 |
+
"eval_steps_per_second": 0.384,
|
16 |
"total_flos": 0.0,
|
17 |
"train_loss": 0.5397420258873861,
|
18 |
"train_runtime": 14909.9591,
|
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": 1.0,
|
3 |
+
"eval_logits/chosen": -1.2812360525131226,
|
4 |
+
"eval_logits/rejected": -1.175386905670166,
|
5 |
+
"eval_logps/chosen": -475.6828918457031,
|
6 |
+
"eval_logps/rejected": -535.7244873046875,
|
7 |
+
"eval_loss": 0.5020151734352112,
|
8 |
+
"eval_rewards/accuracies": 0.7053571343421936,
|
9 |
+
"eval_rewards/chosen": -2.1711955070495605,
|
10 |
+
"eval_rewards/margins": 0.7908250093460083,
|
11 |
+
"eval_rewards/rejected": -2.9620203971862793,
|
12 |
+
"eval_runtime": 218.5799,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 9.15,
|
15 |
+
"eval_steps_per_second": 0.384
|
16 |
+
}
|
runs/Oct25_12-34-43_spg-sv08/events.out.tfevents.1729875189.spg-sv08.2030372.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b0b4bdd1f1afabaad193ecb1a11d9d5074276a97a19d02332d4cf4526f83d7db
|
3 |
+
size 828
|