Transformers
PyTorch
English
gpt2
Generated from Trainer
Inference Endpoints
text-generation-inference
kejian commited on
Commit
474bec3
1 Parent(s): 714ba57

update model card README.md

Browse files
Files changed (1) hide show
  1. README.md +209 -0
README.md ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - tomekkorbak/detoxify-pile-chunk3-50000-100000
9
+ - tomekkorbak/detoxify-pile-chunk3-100000-150000
10
+ - tomekkorbak/detoxify-pile-chunk3-150000-200000
11
+ - tomekkorbak/detoxify-pile-chunk3-200000-250000
12
+ - tomekkorbak/detoxify-pile-chunk3-250000-300000
13
+ - tomekkorbak/detoxify-pile-chunk3-300000-350000
14
+ - tomekkorbak/detoxify-pile-chunk3-350000-400000
15
+ - tomekkorbak/detoxify-pile-chunk3-400000-450000
16
+ - tomekkorbak/detoxify-pile-chunk3-450000-500000
17
+ - tomekkorbak/detoxify-pile-chunk3-500000-550000
18
+ - tomekkorbak/detoxify-pile-chunk3-550000-600000
19
+ - tomekkorbak/detoxify-pile-chunk3-600000-650000
20
+ - tomekkorbak/detoxify-pile-chunk3-650000-700000
21
+ - tomekkorbak/detoxify-pile-chunk3-700000-750000
22
+ - tomekkorbak/detoxify-pile-chunk3-750000-800000
23
+ - tomekkorbak/detoxify-pile-chunk3-800000-850000
24
+ - tomekkorbak/detoxify-pile-chunk3-850000-900000
25
+ - tomekkorbak/detoxify-pile-chunk3-900000-950000
26
+ - tomekkorbak/detoxify-pile-chunk3-950000-1000000
27
+ - tomekkorbak/detoxify-pile-chunk3-1000000-1050000
28
+ - tomekkorbak/detoxify-pile-chunk3-1050000-1100000
29
+ - tomekkorbak/detoxify-pile-chunk3-1100000-1150000
30
+ - tomekkorbak/detoxify-pile-chunk3-1150000-1200000
31
+ - tomekkorbak/detoxify-pile-chunk3-1200000-1250000
32
+ - tomekkorbak/detoxify-pile-chunk3-1250000-1300000
33
+ - tomekkorbak/detoxify-pile-chunk3-1300000-1350000
34
+ - tomekkorbak/detoxify-pile-chunk3-1350000-1400000
35
+ - tomekkorbak/detoxify-pile-chunk3-1400000-1450000
36
+ - tomekkorbak/detoxify-pile-chunk3-1450000-1500000
37
+ - tomekkorbak/detoxify-pile-chunk3-1500000-1550000
38
+ - tomekkorbak/detoxify-pile-chunk3-1550000-1600000
39
+ - tomekkorbak/detoxify-pile-chunk3-1600000-1650000
40
+ - tomekkorbak/detoxify-pile-chunk3-1650000-1700000
41
+ - tomekkorbak/detoxify-pile-chunk3-1700000-1750000
42
+ - tomekkorbak/detoxify-pile-chunk3-1750000-1800000
43
+ - tomekkorbak/detoxify-pile-chunk3-1800000-1850000
44
+ model-index:
45
+ - name: kejian/cpsc-bincond-rtp-and-bad
46
+ results: []
47
+ ---
48
+
49
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
50
+ should probably proofread and complete it, then remove this comment. -->
51
+
52
+ # kejian/cpsc-bincond-rtp-and-bad
53
+
54
+ This model was trained from scratch on the tomekkorbak/detoxify-pile-chunk3-50000-100000, the tomekkorbak/detoxify-pile-chunk3-100000-150000, the tomekkorbak/detoxify-pile-chunk3-150000-200000, the tomekkorbak/detoxify-pile-chunk3-200000-250000, the tomekkorbak/detoxify-pile-chunk3-250000-300000, the tomekkorbak/detoxify-pile-chunk3-300000-350000, the tomekkorbak/detoxify-pile-chunk3-350000-400000, the tomekkorbak/detoxify-pile-chunk3-400000-450000, the tomekkorbak/detoxify-pile-chunk3-450000-500000, the tomekkorbak/detoxify-pile-chunk3-500000-550000, the tomekkorbak/detoxify-pile-chunk3-550000-600000, the tomekkorbak/detoxify-pile-chunk3-600000-650000, the tomekkorbak/detoxify-pile-chunk3-650000-700000, the tomekkorbak/detoxify-pile-chunk3-700000-750000, the tomekkorbak/detoxify-pile-chunk3-750000-800000, the tomekkorbak/detoxify-pile-chunk3-800000-850000, the tomekkorbak/detoxify-pile-chunk3-850000-900000, the tomekkorbak/detoxify-pile-chunk3-900000-950000, the tomekkorbak/detoxify-pile-chunk3-950000-1000000, the tomekkorbak/detoxify-pile-chunk3-1000000-1050000, the tomekkorbak/detoxify-pile-chunk3-1050000-1100000, the tomekkorbak/detoxify-pile-chunk3-1100000-1150000, the tomekkorbak/detoxify-pile-chunk3-1150000-1200000, the tomekkorbak/detoxify-pile-chunk3-1200000-1250000, the tomekkorbak/detoxify-pile-chunk3-1250000-1300000, the tomekkorbak/detoxify-pile-chunk3-1300000-1350000, the tomekkorbak/detoxify-pile-chunk3-1350000-1400000, the tomekkorbak/detoxify-pile-chunk3-1400000-1450000, the tomekkorbak/detoxify-pile-chunk3-1450000-1500000, the tomekkorbak/detoxify-pile-chunk3-1500000-1550000, the tomekkorbak/detoxify-pile-chunk3-1550000-1600000, the tomekkorbak/detoxify-pile-chunk3-1600000-1650000, the tomekkorbak/detoxify-pile-chunk3-1650000-1700000, the tomekkorbak/detoxify-pile-chunk3-1700000-1750000, the tomekkorbak/detoxify-pile-chunk3-1750000-1800000 and the tomekkorbak/detoxify-pile-chunk3-1800000-1850000 datasets.
55
+
56
+ ## Model description
57
+
58
+ More information needed
59
+
60
+ ## Intended uses & limitations
61
+
62
+ More information needed
63
+
64
+ ## Training and evaluation data
65
+
66
+ More information needed
67
+
68
+ ## Training procedure
69
+
70
+ ### Training hyperparameters
71
+
72
+ The following hyperparameters were used during training:
73
+ - learning_rate: 0.0005
74
+ - train_batch_size: 32
75
+ - eval_batch_size: 16
76
+ - seed: 42
77
+ - gradient_accumulation_steps: 2
78
+ - total_train_batch_size: 64
79
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
80
+ - lr_scheduler_type: linear
81
+ - lr_scheduler_warmup_ratio: 0.01
82
+ - training_steps: 42724
83
+ - mixed_precision_training: Native AMP
84
+
85
+ ### Framework versions
86
+
87
+ - Transformers 4.23.0
88
+ - Pytorch 1.13.0+cu116
89
+ - Datasets 2.0.0
90
+ - Tokenizers 0.12.1
91
+
92
+
93
+ # Full config
94
+ {'dataset': {'conditional_training_config': {'aligned_prefix': '<|aligned|>',
95
+ 'drop_token_fraction': 0.02,
96
+ 'misaligned_prefix': '<|misaligned|>',
97
+ 'threshold': 0.0007848},
98
+ 'datasets': ['tomekkorbak/detoxify-pile-chunk3-50000-100000',
99
+ 'tomekkorbak/detoxify-pile-chunk3-100000-150000',
100
+ 'tomekkorbak/detoxify-pile-chunk3-150000-200000',
101
+ 'tomekkorbak/detoxify-pile-chunk3-200000-250000',
102
+ 'tomekkorbak/detoxify-pile-chunk3-250000-300000',
103
+ 'tomekkorbak/detoxify-pile-chunk3-300000-350000',
104
+ 'tomekkorbak/detoxify-pile-chunk3-350000-400000',
105
+ 'tomekkorbak/detoxify-pile-chunk3-400000-450000',
106
+ 'tomekkorbak/detoxify-pile-chunk3-450000-500000',
107
+ 'tomekkorbak/detoxify-pile-chunk3-500000-550000',
108
+ 'tomekkorbak/detoxify-pile-chunk3-550000-600000',
109
+ 'tomekkorbak/detoxify-pile-chunk3-600000-650000',
110
+ 'tomekkorbak/detoxify-pile-chunk3-650000-700000',
111
+ 'tomekkorbak/detoxify-pile-chunk3-700000-750000',
112
+ 'tomekkorbak/detoxify-pile-chunk3-750000-800000',
113
+ 'tomekkorbak/detoxify-pile-chunk3-800000-850000',
114
+ 'tomekkorbak/detoxify-pile-chunk3-850000-900000',
115
+ 'tomekkorbak/detoxify-pile-chunk3-900000-950000',
116
+ 'tomekkorbak/detoxify-pile-chunk3-950000-1000000',
117
+ 'tomekkorbak/detoxify-pile-chunk3-1000000-1050000',
118
+ 'tomekkorbak/detoxify-pile-chunk3-1050000-1100000',
119
+ 'tomekkorbak/detoxify-pile-chunk3-1100000-1150000',
120
+ 'tomekkorbak/detoxify-pile-chunk3-1150000-1200000',
121
+ 'tomekkorbak/detoxify-pile-chunk3-1200000-1250000',
122
+ 'tomekkorbak/detoxify-pile-chunk3-1250000-1300000',
123
+ 'tomekkorbak/detoxify-pile-chunk3-1300000-1350000',
124
+ 'tomekkorbak/detoxify-pile-chunk3-1350000-1400000',
125
+ 'tomekkorbak/detoxify-pile-chunk3-1400000-1450000',
126
+ 'tomekkorbak/detoxify-pile-chunk3-1450000-1500000',
127
+ 'tomekkorbak/detoxify-pile-chunk3-1500000-1550000',
128
+ 'tomekkorbak/detoxify-pile-chunk3-1550000-1600000',
129
+ 'tomekkorbak/detoxify-pile-chunk3-1600000-1650000',
130
+ 'tomekkorbak/detoxify-pile-chunk3-1650000-1700000',
131
+ 'tomekkorbak/detoxify-pile-chunk3-1700000-1750000',
132
+ 'tomekkorbak/detoxify-pile-chunk3-1750000-1800000',
133
+ 'tomekkorbak/detoxify-pile-chunk3-1800000-1850000'],
134
+ 'is_split_by_sentences': True},
135
+ 'generation': {'force_call_on': [21362],
136
+ 'metrics_configs': [{}, {'n': 1}, {'n': 2}, {'n': 5}],
137
+ 'scenario_configs': [{'generate_kwargs': {'bad_words_ids': [[50257],
138
+ [50258]],
139
+ 'do_sample': True,
140
+ 'max_length': 128,
141
+ 'min_length': 10,
142
+ 'temperature': 0.7,
143
+ 'top_k': 0,
144
+ 'top_p': 0.9},
145
+ 'name': 'unconditional',
146
+ 'num_samples': 2048,
147
+ 'prefix': '<|aligned|>'},
148
+ {'generate_kwargs': {'bad_words_ids': [[50257],
149
+ [50258]],
150
+ 'do_sample': True,
151
+ 'max_length': 128,
152
+ 'min_length': 10,
153
+ 'temperature': 0.7,
154
+ 'top_k': 0,
155
+ 'top_p': 0.9},
156
+ 'name': 'challenging_rtp',
157
+ 'num_samples': 1024,
158
+ 'prefix': '<|aligned|>',
159
+ 'prompt_before_control': True,
160
+ 'prompts_path': 'resources/challenging_rtp.jsonl'},
161
+ {'generate_kwargs': {'bad_words_ids': [[50257],
162
+ [50258]],
163
+ 'do_sample': True,
164
+ 'max_length': 128,
165
+ 'min_length': 10,
166
+ 'temperature': 0.7,
167
+ 'top_k': 0,
168
+ 'top_p': 0.9},
169
+ 'name': 'challenging_rtp-bad-control',
170
+ 'num_samples': 1024,
171
+ 'prefix': '<|misaligned|>',
172
+ 'prompt_before_control': True,
173
+ 'prompts_path': 'resources/challenging_rtp.jsonl'}],
174
+ 'scorer_config': {'device': 'cuda:0'}},
175
+ 'kl_gpt3_callback': {'force_call_on': [21362],
176
+ 'gpt3_kwargs': {'model_name': 'davinci'},
177
+ 'max_tokens': 64,
178
+ 'num_samples': 2048,
179
+ 'prefix': '<|aligned|>'},
180
+ 'model': {'from_scratch': True,
181
+ 'gpt2_config_kwargs': {'reorder_and_upcast_attn': True,
182
+ 'scale_attn_by': True},
183
+ 'num_additional_tokens': 2,
184
+ 'path_or_name': 'gpt2'},
185
+ 'objective': {'name': 'MLE'},
186
+ 'tokenizer': {'path_or_name': 'gpt2',
187
+ 'special_tokens': ['<|aligned|>', '<|misaligned|>']},
188
+ 'training': {'dataloader_num_workers': 0,
189
+ 'effective_batch_size': 64,
190
+ 'evaluation_strategy': 'no',
191
+ 'fp16': True,
192
+ 'hub_model_id': 'kejian/cpsc-bincond-rtp-and-bad',
193
+ 'hub_strategy': 'all_checkpoints',
194
+ 'learning_rate': 0.0005,
195
+ 'logging_first_step': True,
196
+ 'logging_steps': 50,
197
+ 'num_tokens': 2800000000.0,
198
+ 'output_dir': 'training_output70',
199
+ 'per_device_train_batch_size': 16,
200
+ 'push_to_hub': True,
201
+ 'remove_unused_columns': False,
202
+ 'save_steps': 21362,
203
+ 'save_strategy': 'steps',
204
+ 'seed': 42,
205
+ 'warmup_ratio': 0.01,
206
+ 'weight_decay': 0.1}}
207
+
208
+ # Wandb URL:
209
+ https://wandb.ai/kejian/uncategorized/runs/2e031tma