Upload LongformerForTokenClassification
Browse files- config.json +61 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "./step1_shanshan",
|
3 |
+
"architectures": [
|
4 |
+
"LongformerForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"attention_window": [
|
8 |
+
40,
|
9 |
+
40,
|
10 |
+
40,
|
11 |
+
40
|
12 |
+
],
|
13 |
+
"bos_token_id": 0,
|
14 |
+
"classifier_dropout": null,
|
15 |
+
"eos_token_id": 2,
|
16 |
+
"hidden_act": "gelu",
|
17 |
+
"hidden_dropout_prob": 0.1,
|
18 |
+
"hidden_size": 256,
|
19 |
+
"id2label": {
|
20 |
+
"0": "LABEL_0",
|
21 |
+
"1": "LABEL_1",
|
22 |
+
"2": "LABEL_2",
|
23 |
+
"3": "LABEL_3",
|
24 |
+
"4": "LABEL_4",
|
25 |
+
"5": "LABEL_5",
|
26 |
+
"6": "LABEL_6",
|
27 |
+
"7": "LABEL_7",
|
28 |
+
"8": "LABEL_8",
|
29 |
+
"9": "LABEL_9",
|
30 |
+
"10": "LABEL_10"
|
31 |
+
},
|
32 |
+
"initializer_range": 0.02,
|
33 |
+
"intermediate_size": 512,
|
34 |
+
"label2id": {
|
35 |
+
"LABEL_0": 0,
|
36 |
+
"LABEL_1": 1,
|
37 |
+
"LABEL_10": 10,
|
38 |
+
"LABEL_2": 2,
|
39 |
+
"LABEL_3": 3,
|
40 |
+
"LABEL_4": 4,
|
41 |
+
"LABEL_5": 5,
|
42 |
+
"LABEL_6": 6,
|
43 |
+
"LABEL_7": 7,
|
44 |
+
"LABEL_8": 8,
|
45 |
+
"LABEL_9": 9
|
46 |
+
},
|
47 |
+
"layer_norm_eps": 1e-12,
|
48 |
+
"max_position_embeddings": 16384,
|
49 |
+
"model_type": "longformer",
|
50 |
+
"num_attention_heads": 4,
|
51 |
+
"num_hidden_layers": 4,
|
52 |
+
"onnx_export": false,
|
53 |
+
"pad_token_id": 1,
|
54 |
+
"position_embedding_type": "relative_key_query",
|
55 |
+
"sep_token_id": 2,
|
56 |
+
"torch_dtype": "float32",
|
57 |
+
"transformers_version": "4.23.1",
|
58 |
+
"type_vocab_size": 2,
|
59 |
+
"use_cache": true,
|
60 |
+
"vocab_size": 3634
|
61 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7bdac959a7f5178a1d24bb12e1805abe53eaf8ebda74fb8a5c8d1fc5e1bd18bf
|
3 |
+
size 32135752
|