Perth0603 commited on
Commit
f6682e6
·
verified ·
1 Parent(s): 51823e9

Ensure id2label/label2id in config

Browse files
Files changed (1) hide show
  1. config.json +10 -42
config.json CHANGED
@@ -1,42 +1,10 @@
1
- {
2
- "_name_or_path": "google/mobilebert-uncased",
3
- "architectures": [
4
- "MobileBertForSequenceClassification"
5
- ],
6
- "attention_probs_dropout_prob": 0.1,
7
- "classifier_activation": false,
8
- "classifier_dropout": null,
9
- "embedding_size": 128,
10
- "hidden_act": "relu",
11
- "hidden_dropout_prob": 0.0,
12
- "hidden_size": 512,
13
- "id2label": {
14
- "0": "LEGIT",
15
- "1": "PHISH"
16
- },
17
- "initializer_range": 0.02,
18
- "intermediate_size": 512,
19
- "intra_bottleneck_size": 128,
20
- "key_query_shared_bottleneck": true,
21
- "label2id": {
22
- "LEGIT": 0,
23
- "PHISH": 1
24
- },
25
- "layer_norm_eps": 1e-12,
26
- "max_position_embeddings": 512,
27
- "model_type": "mobilebert",
28
- "normalization_type": "no_norm",
29
- "num_attention_heads": 4,
30
- "num_feedforward_networks": 4,
31
- "num_hidden_layers": 24,
32
- "pad_token_id": 0,
33
- "problem_type": "single_label_classification",
34
- "torch_dtype": "float32",
35
- "transformers_version": "4.46.3",
36
- "trigram_input": true,
37
- "true_hidden_size": 128,
38
- "type_vocab_size": 2,
39
- "use_bottleneck": true,
40
- "use_bottleneck_attention": false,
41
- "vocab_size": 30522
42
- }
 
1
+ {
2
+ "id2label": {
3
+ "0": "LEGIT",
4
+ "1": "PHISH"
5
+ },
6
+ "label2id": {
7
+ "LEGIT": 0,
8
+ "PHISH": 1
9
+ }
10
+ }