Update config.json
Browse files- config.json +1 -170
config.json
CHANGED
|
@@ -1,170 +1 @@
|
|
| 1 |
-
{
|
| 2 |
-
'layers': [{'class_name': 'InputLayer',
|
| 3 |
-
'config': {'batch_input_shape': (None, 70),
|
| 4 |
-
'dtype': 'int32',
|
| 5 |
-
'name': 'input_ids',
|
| 6 |
-
'ragged': False,
|
| 7 |
-
'sparse': False},
|
| 8 |
-
'inbound_nodes': [],
|
| 9 |
-
'name': 'input_ids'},
|
| 10 |
-
{'class_name': 'InputLayer',
|
| 11 |
-
'config': {'batch_input_shape': (None, 70),
|
| 12 |
-
'dtype': 'int32',
|
| 13 |
-
'name': 'attention_mask',
|
| 14 |
-
'ragged': False,
|
| 15 |
-
'sparse': False},
|
| 16 |
-
'inbound_nodes': [],
|
| 17 |
-
'name': 'attention_mask'},
|
| 18 |
-
{'class_name': 'TFRobertaModel',
|
| 19 |
-
'config': {'_name_or_path': 'pysentimiento/robertuito-sentiment-analysis',
|
| 20 |
-
'add_cross_attention': False,
|
| 21 |
-
'architectures': ['RobertaForSequenceClassification'],
|
| 22 |
-
'attention_probs_dropout_prob': 0.1,
|
| 23 |
-
'bad_words_ids': None,
|
| 24 |
-
'bos_token_id': 0,
|
| 25 |
-
'chunk_size_feed_forward': 0,
|
| 26 |
-
'classifier_dropout': None,
|
| 27 |
-
'cross_attention_hidden_size': None,
|
| 28 |
-
'decoder_start_token_id': None,
|
| 29 |
-
'diversity_penalty': 0.0,
|
| 30 |
-
'do_sample': False,
|
| 31 |
-
'early_stopping': False,
|
| 32 |
-
'encoder_no_repeat_ngram_size': 0,
|
| 33 |
-
'eos_token_id': 2,
|
| 34 |
-
'finetuning_task': None,
|
| 35 |
-
'forced_bos_token_id': None,
|
| 36 |
-
'forced_eos_token_id': None,
|
| 37 |
-
'gradient_checkpointing': False,
|
| 38 |
-
'hidden_act': 'gelu',
|
| 39 |
-
'hidden_dropout_prob': 0.1,
|
| 40 |
-
'hidden_size': 768,
|
| 41 |
-
'id2label': {0: 'NEG', 1: 'NEU', 2: 'POS'},
|
| 42 |
-
'initializer_range': 0.02,
|
| 43 |
-
'intermediate_size': 3072,
|
| 44 |
-
'is_decoder': False,
|
| 45 |
-
'is_encoder_decoder': False,
|
| 46 |
-
'label2id': {'NEG': 0, 'NEU': 1, 'POS': 2},
|
| 47 |
-
'layer_norm_eps': 1e-12,
|
| 48 |
-
'length_penalty': 1.0,
|
| 49 |
-
'max_length': 20,
|
| 50 |
-
'max_position_embeddings': 130,
|
| 51 |
-
'min_length': 0,
|
| 52 |
-
'model_type': 'roberta',
|
| 53 |
-
'no_repeat_ngram_size': 0,
|
| 54 |
-
'num_attention_heads': 12,
|
| 55 |
-
'num_beam_groups': 1,
|
| 56 |
-
'num_beams': 1,
|
| 57 |
-
'num_hidden_layers': 12,
|
| 58 |
-
'num_return_sequences': 1,
|
| 59 |
-
'output_attentions': False,
|
| 60 |
-
'output_hidden_states': True,
|
| 61 |
-
'output_scores': False,
|
| 62 |
-
'pad_token_id': 1,
|
| 63 |
-
'position_embedding_type': 'absolute',
|
| 64 |
-
'prefix': None,
|
| 65 |
-
'problem_type': 'single_label_classification',
|
| 66 |
-
'pruned_heads': {},
|
| 67 |
-
'remove_invalid_values': False,
|
| 68 |
-
'repetition_penalty': 1.0,
|
| 69 |
-
'return_dict': True,
|
| 70 |
-
'return_dict_in_generate': False,
|
| 71 |
-
'sep_token_id': None,
|
| 72 |
-
'task_specific_params': None,
|
| 73 |
-
'temperature': 1.0,
|
| 74 |
-
'tie_encoder_decoder': False,
|
| 75 |
-
'tie_word_embeddings': True,
|
| 76 |
-
'tokenizer_class': None,
|
| 77 |
-
'top_k': 50,
|
| 78 |
-
'top_p': 1.0,
|
| 79 |
-
'torch_dtype': 'float32',
|
| 80 |
-
'torchscript': False,
|
| 81 |
-
'transformers_version': '4.16.2',
|
| 82 |
-
'type_vocab_size': 1,
|
| 83 |
-
'use_bfloat16': False,
|
| 84 |
-
'use_cache': True,
|
| 85 |
-
'vocab_size': 30002},
|
| 86 |
-
'inbound_nodes': [[['input_ids',
|
| 87 |
-
0,
|
| 88 |
-
0,
|
| 89 |
-
{'attention_mask': ['attention_mask', 0, 0]}]]],
|
| 90 |
-
'name': 'tf_roberta_model_2'},
|
| 91 |
-
{'class_name': 'Concatenate',
|
| 92 |
-
'config': {'axis': -1,
|
| 93 |
-
'dtype': 'float32',
|
| 94 |
-
'name': 'concatenate_1',
|
| 95 |
-
'trainable': True},
|
| 96 |
-
'inbound_nodes': [(['tf_roberta_model_2', 0, 9, {}],
|
| 97 |
-
['tf_roberta_model_2', 0, 10, {}],
|
| 98 |
-
['tf_roberta_model_2', 0, 11, {}],
|
| 99 |
-
['tf_roberta_model_2', 0, 12, {}])],
|
| 100 |
-
'name': 'concatenate_1'},
|
| 101 |
-
{'class_name': 'GlobalMaxPooling1D',
|
| 102 |
-
'config': {'data_format': 'channels_last',
|
| 103 |
-
'dtype': 'float32',
|
| 104 |
-
'keepdims': False,
|
| 105 |
-
'name': 'global_max_pooling1d_4',
|
| 106 |
-
'trainable': True},
|
| 107 |
-
'inbound_nodes': [[['concatenate_1', 0, 0, {}]]],
|
| 108 |
-
'name': 'global_max_pooling1d_4'},
|
| 109 |
-
{'class_name': 'Dense',
|
| 110 |
-
'config': {'activation': 'relu',
|
| 111 |
-
'activity_regularizer': None,
|
| 112 |
-
'bias_constraint': None,
|
| 113 |
-
'bias_initializer': {'class_name': 'Zeros', 'config': {}},
|
| 114 |
-
'bias_regularizer': None,
|
| 115 |
-
'dtype': 'float32',
|
| 116 |
-
'kernel_constraint': None,
|
| 117 |
-
'kernel_initializer': {'class_name': 'GlorotUniform',
|
| 118 |
-
'config': {'seed': None}},
|
| 119 |
-
'kernel_regularizer': None,
|
| 120 |
-
'name': 'dense_9',
|
| 121 |
-
'trainable': True,
|
| 122 |
-
'units': 128,
|
| 123 |
-
'use_bias': True},
|
| 124 |
-
'inbound_nodes': [[['global_max_pooling1d_4', 0, 0, {}]]],
|
| 125 |
-
'name': 'dense_9'},
|
| 126 |
-
{'class_name': 'Dropout',
|
| 127 |
-
'config': {'dtype': 'float32',
|
| 128 |
-
'name': 'dropout_151',
|
| 129 |
-
'noise_shape': None,
|
| 130 |
-
'rate': 0.1,
|
| 131 |
-
'seed': None,
|
| 132 |
-
'trainable': True},
|
| 133 |
-
'inbound_nodes': [[['dense_9', 0, 0, {}]]],
|
| 134 |
-
'name': 'dropout_151'},
|
| 135 |
-
{'class_name': 'Dense',
|
| 136 |
-
'config': {'activation': 'relu',
|
| 137 |
-
'activity_regularizer': None,
|
| 138 |
-
'bias_constraint': None,
|
| 139 |
-
'bias_initializer': {'class_name': 'Zeros', 'config': {}},
|
| 140 |
-
'bias_regularizer': None,
|
| 141 |
-
'dtype': 'float32',
|
| 142 |
-
'kernel_constraint': None,
|
| 143 |
-
'kernel_initializer': {'class_name': 'GlorotUniform',
|
| 144 |
-
'config': {'seed': None}},
|
| 145 |
-
'kernel_regularizer': None,
|
| 146 |
-
'name': 'dense_10',
|
| 147 |
-
'trainable': True,
|
| 148 |
-
'units': 32,
|
| 149 |
-
'use_bias': True},
|
| 150 |
-
'inbound_nodes': [[['dropout_151', 0, 0, {}]]],
|
| 151 |
-
'name': 'dense_10'},
|
| 152 |
-
{'class_name': 'Dense',
|
| 153 |
-
'config': {'activation': 'sigmoid',
|
| 154 |
-
'activity_regularizer': None,
|
| 155 |
-
'bias_constraint': None,
|
| 156 |
-
'bias_initializer': {'class_name': 'Zeros', 'config': {}},
|
| 157 |
-
'bias_regularizer': None,
|
| 158 |
-
'dtype': 'float32',
|
| 159 |
-
'kernel_constraint': None,
|
| 160 |
-
'kernel_initializer': {'class_name': 'GlorotUniform',
|
| 161 |
-
'config': {'seed': None}},
|
| 162 |
-
'kernel_regularizer': None,
|
| 163 |
-
'name': 'dense_11',
|
| 164 |
-
'trainable': True,
|
| 165 |
-
'units': 3,
|
| 166 |
-
'use_bias': True},
|
| 167 |
-
'inbound_nodes': [[['dense_10', 0, 0, {}]]],
|
| 168 |
-
'name': 'dense_11'}],
|
| 169 |
-
'name': 'model_3',
|
| 170 |
-
'output_layers': [['dense_11', 0, 0]]}
|
|
|
|
| 1 |
+
{"name": "model", "layers": [{"class_name": "InputLayer", "config": {"batch_input_shape": [null, 70], "dtype": "int32", "sparse": false, "ragged": false, "name": "input_ids"}, "name": "input_ids", "inbound_nodes": []}, {"class_name": "InputLayer", "config": {"batch_input_shape": [null, 70], "dtype": "int32", "sparse": false, "ragged": false, "name": "attention_mask"}, "name": "attention_mask", "inbound_nodes": []}, {"class_name": "TFRobertaModel", "config": {"return_dict": true, "output_hidden_states": true, "output_attentions": false, "torchscript": false, "torch_dtype": "float32", "use_bfloat16": false, "pruned_heads": {}, "tie_word_embeddings": true, "is_encoder_decoder": false, "is_decoder": false, "cross_attention_hidden_size": null, "add_cross_attention": false, "tie_encoder_decoder": false, "max_length": 20, "min_length": 0, "do_sample": false, "early_stopping": false, "num_beams": 1, "num_beam_groups": 1, "diversity_penalty": 0.0, "temperature": 1.0, "top_k": 50, "top_p": 1.0, "repetition_penalty": 1.0, "length_penalty": 1.0, "no_repeat_ngram_size": 0, "encoder_no_repeat_ngram_size": 0, "bad_words_ids": null, "num_return_sequences": 1, "chunk_size_feed_forward": 0, "output_scores": false, "return_dict_in_generate": false, "forced_bos_token_id": null, "forced_eos_token_id": null, "remove_invalid_values": false, "architectures": ["RobertaForSequenceClassification"], "finetuning_task": null, "id2label": {"0": "NEG", "1": "NEU", "2": "POS"}, "label2id": {"NEG": 0, "NEU": 1, "POS": 2}, "tokenizer_class": null, "prefix": null, "bos_token_id": 0, "pad_token_id": 1, "eos_token_id": 2, "sep_token_id": null, "decoder_start_token_id": null, "task_specific_params": null, "problem_type": "single_label_classification", "_name_or_path": "pysentimiento/robertuito-sentiment-analysis", "transformers_version": "4.16.2", "gradient_checkpointing": false, "model_type": "roberta", "vocab_size": 30002, "hidden_size": 768, "num_hidden_layers": 12, "num_attention_heads": 12, "hidden_act": "gelu", "intermediate_size": 3072, "hidden_dropout_prob": 0.1, "attention_probs_dropout_prob": 0.1, "max_position_embeddings": 130, "type_vocab_size": 1, "initializer_range": 0.02, "layer_norm_eps": 1e-12, "position_embedding_type": "absolute", "use_cache": true, "classifier_dropout": null}, "name": "tf_roberta_model", "inbound_nodes": [[["input_ids", 0, 0, {"attention_mask": ["attention_mask", 0, 0]}]]]}, {"class_name": "Concatenate", "config": {"name": "concatenate", "trainable": true, "dtype": "float32", "axis": -1}, "name": "concatenate", "inbound_nodes": [[["tf_roberta_model", 0, 9, {}], ["tf_roberta_model", 0, 10, {}], ["tf_roberta_model", 0, 11, {}], ["tf_roberta_model", 0, 12, {}]]]}, {"class_name": "GlobalMaxPooling1D", "config": {"name": "global_max_pooling1d", "trainable": true, "dtype": "float32", "data_format": "channels_last", "keepdims": false}, "name": "global_max_pooling1d", "inbound_nodes": [[["concatenate", 0, 0, {}]]]}, {"class_name": "Dense", "config": {"name": "dense", "trainable": true, "dtype": "float32", "units": 128, "activation": "relu", "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}, "name": "dense", "inbound_nodes": [[["global_max_pooling1d", 0, 0, {}]]]}, {"class_name": "Dropout", "config": {"name": "dropout_37", "trainable": true, "dtype": "float32", "rate": 0.1, "noise_shape": null, "seed": null}, "name": "dropout_37", "inbound_nodes": [[["dense", 0, 0, {}]]]}, {"class_name": "Dense", "config": {"name": "dense_1", "trainable": true, "dtype": "float32", "units": 32, "activation": "relu", "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}, "name": "dense_1", "inbound_nodes": [[["dropout_37", 0, 0, {}]]]}, {"class_name": "Dense", "config": {"name": "dense_2", "trainable": true, "dtype": "float32", "units": 3, "activation": "sigmoid", "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}, "name": "dense_2", "inbound_nodes": [[["dense_1", 0, 0, {}]]]}], "input_layers": [["input_ids", 0, 0], ["attention_mask", 0, 0]], "output_layers": [["dense_2", 0, 0]]}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|