liqinye commited on
Commit
39bde52
·
verified ·
1 Parent(s): 7e9099c

Upload LongformerForSequenceClassification

Browse files
Files changed (2) hide show
  1. config.json +69 -0
  2. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "allenai/longformer-base-4096",
3
+ "architectures": [
4
+ "LongformerForSequenceClassification"
5
+ ],
6
+ "attention_mode": "longformer",
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "attention_window": [
9
+ 512,
10
+ 512,
11
+ 512,
12
+ 512,
13
+ 512,
14
+ 512,
15
+ 512,
16
+ 512,
17
+ 512,
18
+ 512,
19
+ 512,
20
+ 512
21
+ ],
22
+ "bos_token_id": 0,
23
+ "eos_token_id": 2,
24
+ "gradient_checkpointing": false,
25
+ "hidden_act": "gelu",
26
+ "hidden_dropout_prob": 0.1,
27
+ "hidden_size": 768,
28
+ "id2label": {
29
+ "0": "LABEL_0",
30
+ "1": "LABEL_1",
31
+ "2": "LABEL_2",
32
+ "3": "LABEL_3",
33
+ "4": "LABEL_4",
34
+ "5": "LABEL_5",
35
+ "6": "LABEL_6",
36
+ "7": "LABEL_7",
37
+ "8": "LABEL_8",
38
+ "9": "LABEL_9"
39
+ },
40
+ "ignore_attention_mask": false,
41
+ "initializer_range": 0.02,
42
+ "intermediate_size": 3072,
43
+ "label2id": {
44
+ "LABEL_0": 0,
45
+ "LABEL_1": 1,
46
+ "LABEL_2": 2,
47
+ "LABEL_3": 3,
48
+ "LABEL_4": 4,
49
+ "LABEL_5": 5,
50
+ "LABEL_6": 6,
51
+ "LABEL_7": 7,
52
+ "LABEL_8": 8,
53
+ "LABEL_9": 9
54
+ },
55
+ "layer_norm_eps": 1e-05,
56
+ "max_position_embeddings": 4098,
57
+ "model_type": "longformer",
58
+ "num_attention_heads": 12,
59
+ "num_hidden_layers": 12,
60
+ "onnx_export": false,
61
+ "output_hidden_states": true,
62
+ "pad_token_id": 1,
63
+ "problem_type": "single_label_classification",
64
+ "sep_token_id": 2,
65
+ "torch_dtype": "float32",
66
+ "transformers_version": "4.46.1",
67
+ "type_vocab_size": 1,
68
+ "vocab_size": 50265
69
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94bdfe640a1c054d8edf9ec443908db1301eb668de960276de9b5937fde86c9e
3
+ size 594702792