Commit
·
1356be7
1
Parent(s):
3a43281
add model
Browse files- config.json +13 -2
- pytorch_model.bin +2 -2
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
"LongformerForSequenceClassification"
|
5 |
],
|
@@ -26,9 +26,21 @@
|
|
26 |
"hidden_act": "gelu",
|
27 |
"hidden_dropout_prob": 0.1,
|
28 |
"hidden_size": 768,
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
"ignore_attention_mask": false,
|
30 |
"initializer_range": 0.02,
|
31 |
"intermediate_size": 3072,
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
"layer_norm_eps": 1e-05,
|
33 |
"max_position_embeddings": 4098,
|
34 |
"model_type": "longformer",
|
@@ -36,7 +48,6 @@
|
|
36 |
"num_hidden_layers": 12,
|
37 |
"pad_token_id": 1,
|
38 |
"position_embedding_type": "absolute",
|
39 |
-
"problem_type": "single_label_classification",
|
40 |
"sep_token_id": 2,
|
41 |
"torch_dtype": "float32",
|
42 |
"transformers_version": "4.16.2",
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "allenai/longformer-base-4096",
|
3 |
"architectures": [
|
4 |
"LongformerForSequenceClassification"
|
5 |
],
|
|
|
26 |
"hidden_act": "gelu",
|
27 |
"hidden_dropout_prob": 0.1,
|
28 |
"hidden_size": 768,
|
29 |
+
"id2label": {
|
30 |
+
"0": "LABEL_0",
|
31 |
+
"1": "LABEL_1",
|
32 |
+
"2": "LABEL_2",
|
33 |
+
"3": "LABEL_3"
|
34 |
+
},
|
35 |
"ignore_attention_mask": false,
|
36 |
"initializer_range": 0.02,
|
37 |
"intermediate_size": 3072,
|
38 |
+
"label2id": {
|
39 |
+
"LABEL_0": 0,
|
40 |
+
"LABEL_1": 1,
|
41 |
+
"LABEL_2": 2,
|
42 |
+
"LABEL_3": 3
|
43 |
+
},
|
44 |
"layer_norm_eps": 1e-05,
|
45 |
"max_position_embeddings": 4098,
|
46 |
"model_type": "longformer",
|
|
|
48 |
"num_hidden_layers": 12,
|
49 |
"pad_token_id": 1,
|
50 |
"position_embedding_type": "absolute",
|
|
|
51 |
"sep_token_id": 2,
|
52 |
"torch_dtype": "float32",
|
53 |
"transformers_version": "4.16.2",
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:58ce71837fbda8456650c09fea538634c4073f81ac59dbcac5a514a2e4c975e3
|
3 |
+
size 594792669
|