ShadowGard3n commited on
Commit
8a9cb3a
·
verified ·
1 Parent(s): 8d2a9b1

Upload 6 files

Browse files
STEM_Sight_Line_Model/config.json ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "VisionEncoderDecoderModel"
4
+ ],
5
+ "decoder": {
6
+ "_name_or_path": "",
7
+ "activation_dropout": 0.0,
8
+ "activation_function": "gelu",
9
+ "add_cross_attention": true,
10
+ "add_final_layer_norm": true,
11
+ "architectures": null,
12
+ "attention_dropout": 0.0,
13
+ "bos_token_id": 0,
14
+ "chunk_size_feed_forward": 0,
15
+ "classifier_dropout": 0.0,
16
+ "cross_attention_hidden_size": null,
17
+ "d_model": 1024,
18
+ "decoder_attention_heads": 16,
19
+ "decoder_ffn_dim": 4096,
20
+ "decoder_layerdrop": 0.0,
21
+ "decoder_layers": 4,
22
+ "decoder_start_token_id": null,
23
+ "dropout": 0.1,
24
+ "dtype": "float32",
25
+ "encoder_attention_heads": 16,
26
+ "encoder_ffn_dim": 4096,
27
+ "encoder_layerdrop": 0.0,
28
+ "encoder_layers": 12,
29
+ "eos_token_id": 2,
30
+ "finetuning_task": null,
31
+ "id2label": {
32
+ "0": "LABEL_0",
33
+ "1": "LABEL_1"
34
+ },
35
+ "init_std": 0.02,
36
+ "is_decoder": true,
37
+ "is_encoder_decoder": false,
38
+ "label2id": {
39
+ "LABEL_0": 0,
40
+ "LABEL_1": 1
41
+ },
42
+ "max_position_embeddings": 1536,
43
+ "model_type": "mbart",
44
+ "num_hidden_layers": 12,
45
+ "output_attentions": false,
46
+ "output_hidden_states": false,
47
+ "pad_token_id": 1,
48
+ "prefix": null,
49
+ "problem_type": null,
50
+ "pruned_heads": {},
51
+ "return_dict": true,
52
+ "scale_embedding": true,
53
+ "sep_token_id": null,
54
+ "task_specific_params": null,
55
+ "tf_legacy_loss": false,
56
+ "tie_encoder_decoder": false,
57
+ "tie_word_embeddings": true,
58
+ "tokenizer_class": null,
59
+ "torchscript": false,
60
+ "use_bfloat16": false,
61
+ "use_cache": true,
62
+ "vocab_size": 57525
63
+ },
64
+ "decoder_start_token_id": 0,
65
+ "dtype": "float32",
66
+ "encoder": {
67
+ "_name_or_path": "",
68
+ "add_cross_attention": false,
69
+ "architectures": null,
70
+ "attention_probs_dropout_prob": 0.0,
71
+ "bos_token_id": null,
72
+ "chunk_size_feed_forward": 0,
73
+ "cross_attention_hidden_size": null,
74
+ "decoder_start_token_id": null,
75
+ "depths": [
76
+ 2,
77
+ 2,
78
+ 14,
79
+ 2
80
+ ],
81
+ "drop_path_rate": 0.1,
82
+ "dtype": "float32",
83
+ "embed_dim": 128,
84
+ "eos_token_id": null,
85
+ "finetuning_task": null,
86
+ "hidden_act": "gelu",
87
+ "hidden_dropout_prob": 0.0,
88
+ "hidden_size": 1024,
89
+ "id2label": {
90
+ "0": "LABEL_0",
91
+ "1": "LABEL_1"
92
+ },
93
+ "image_size": 384,
94
+ "initializer_range": 0.02,
95
+ "is_decoder": false,
96
+ "is_encoder_decoder": false,
97
+ "label2id": {
98
+ "LABEL_0": 0,
99
+ "LABEL_1": 1
100
+ },
101
+ "layer_norm_eps": 1e-05,
102
+ "mlp_ratio": 4.0,
103
+ "model_type": "donut-swin",
104
+ "num_channels": 3,
105
+ "num_heads": [
106
+ 4,
107
+ 8,
108
+ 16,
109
+ 32
110
+ ],
111
+ "num_layers": 4,
112
+ "output_attentions": false,
113
+ "output_hidden_states": false,
114
+ "pad_token_id": null,
115
+ "patch_size": 4,
116
+ "path_norm": true,
117
+ "prefix": null,
118
+ "problem_type": null,
119
+ "pruned_heads": {},
120
+ "qkv_bias": true,
121
+ "return_dict": true,
122
+ "sep_token_id": null,
123
+ "task_specific_params": null,
124
+ "tf_legacy_loss": false,
125
+ "tie_encoder_decoder": false,
126
+ "tie_word_embeddings": true,
127
+ "tokenizer_class": null,
128
+ "torchscript": false,
129
+ "use_absolute_embeddings": false,
130
+ "use_bfloat16": false,
131
+ "window_size": 10
132
+ },
133
+ "is_encoder_decoder": true,
134
+ "model_type": "vision-encoder-decoder",
135
+ "pad_token_id": 1,
136
+ "tie_word_embeddings": false,
137
+ "transformers_version": "5.0.0"
138
+ }
STEM_Sight_Line_Model/generation_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "diversity_penalty": 0.0,
5
+ "do_sample": false,
6
+ "early_stopping": false,
7
+ "encoder_no_repeat_ngram_size": 0,
8
+ "eos_token_id": 2,
9
+ "forced_eos_token_id": 2,
10
+ "length_penalty": 1.0,
11
+ "max_length": 20,
12
+ "min_length": 0,
13
+ "no_repeat_ngram_size": 0,
14
+ "num_beam_groups": 1,
15
+ "num_beams": 1,
16
+ "num_return_sequences": 1,
17
+ "output_attentions": false,
18
+ "output_hidden_states": false,
19
+ "output_scores": false,
20
+ "pad_token_id": 1,
21
+ "remove_invalid_values": false,
22
+ "repetition_penalty": 1.0,
23
+ "return_dict_in_generate": false,
24
+ "temperature": 1.0,
25
+ "top_k": 50,
26
+ "top_p": 1.0,
27
+ "transformers_version": "5.0.0",
28
+ "typical_p": 1.0,
29
+ "use_cache": true
30
+ }
STEM_Sight_Line_Model/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e029d58fcef5357a1b9b3d8221e2db8a25d698e6072448866bca5bcef8293335
3
+ size 1044693280
STEM_Sight_Line_Model/processor_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "data_format": "channels_first",
4
+ "do_align_long_axis": true,
5
+ "do_normalize": true,
6
+ "do_pad": true,
7
+ "do_rescale": true,
8
+ "do_resize": true,
9
+ "do_thumbnail": true,
10
+ "image_mean": [
11
+ 0.5,
12
+ 0.5,
13
+ 0.5
14
+ ],
15
+ "image_processor_type": "DonutImageProcessorFast",
16
+ "image_std": [
17
+ 0.5,
18
+ 0.5,
19
+ 0.5
20
+ ],
21
+ "resample": 2,
22
+ "rescale_factor": 0.00392156862745098,
23
+ "size": {
24
+ "height": 384,
25
+ "width": 384
26
+ }
27
+ },
28
+ "processor_class": "DonutProcessor"
29
+ }
STEM_Sight_Line_Model/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
STEM_Sight_Line_Model/tokenizer_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<s>",
4
+ "cls_token": "<s>",
5
+ "eos_token": "</s>",
6
+ "extra_special_tokens": [
7
+ "<s_iitcdip>",
8
+ "<s_synthdog>"
9
+ ],
10
+ "from_slow": true,
11
+ "is_local": true,
12
+ "mask_token": "<mask>",
13
+ "max_length": 256,
14
+ "model_max_length": 1000000000000000019884624838656,
15
+ "pad_to_multiple_of": null,
16
+ "pad_token": "<pad>",
17
+ "pad_token_type_id": 0,
18
+ "padding_side": "right",
19
+ "processor_class": "DonutProcessor",
20
+ "sep_token": "</s>",
21
+ "sp_model_kwargs": {},
22
+ "stride": 0,
23
+ "tokenizer_class": "TokenizersBackend",
24
+ "truncation_side": "right",
25
+ "truncation_strategy": "longest_first",
26
+ "unk_token": "<unk>"
27
+ }