-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhyperparams.py
59 lines (51 loc) · 1.4 KB
/
hyperparams.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
get = {
# saving and loading model weights
"save_model_weights": False,
"save_weights_path": "",
"load_model_weights": False,
"load_weights_path": "save-dynamic-2e-5-actual",
# training
"epochs": 10000, # 50000
"test_epochs": 1000,
"batch_size": 32,
"max_sentence_len": 32,
"learning_rate": 2e-5,
"adaptive_lr": NotImplemented,
"early_stopping": NotImplemented,
# attention specific
# custom or actual
"attention_type": "actual", # actual, custom, custom_with_values
"DNN_layers": 10,
"DNN_layer_sizes": NotImplemented,
"num_encoding_heads": NotImplemented,
"layer_factor": 2,
# masking
"predictions_per_mask": NotImplemented,
"masking_rate": NotImplemented,
"context-size": NotImplemented,
# misc
"disable_bias": NotImplemented,
"next_sentence_prediction": NotImplemented,
"architectures": [
"BertForMaskedLM"
],
"attention_probs_dropout_prob": 0.1,
"classifier_dropout": None,
"gradient_checkpointing": False,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"initializer_range": 0.02,
"intermediate_size": 3072,
"layer_norm_eps": 1e-12,
"max_position_embeddings": 512,
"model_type": "bert",
"num_attention_heads": 12,
"num_hidden_layers": 12,
"pad_token_id": 0,
"position_embedding_type": "absolute",
"transformers_version": "4.36.2",
"type_vocab_size": 2,
"use_cache": True,
"vocab_size": 30522
}