AmberYifan
commited on
Model save
Browse files- README.md +58 -0
- all_results.json +9 -0
- generation_config.json +10 -0
- train_results.json +9 -0
- trainer_state.json +147 -0
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: llama2
|
3 |
+
base_model: meta-llama/Llama-2-7b-hf
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: Llama-2-7b-spin-2k
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# Llama-2-7b-spin-2k
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [meta-llama/Llama-2-7b-hf](https://huggingface.co/meta-llama/Llama-2-7b-hf) on an unknown dataset.
|
17 |
+
|
18 |
+
## Model description
|
19 |
+
|
20 |
+
More information needed
|
21 |
+
|
22 |
+
## Intended uses & limitations
|
23 |
+
|
24 |
+
More information needed
|
25 |
+
|
26 |
+
## Training and evaluation data
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Training procedure
|
31 |
+
|
32 |
+
### Training hyperparameters
|
33 |
+
|
34 |
+
The following hyperparameters were used during training:
|
35 |
+
- learning_rate: 5e-07
|
36 |
+
- train_batch_size: 4
|
37 |
+
- eval_batch_size: 4
|
38 |
+
- seed: 42
|
39 |
+
- distributed_type: multi-GPU
|
40 |
+
- num_devices: 4
|
41 |
+
- gradient_accumulation_steps: 2
|
42 |
+
- total_train_batch_size: 32
|
43 |
+
- total_eval_batch_size: 16
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- lr_scheduler_warmup_ratio: 0.1
|
47 |
+
- num_epochs: 1
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
### Framework versions
|
54 |
+
|
55 |
+
- Transformers 4.43.3
|
56 |
+
- Pytorch 2.2.2+cu121
|
57 |
+
- Datasets 2.20.0
|
58 |
+
- Tokenizers 0.19.1
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.992,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.20858578624263888,
|
5 |
+
"train_runtime": 705.6832,
|
6 |
+
"train_samples": 1997,
|
7 |
+
"train_samples_per_second": 2.83,
|
8 |
+
"train_steps_per_second": 0.088
|
9 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 1,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"max_length": 4096,
|
6 |
+
"pad_token_id": 0,
|
7 |
+
"temperature": 0.6,
|
8 |
+
"top_p": 0.9,
|
9 |
+
"transformers_version": "4.43.3"
|
10 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.992,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.20858578624263888,
|
5 |
+
"train_runtime": 705.6832,
|
6 |
+
"train_samples": 1997,
|
7 |
+
"train_samples_per_second": 2.83,
|
8 |
+
"train_steps_per_second": 0.088
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.992,
|
5 |
+
"eval_steps": 200,
|
6 |
+
"global_step": 62,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.016,
|
13 |
+
"grad_norm": 96.2128665571533,
|
14 |
+
"learning_rate": 7.142857142857142e-08,
|
15 |
+
"logits/generated": -0.9641311168670654,
|
16 |
+
"logits/real": -0.837032675743103,
|
17 |
+
"logps/generated": -316.6651611328125,
|
18 |
+
"logps/real": -193.79689025878906,
|
19 |
+
"loss": 0.8794,
|
20 |
+
"rewards/accuracies": 0.0,
|
21 |
+
"rewards/generated": 0.0,
|
22 |
+
"rewards/margins": 0.0,
|
23 |
+
"rewards/real": 0.0,
|
24 |
+
"step": 1
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"epoch": 0.16,
|
28 |
+
"grad_norm": 9.929461004560975,
|
29 |
+
"learning_rate": 4.727272727272727e-07,
|
30 |
+
"logits/generated": -0.800748348236084,
|
31 |
+
"logits/real": -0.686944842338562,
|
32 |
+
"logps/generated": -300.80072021484375,
|
33 |
+
"logps/real": -183.3310089111328,
|
34 |
+
"loss": 0.6279,
|
35 |
+
"rewards/accuracies": 0.7916666865348816,
|
36 |
+
"rewards/generated": -0.5565835237503052,
|
37 |
+
"rewards/margins": 0.8458547592163086,
|
38 |
+
"rewards/real": 0.28927114605903625,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.32,
|
43 |
+
"grad_norm": 0.9333047201791761,
|
44 |
+
"learning_rate": 3.818181818181818e-07,
|
45 |
+
"logits/generated": -0.5756534337997437,
|
46 |
+
"logits/real": -0.5391597151756287,
|
47 |
+
"logps/generated": -323.87567138671875,
|
48 |
+
"logps/real": -149.74313354492188,
|
49 |
+
"loss": 0.1575,
|
50 |
+
"rewards/accuracies": 1.0,
|
51 |
+
"rewards/generated": -4.065367698669434,
|
52 |
+
"rewards/margins": 7.087759971618652,
|
53 |
+
"rewards/real": 3.0223922729492188,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 0.48,
|
58 |
+
"grad_norm": 0.6096167237951732,
|
59 |
+
"learning_rate": 2.909090909090909e-07,
|
60 |
+
"logits/generated": -0.7163437604904175,
|
61 |
+
"logits/real": -0.8505982160568237,
|
62 |
+
"logps/generated": -335.216064453125,
|
63 |
+
"logps/real": -128.8068084716797,
|
64 |
+
"loss": 0.1235,
|
65 |
+
"rewards/accuracies": 1.0,
|
66 |
+
"rewards/generated": -4.5739593505859375,
|
67 |
+
"rewards/margins": 10.22940444946289,
|
68 |
+
"rewards/real": 5.655444145202637,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.64,
|
73 |
+
"grad_norm": 0.3499258307052779,
|
74 |
+
"learning_rate": 2e-07,
|
75 |
+
"logits/generated": -0.7304865717887878,
|
76 |
+
"logits/real": -1.0877403020858765,
|
77 |
+
"logps/generated": -331.02947998046875,
|
78 |
+
"logps/real": -102.53155517578125,
|
79 |
+
"loss": 0.1132,
|
80 |
+
"rewards/accuracies": 1.0,
|
81 |
+
"rewards/generated": -3.106600284576416,
|
82 |
+
"rewards/margins": 9.94569206237793,
|
83 |
+
"rewards/real": 6.8390913009643555,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 0.8,
|
88 |
+
"grad_norm": 0.6642335718783683,
|
89 |
+
"learning_rate": 1.0909090909090908e-07,
|
90 |
+
"logits/generated": -0.6633592844009399,
|
91 |
+
"logits/real": -1.1091253757476807,
|
92 |
+
"logps/generated": -323.6708984375,
|
93 |
+
"logps/real": -105.15264892578125,
|
94 |
+
"loss": 0.1109,
|
95 |
+
"rewards/accuracies": 1.0,
|
96 |
+
"rewards/generated": -2.9631121158599854,
|
97 |
+
"rewards/margins": 10.039856910705566,
|
98 |
+
"rewards/real": 7.07674503326416,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.96,
|
103 |
+
"grad_norm": 0.5839224821994671,
|
104 |
+
"learning_rate": 1.818181818181818e-08,
|
105 |
+
"logits/generated": -0.6755737662315369,
|
106 |
+
"logits/real": -1.0861049890518188,
|
107 |
+
"logps/generated": -323.3614501953125,
|
108 |
+
"logps/real": -114.15528869628906,
|
109 |
+
"loss": 0.1076,
|
110 |
+
"rewards/accuracies": 1.0,
|
111 |
+
"rewards/generated": -2.938748836517334,
|
112 |
+
"rewards/margins": 9.908994674682617,
|
113 |
+
"rewards/real": 6.970245361328125,
|
114 |
+
"step": 60
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 0.992,
|
118 |
+
"step": 62,
|
119 |
+
"total_flos": 0.0,
|
120 |
+
"train_loss": 0.20858578624263888,
|
121 |
+
"train_runtime": 705.6832,
|
122 |
+
"train_samples_per_second": 2.83,
|
123 |
+
"train_steps_per_second": 0.088
|
124 |
+
}
|
125 |
+
],
|
126 |
+
"logging_steps": 10,
|
127 |
+
"max_steps": 62,
|
128 |
+
"num_input_tokens_seen": 0,
|
129 |
+
"num_train_epochs": 1,
|
130 |
+
"save_steps": 200,
|
131 |
+
"stateful_callbacks": {
|
132 |
+
"TrainerControl": {
|
133 |
+
"args": {
|
134 |
+
"should_epoch_stop": false,
|
135 |
+
"should_evaluate": false,
|
136 |
+
"should_log": false,
|
137 |
+
"should_save": true,
|
138 |
+
"should_training_stop": true
|
139 |
+
},
|
140 |
+
"attributes": {}
|
141 |
+
}
|
142 |
+
},
|
143 |
+
"total_flos": 0.0,
|
144 |
+
"train_batch_size": 4,
|
145 |
+
"trial_name": null,
|
146 |
+
"trial_params": null
|
147 |
+
}
|