felipeoes commited on
Commit
ee6f494
·
verified ·
1 Parent(s): c52f2ac

Model save

Browse files
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Llama-3.1-8B-Instruct
3
+ library_name: transformers
4
+ model_name: cocoruta2-llama3-1-8b-llm-filtered-valid
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for cocoruta2-llama3-1-8b-llm-filtered-valid
13
+
14
+ This model is a fine-tuned version of [meta-llama/Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct).
15
+ It has been trained using [TRL](https://github.com/huggingface/trl).
16
+
17
+ ## Quick start
18
+
19
+ ```python
20
+ from transformers import pipeline
21
+
22
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
23
+ generator = pipeline("text-generation", model="felipeoes/cocoruta2-llama3-1-8b-llm-filtered-valid", device="cuda")
24
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
25
+ print(output["generated_text"])
26
+ ```
27
+
28
+ ## Training procedure
29
+
30
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/felipealumni-usp/huggingface/runs/sg9fvmbz)
31
+
32
+ This model was trained with SFT.
33
+
34
+ ### Framework versions
35
+
36
+ - TRL: 0.12.1
37
+ - Transformers: 4.46.3
38
+ - Pytorch: 2.4.1
39
+ - Datasets: 3.1.0
40
+ - Tokenizers: 0.20.3
41
+
42
+ ## Citations
43
+
44
+
45
+
46
+ Cite TRL as:
47
+
48
+ ```bibtex
49
+ @misc{vonwerra2022trl,
50
+ title = {{TRL: Transformer Reinforcement Learning}},
51
+ author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
52
+ year = 2020,
53
+ journal = {GitHub repository},
54
+ publisher = {GitHub},
55
+ howpublished = {\url{https://github.com/huggingface/trl}}
56
+ }
57
+ ```
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8c52eabb0ad214511ab45d36ef2e3f44aa702e06299fe2736481e4d8c8095cbb
3
  size 2185294624
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3985b8ad1a851b26be4205114ae1d86ad43bb9a64d60f63bbc63e67249e461d2
3
  size 2185294624
all_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_samples": 8,
4
+ "total_flos": 2.2213061901287424e+16,
5
+ "train_loss": 0.7360347080230712,
6
+ "train_runtime": 5512.0983,
7
+ "train_samples": 7469,
8
+ "train_samples_per_second": 0.29,
9
+ "train_steps_per_second": 0.036
10
+ }
train_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_samples": 8,
4
+ "total_flos": 2.2213061901287424e+16,
5
+ "train_loss": 0.7360347080230712,
6
+ "train_runtime": 5512.0983,
7
+ "train_samples": 7469,
8
+ "train_samples_per_second": 0.29,
9
+ "train_steps_per_second": 0.036
10
+ }
trainer_state.json ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.6695,
3
+ "best_model_checkpoint": "runs/cocoruta2-llama3-1-8b-llm-filtered-valid/checkpoint-175",
4
+ "epoch": 1.0,
5
+ "eval_steps": 25,
6
+ "global_step": 200,
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.125,
13
+ "grad_norm": 0.2788222853305591,
14
+ "learning_rate": 0.00019961946980917456,
15
+ "loss": 0.9577,
16
+ "step": 25
17
+ },
18
+ {
19
+ "epoch": 0.125,
20
+ "eval_loss": 0.7655497193336487,
21
+ "eval_runtime": 1.7139,
22
+ "eval_samples_per_second": 1.167,
23
+ "eval_steps_per_second": 0.583,
24
+ "step": 25
25
+ },
26
+ {
27
+ "epoch": 0.25,
28
+ "grad_norm": 0.48854864710535234,
29
+ "learning_rate": 0.00018660254037844388,
30
+ "loss": 0.7796,
31
+ "step": 50
32
+ },
33
+ {
34
+ "epoch": 0.25,
35
+ "eval_loss": 0.6773131489753723,
36
+ "eval_runtime": 1.6984,
37
+ "eval_samples_per_second": 1.178,
38
+ "eval_steps_per_second": 0.589,
39
+ "step": 50
40
+ },
41
+ {
42
+ "epoch": 0.375,
43
+ "grad_norm": 0.16374768065217044,
44
+ "learning_rate": 0.0001573576436351046,
45
+ "loss": 0.723,
46
+ "step": 75
47
+ },
48
+ {
49
+ "epoch": 0.375,
50
+ "eval_loss": 0.6254773139953613,
51
+ "eval_runtime": 1.6226,
52
+ "eval_samples_per_second": 1.233,
53
+ "eval_steps_per_second": 0.616,
54
+ "step": 75
55
+ },
56
+ {
57
+ "epoch": 0.5,
58
+ "grad_norm": 0.18909384740949947,
59
+ "learning_rate": 0.00011736481776669306,
60
+ "loss": 0.7119,
61
+ "step": 100
62
+ },
63
+ {
64
+ "epoch": 0.5,
65
+ "eval_loss": 0.6088273525238037,
66
+ "eval_runtime": 1.653,
67
+ "eval_samples_per_second": 1.21,
68
+ "eval_steps_per_second": 0.605,
69
+ "step": 100
70
+ },
71
+ {
72
+ "epoch": 0.625,
73
+ "grad_norm": 0.16875071398940744,
74
+ "learning_rate": 7.411809548974792e-05,
75
+ "loss": 0.6997,
76
+ "step": 125
77
+ },
78
+ {
79
+ "epoch": 0.625,
80
+ "eval_loss": 0.5997253656387329,
81
+ "eval_runtime": 1.733,
82
+ "eval_samples_per_second": 1.154,
83
+ "eval_steps_per_second": 0.577,
84
+ "step": 125
85
+ },
86
+ {
87
+ "epoch": 0.75,
88
+ "grad_norm": 0.15193488837212316,
89
+ "learning_rate": 3.5721239031346066e-05,
90
+ "loss": 0.6737,
91
+ "step": 150
92
+ },
93
+ {
94
+ "epoch": 0.75,
95
+ "eval_loss": 0.5931251645088196,
96
+ "eval_runtime": 1.6899,
97
+ "eval_samples_per_second": 1.184,
98
+ "eval_steps_per_second": 0.592,
99
+ "step": 150
100
+ },
101
+ {
102
+ "epoch": 0.875,
103
+ "grad_norm": 0.14748033776038244,
104
+ "learning_rate": 9.369221296335006e-06,
105
+ "loss": 0.6695,
106
+ "step": 175
107
+ },
108
+ {
109
+ "epoch": 0.875,
110
+ "eval_loss": 0.5881291627883911,
111
+ "eval_runtime": 1.653,
112
+ "eval_samples_per_second": 1.21,
113
+ "eval_steps_per_second": 0.605,
114
+ "step": 175
115
+ },
116
+ {
117
+ "epoch": 1.0,
118
+ "grad_norm": 0.14269658864040954,
119
+ "learning_rate": 0.0,
120
+ "loss": 0.6732,
121
+ "step": 200
122
+ },
123
+ {
124
+ "epoch": 1.0,
125
+ "eval_loss": 0.5876626372337341,
126
+ "eval_runtime": 1.6145,
127
+ "eval_samples_per_second": 1.239,
128
+ "eval_steps_per_second": 0.619,
129
+ "step": 200
130
+ },
131
+ {
132
+ "epoch": 1.0,
133
+ "step": 200,
134
+ "total_flos": 2.2213061901287424e+16,
135
+ "train_loss": 0.7360347080230712,
136
+ "train_runtime": 5512.0983,
137
+ "train_samples_per_second": 0.29,
138
+ "train_steps_per_second": 0.036
139
+ }
140
+ ],
141
+ "logging_steps": 25,
142
+ "max_steps": 200,
143
+ "num_input_tokens_seen": 0,
144
+ "num_train_epochs": 1,
145
+ "save_steps": 25,
146
+ "stateful_callbacks": {
147
+ "TrainerControl": {
148
+ "args": {
149
+ "should_epoch_stop": false,
150
+ "should_evaluate": false,
151
+ "should_log": false,
152
+ "should_save": true,
153
+ "should_training_stop": true
154
+ },
155
+ "attributes": {}
156
+ }
157
+ },
158
+ "total_flos": 2.2213061901287424e+16,
159
+ "train_batch_size": 2,
160
+ "trial_name": null,
161
+ "trial_params": null
162
+ }