File size: 3,481 Bytes
63a2c48 |
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 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 |
{
"vocab_size": 30522,
"hidden_size": 768,
"num_hidden_layers": 12,
"num_attention_heads": 12,
"intermediate_size": 3072,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"attention_probs_dropout_prob": 0.1,
"max_position_embeddings": 512,
"type_vocab_size": 2,
"initializer_range": 0.02,
"layers": [
{
"class_name": "InputLayer",
"config": {
"batch_input_shape": [
null,
160
],
"dtype": "float32",
"sparse": false,
"ragged": false,
"name": "input_word_ids"
}
},
{
"class_name": "InputLayer",
"config": {
"batch_input_shape": [
null,
160
],
"dtype": "float32",
"sparse": false,
"ragged": false,
"name": "input_mask"
}
},
{
"class_name": "InputLayer",
"config": {
"batch_input_shape": [
null,
160
],
"dtype": "float32",
"sparse": false,
"ragged": false,
"name": "segment_ids"
}
},
{
"class_name": "KerasLayer",
"config": {
"name": "keras_layer",
"trainable": true,
"dtype": "float32",
"layer_config": {
"class_name": "TFRobertaModel",
"config": {
"vocab_size": 30522,
"hidden_size": 768,
"num_hidden_layers": 12,
"num_attention_heads": 12,
"intermediate_size": 3072,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"attention_probs_dropout_prob": 0.1,
"max_position_embeddings": 512,
"type_vocab_size": 2,
"initializer_range": 0.02,
"architectures": [
"TFRobertaModel"
]
}
},
"class_name": "TFRobertaModel",
"config": {
"vocab_size": 30522,
"hidden_size": 768,
"num_hidden_layers": 12,
"num_attention_heads": 12,
"intermediate_size": 3072,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"attention_probs_dropout_prob": 0.1,
"max_position_embeddings": 512,
"type_vocab_size": 2,
"initializer_range": 0.02,
"architectures": [
"TFRobertaModel"
]
}
}
},
{
"class_name": "TensorSliceOp",
"config": {
"name": "tf.__operators__.getitem",
"trainable": true,
"dtype": "float32",
"axis": 0
}
},
{
"class_name": "Dense",
"config": {
"name": "dense",
"trainable": true,
"dtype": "float32",
"units": 1,
"activation": "linear",
"use_bias": true,
"kernel_initializer": {
"class_name": "GlorotUniform",
"config": {
"seed": null
}
},
"bias_initializer": {
"class_name": "Zeros",
"config": {}
},
"kernel_regularizer": null,
"bias_regularizer": null,
"activity_regularizer": null,
"kernel_constraint": null,
"bias_constraint": null
}
}
],
"input_layers": [
[
"input_word_ids",
0,
0
],
[
"input_mask",
0,
0
],
[
"segment_ids",
0,
0
]
],
"output_layers": [
[
"dense",
0,
0
]
]
}
|