dchoi44 commited on
Commit
b3e390d
·
verified ·
1 Parent(s): 01f1cf8

Model save

Browse files
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - orpo
7
+ - generated_from_trainer
8
+ base_model: meta-llama/Meta-Llama-3-8B
9
+ model-index:
10
+ - name: llama-3-orpo-qlora
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # llama-3-orpo-qlora
18
+
19
+ This model is a fine-tuned version of [meta-llama/Meta-Llama-3-8B](https://huggingface.co/meta-llama/Meta-Llama-3-8B) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 1.0581
22
+ - Rewards/chosen: -0.0823
23
+ - Rewards/rejected: -0.2496
24
+ - Rewards/accuracies: 0.7879
25
+ - Rewards/margins: 0.1673
26
+ - Logps/rejected: -2.4958
27
+ - Logps/chosen: -0.8230
28
+ - Logits/rejected: -1.0347
29
+ - Logits/chosen: -0.9355
30
+ - Nll Loss: 1.0625
31
+ - Log Odds Ratio: -0.3947
32
+ - Log Odds Chosen: 2.1017
33
+
34
+ ## Model description
35
+
36
+ More information needed
37
+
38
+ ## Intended uses & limitations
39
+
40
+ More information needed
41
+
42
+ ## Training and evaluation data
43
+
44
+ More information needed
45
+
46
+ ## Training procedure
47
+
48
+ ### Training hyperparameters
49
+
50
+ The following hyperparameters were used during training:
51
+ - learning_rate: 8e-06
52
+ - train_batch_size: 2
53
+ - eval_batch_size: 2
54
+ - seed: 77
55
+ - distributed_type: multi-GPU
56
+ - num_devices: 3
57
+ - gradient_accumulation_steps: 4
58
+ - total_train_batch_size: 24
59
+ - total_eval_batch_size: 6
60
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
61
+ - lr_scheduler_type: linear
62
+ - lr_scheduler_warmup_steps: 30
63
+ - num_epochs: 5
64
+
65
+ ### Training results
66
+
67
+ | Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen | Nll Loss | Log Odds Ratio | Log Odds Chosen |
68
+ |:-------------:|:------:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|:--------:|:--------------:|:---------------:|
69
+ | 1.2408 | 0.9998 | 1639 | 1.1078 | -0.0850 | -0.1592 | 0.7045 | 0.0742 | -1.5920 | -0.8498 | -0.9217 | -0.9313 | 1.1014 | -0.4987 | 1.0714 |
70
+ | 1.2158 | 1.9997 | 3278 | 1.0768 | -0.0818 | -0.1961 | 0.7273 | 0.1143 | -1.9613 | -0.8183 | -0.7536 | -0.7772 | 1.0726 | -0.4562 | 1.5271 |
71
+ | 1.0891 | 2.9995 | 4917 | 1.0654 | -0.0820 | -0.2184 | 0.7197 | 0.1365 | -2.1845 | -0.8200 | -0.9358 | -0.8876 | 1.0648 | -0.4458 | 1.7377 |
72
+ | 1.0521 | 3.9994 | 6556 | 1.0605 | -0.0824 | -0.2405 | 0.7727 | 0.1581 | -2.4049 | -0.8244 | -0.9998 | -0.8917 | 1.0630 | -0.4060 | 1.9929 |
73
+ | 1.0763 | 4.9992 | 8195 | 1.0581 | -0.0823 | -0.2496 | 0.7879 | 0.1673 | -2.4958 | -0.8230 | -1.0347 | -0.9355 | 1.0625 | -0.3947 | 2.1017 |
74
+
75
+
76
+ ### Framework versions
77
+
78
+ - PEFT 0.11.1
79
+ - Transformers 4.41.2
80
+ - Pytorch 2.3.1
81
+ - Datasets 2.19.2
82
+ - Tokenizers 0.19.1
adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "meta-llama/Meta-Llama-3-8B",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 32,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 16,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "o_proj",
24
+ "k_proj",
25
+ "q_proj",
26
+ "v_proj",
27
+ "down_proj",
28
+ "gate_proj",
29
+ "up_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c774b944348671f42c68c1d38f8daa3666f6e03c0705e52740021e1948d2a1ae
3
+ size 2269211544
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.999237456153729,
3
+ "total_flos": 0.0,
4
+ "train_loss": 1.1049469483633314,
5
+ "train_runtime": 586416.3764,
6
+ "train_samples": 39339,
7
+ "train_samples_per_second": 0.335,
8
+ "train_steps_per_second": 0.014
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.999237456153729,
3
+ "total_flos": 0.0,
4
+ "train_loss": 1.1049469483633314,
5
+ "train_runtime": 586416.3764,
6
+ "train_samples": 39339,
7
+ "train_samples_per_second": 0.335,
8
+ "train_steps_per_second": 0.014
9
+ }
trainer_state.json ADDED
The diff for this file is too large to render. See raw diff