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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
{
    "checkpoint_path": "/data_2to/devel_data/nn_pruning/output/squadv2_test_3/hp_mnop-bert-large-uncased-whole-word-masking_dn-squad_v2_v2wn1_od-__data_2to__devel_data__nn_pruning__output__squadv2_test_3___es-steps_pdtbs8_pdebs128_nte20.06_ls250_stl50_est5000_--128cd5d9b5683065/checkpoint-330000", 
    "config": {
        "_name_or_path": "/tmp/tmpxe9vb3vd", 
        "architectures": ["BertForQuestionAnswering"], 
        "attention_probs_dropout_prob": 0.1, 
        "gradient_checkpointing": false, 
        "hidden_act": "gelu", 
        "hidden_dropout_prob": 0.1, 
        "hidden_size": 1024, 
        "initializer_range": 0.02, 
        "intermediate_size": 4096, 
        "layer_norm_eps": 1e-12, 
        "max_position_embeddings": 512, 
        "model_type": "bert", 
        "num_attention_heads": 16, 
        "num_hidden_layers": 24, 
        "pad_token_id": 0, 
        "position_embedding_type": "absolute", 
        "pruned_heads": {
            "0": [0, 3, 4, 5, 9, 13, 15], 
            "1": [0, 1, 7, 9, 10, 13, 14], 
            "10": [1, 2, 4, 5, 6, 8, 11, 13], 
            "11": [2, 5, 6, 8, 12, 15], 
            "12": [0, 2, 6, 9, 13], 
            "13": [2, 3, 6, 10, 12, 15], 
            "14": [10, 5], 
            "15": [0, 9], 
            "16": [], 
            "17": [1, 4, 12], 
            "18": [11, 4], 
            "19": [5], 
            "2": [0, 1, 4, 6, 7, 8, 9, 11, 12, 13, 14, 15], 
            "20": [0, 1, 12], 
            "21": [0, 2, 3, 4, 8, 10, 11, 12, 15], 
            "22": [0, 1, 3, 7, 9, 10, 11, 13], 
            "23": [2, 4, 7, 8, 9, 10, 13], 
            "3": [0, 3, 5, 6, 7, 8, 9, 13, 14, 15], 
            "4": [0, 2, 3, 5, 6, 7, 9, 10, 11, 12, 14], 
            "5": [3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15], 
            "6": [0, 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, 15], 
            "7": [3, 5, 8, 9, 10, 11, 12, 13], 
            "8": [3, 5, 7, 8, 9, 11, 12], 
            "9": [0, 1, 2, 5, 6, 7, 13, 14]
        }, 
        "transformers_version": "4.7.0.dev0", 
        "type_vocab_size": 2, 
        "use_cache": true, 
        "vocab_size": 30522
    }, 
    "eval_metrics": {
        "HasAns_exact": 76.48448043184885, 
        "HasAns_f1": 82.55514100819374, 
        "HasAns_total": 5928, 
        "NoAns_exact": 83.8856181665265, 
        "NoAns_f1": 83.8856181665265, 
        "NoAns_total": 5945, 
        "best_exact": 80.19034784805862, 
        "best_exact_thresh": 0.0, 
        "best_f1": 83.22133208932635, 
        "best_f1_thresh": 0.0, 
        "exact": 80.19034784805862, 
        "f1": 83.22133208932645, 
        "main_metric": 83.22133208932645, 
        "total": 11873
    }, 
    "model_args": {
        "cache_dir": null, 
        "config_name": null, 
        "model_name_or_path": "bert-large-uncased-whole-word-masking", 
        "tokenizer_name": null, 
        "use_fast_tokenizer": true
    }, 
    "sparse_args": {
        "ampere_pruning_method": "disabled", 
        "attention_block_cols": 32, 
        "attention_block_rows": 32, 
        "attention_lambda": 1.0, 
        "attention_output_with_dense": 0, 
        "attention_pruning_method": "sigmoied_threshold", 
        "bias_mask": true, 
        "decoder_attention_lambda": null, 
        "decoder_dense_lambda": null, 
        "dense_block_cols": 1, 
        "dense_block_rows": 1, 
        "dense_lambda": 1.0, 
        "dense_pruning_method": "sigmoied_threshold:1d_alt", 
        "distil_alpha_ce": 0.1, 
        "distil_alpha_teacher": 0.9, 
        "distil_teacher_name_or_path": "madlag/bert-large-uncased-whole-word-masking-finetuned-squadv2", 
        "distil_temperature": 2.0, 
        "eval_with_current_patch_params": false, 
        "final_ampere_temperature": 20.0, 
        "final_finetune": false, 
        "final_threshold": 0.1, 
        "final_warmup": 10, 
        "gelu_patch": 0, 
        "gelu_patch_steps": 50000, 
        "initial_ampere_temperature": 0.0, 
        "initial_threshold": 0, 
        "initial_warmup": 1, 
        "layer_norm_patch": 0, 
        "layer_norm_patch_start_delta": 0.99, 
        "layer_norm_patch_steps": 50000, 
        "linear_min_parameters": 0.005, 
        "mask_init": "constant", 
        "mask_scale": 0.0, 
        "mask_scores_learning_rate": 0.01, 
        "qat": false, 
        "qconfig": "default", 
        "regularization": "l1", 
        "regularization_final_lambda": 2, 
        "rewind_model_name_or_path": null
    }, 
    "speed": {
        "cuda_eval_elapsed_time": 63.65266278076172, 
        "eval_elapsed_time": 68.118653698
    }, 
    "speedup": 0.6933166669240776, 
    "stats": {
        "layers": {
            "0": {
                "linear_attention_nnz": 1329152, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 1294336, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 2623488, 
                "linear_total": 12582912, 
                "nnz": 2631960, 
                "total": 12594880
            }, 
            "1": {
                "linear_attention_nnz": 1539072, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 1429504, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 2968576, 
                "linear_total": 12582912, 
                "nnz": 2977018, 
                "total": 12594880
            }, 
            "10": {
                "linear_attention_nnz": 1718272, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 1990656, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 3708928, 
                "linear_total": 12582912, 
                "nnz": 3717580, 
                "total": 12594688
            }, 
            "11": {
                "linear_attention_nnz": 2091008, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 2207744, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 4298752, 
                "linear_total": 12582912, 
                "nnz": 4307894, 
                "total": 12595072
            }, 
            "12": {
                "linear_attention_nnz": 2011136, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 1988608, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 3999744, 
                "linear_total": 12582912, 
                "nnz": 4008939, 
                "total": 12595264
            }, 
            "13": {
                "linear_attention_nnz": 2132992, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 2392064, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 4525056, 
                "linear_total": 12582912, 
                "nnz": 4534288, 
                "total": 12595072
            }, 
            "14": {
                "linear_attention_nnz": 2490368, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 1941504, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 4431872, 
                "linear_total": 12582912, 
                "nnz": 4441620, 
                "total": 12595840
            }, 
            "15": {
                "linear_attention_nnz": 2515968, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 1873920, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 4389888, 
                "linear_total": 12582912, 
                "nnz": 4399635, 
                "total": 12595840
            }, 
            "16": {
                "linear_attention_nnz": 2995200, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 1984512, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 4979712, 
                "linear_total": 12582912, 
                "nnz": 4989801, 
                "total": 12596224
            }, 
            "17": {
                "linear_attention_nnz": 2373632, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 1820672, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 4194304, 
                "linear_total": 12582912, 
                "nnz": 4203737, 
                "total": 12595648
            }, 
            "18": {
                "linear_attention_nnz": 2628608, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 1259520, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 3888128, 
                "linear_total": 12582912, 
                "nnz": 3897575, 
                "total": 12595840
            }, 
            "19": {
                "linear_attention_nnz": 2135040, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 776192, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 2911232, 
                "linear_total": 12582912, 
                "nnz": 2920315, 
                "total": 12596032
            }, 
            "2": {
                "linear_attention_nnz": 761856, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 1775616, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 2537472, 
                "linear_total": 12582912, 
                "nnz": 2545251, 
                "total": 12593920
            }, 
            "20": {
                "linear_attention_nnz": 1545216, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 507904, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 2053120, 
                "linear_total": 12582912, 
                "nnz": 2061560, 
                "total": 12595648
            }, 
            "21": {
                "linear_attention_nnz": 608256, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 260096, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 868352, 
                "linear_total": 12582912, 
                "nnz": 875551, 
                "total": 12594496
            }, 
            "22": {
                "linear_attention_nnz": 617472, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 149504, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 766976, 
                "linear_total": 12582912, 
                "nnz": 774281, 
                "total": 12594688
            }, 
            "23": {
                "linear_attention_nnz": 527360, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 284672, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 812032, 
                "linear_total": 12582912, 
                "nnz": 819435, 
                "total": 12594880
            }, 
            "3": {
                "linear_attention_nnz": 1164288, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 2027520, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 3191808, 
                "linear_total": 12582912, 
                "nnz": 3200094, 
                "total": 12594304
            }, 
            "4": {
                "linear_attention_nnz": 835584, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 2035712, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 2871296, 
                "linear_total": 12582912, 
                "nnz": 2879362, 
                "total": 12594112
            }, 
            "5": {
                "linear_attention_nnz": 734208, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 2123776, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 2857984, 
                "linear_total": 12582912, 
                "nnz": 2866029, 
                "total": 12594112
            }, 
            "6": {
                "linear_attention_nnz": 816128, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 2312192, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 3128320, 
                "linear_total": 12582912, 
                "nnz": 3136361, 
                "total": 12593920
            }, 
            "7": {
                "linear_attention_nnz": 1503232, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 2338816, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 3842048, 
                "linear_total": 12582912, 
                "nnz": 3850774, 
                "total": 12594688
            }, 
            "8": {
                "linear_attention_nnz": 1784832, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 2328576, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 4113408, 
                "linear_total": 12582912, 
                "nnz": 4122385, 
                "total": 12594880
            }, 
            "9": {
                "linear_attention_nnz": 1396736, 
                "linear_attention_total": 4194304, 
                "linear_dense_nnz": 2463744, 
                "linear_dense_total": 8388608, 
                "linear_nnz": 3860480, 
                "linear_total": 12582912, 
                "nnz": 3869363, 
                "total": 12594688
            }
        }, 
        "linear_nnz": 77822976, 
        "linear_sparsity": 74.22993977864583, 
        "linear_total": 301989888, 
        "nnz": 109815770, 
        "pruned_heads": {
            "0": [0, 3, 4, 5, 9, 13, 15], 
            "1": [0, 1, 7, 9, 10, 13, 14], 
            "10": [1, 2, 4, 5, 6, 8, 11, 13], 
            "11": [2, 5, 6, 8, 12, 15], 
            "12": [0, 2, 6, 9, 13], 
            "13": [2, 3, 6, 10, 12, 15], 
            "14": [10, 5], 
            "15": [0, 9], 
            "16": [], 
            "17": [1, 4, 12], 
            "18": [11, 4], 
            "19": [5], 
            "2": [0, 1, 4, 6, 7, 8, 9, 11, 12, 13, 14, 15], 
            "20": [0, 1, 12], 
            "21": [0, 2, 3, 4, 8, 10, 11, 12, 15], 
            "22": [0, 1, 3, 7, 9, 10, 11, 13], 
            "23": [2, 4, 7, 8, 9, 10, 13], 
            "3": [0, 3, 5, 6, 7, 8, 9, 13, 14, 15], 
            "4": [0, 2, 3, 5, 6, 7, 9, 10, 11, 12, 14], 
            "5": [3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 15], 
            "6": [0, 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, 15], 
            "7": [3, 5, 8, 9, 10, 11, 12, 13], 
            "8": [3, 5, 7, 8, 9, 11, 12], 
            "9": [0, 1, 2, 5, 6, 7, 13, 14]
        }, 
        "total": 334064578, 
        "total_sparsity": 67.12738277806874
    }, 
    "training_args": {
        "_n_gpu": 1, 
        "adafactor": false, 
        "adam_beta1": 0.9, 
        "adam_beta2": 0.999, 
        "adam_epsilon": 1e-08, 
        "dataloader_drop_last": false, 
        "dataloader_num_workers": 0, 
        "dataloader_pin_memory": true, 
        "ddp_find_unused_parameters": null, 
        "debug": false, 
        "deepspeed": null, 
        "disable_tqdm": false, 
        "do_eval": 1, 
        "do_predict": false, 
        "do_train": 1, 
        "eval_accumulation_steps": null, 
        "eval_steps": 5000, 
        "evaluation_strategy": "steps", 
        "fp16": false, 
        "fp16_backend": "auto", 
        "fp16_full_eval": false, 
        "fp16_opt_level": "O1", 
        "gradient_accumulation_steps": 1, 
        "greater_is_better": null, 
        "group_by_length": false, 
        "ignore_data_skip": false, 
        "label_names": null, 
        "label_smoothing_factor": 0.0, 
        "learning_rate": 3e-05, 
        "length_column_name": "length", 
        "load_best_model_at_end": false, 
        "local_rank": -1, 
        "logging_dir": "/data_2to/devel_data/nn_pruning/output/squadv2_test_3/", 
        "logging_first_step": false, 
        "logging_steps": 250, 
        "logging_strategy": "steps", 
        "lr_scheduler_type": "linear", 
        "max_grad_norm": 1.0, 
        "max_steps": -1, 
        "metric_for_best_model": null, 
        "mp_parameters": "", 
        "no_cuda": false, 
        "num_train_epochs": 20.06, 
        "optimize_model_before_eval": "disabled", 
        "output_dir": "/data_2to/devel_data/nn_pruning/output/squadv2_test_3/", 
        "overwrite_output_dir": 1, 
        "past_index": -1, 
        "per_device_eval_batch_size": 128, 
        "per_device_train_batch_size": 8, 
        "per_gpu_eval_batch_size": null, 
        "per_gpu_train_batch_size": null, 
        "prediction_loss_only": false, 
        "remove_unused_columns": true, 
        "report_to": ["tensorboard", "wandb"], 
        "run_name": "/data_2to/devel_data/nn_pruning/output/squadv2_test_3/", 
        "save_steps": 5000, 
        "save_strategy": "steps", 
        "save_total_limit": 50, 
        "seed": 17, 
        "sharded_ddp": [], 
        "skip_memory_metrics": false, 
        "tpu_metrics_debug": false, 
        "tpu_num_cores": null, 
        "warmup_ratio": 0.0, 
        "warmup_steps": 5400, 
        "weight_decay": 0.0
    }
}