Muddassar commited on
Commit
6382865
1 Parent(s): 03a8092

Upload LongformerForSequenceClassification

Browse files
Files changed (2) hide show
  1. config.json +58 -0
  2. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "drive/MyDrive/siena/model_checkpoints/longformer_sentiment_best_20240828_024835",
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
+ },
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
+ "LABEL_4": 4
44
+ },
45
+ "layer_norm_eps": 1e-05,
46
+ "max_position_embeddings": 4098,
47
+ "model_type": "longformer",
48
+ "num_attention_heads": 12,
49
+ "num_hidden_layers": 12,
50
+ "onnx_export": false,
51
+ "pad_token_id": 1,
52
+ "problem_type": "single_label_classification",
53
+ "sep_token_id": 2,
54
+ "torch_dtype": "float32",
55
+ "transformers_version": "4.42.4",
56
+ "type_vocab_size": 1,
57
+ "vocab_size": 50265
58
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45ceb8589911ffc0c2768459f37d4048d8263b840f0f334cc36d7284e80ad440
3
+ size 594687412