hyunwoo3235 commited on
Commit
fac2497
1 Parent(s): 45ba02e

Upload 11 files

Browse files
config.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "VisionEncoderDecoderModel"
4
+ ],
5
+ "decoder": {
6
+ "activation_dropout": 0.0,
7
+ "activation_function": "relu",
8
+ "add_cross_attention": true,
9
+ "attention_dropout": 0.0,
10
+ "bos_token_id": 0,
11
+ "chunk_size_feed_forward": 0,
12
+ "classifier_dropout": 0.0,
13
+ "cross_attention_hidden_size": 384,
14
+ "d_model": 256,
15
+ "decoder_attention_heads": 8,
16
+ "decoder_ffn_dim": 1024,
17
+ "decoder_layerdrop": 0.0,
18
+ "decoder_layers": 6,
19
+ "decoder_start_token_id": 2,
20
+ "diversity_penalty": 0.0,
21
+ "do_sample": false,
22
+ "dropout": 0.1,
23
+ "early_stopping": false,
24
+ "encoder_no_repeat_ngram_size": 0,
25
+ "eos_token_id": 2,
26
+ "id2label": {
27
+ "0": "LABEL_0",
28
+ "1": "LABEL_1"
29
+ },
30
+ "init_std": 0.02,
31
+ "is_decoder": true,
32
+ "is_encoder_decoder": false,
33
+ "label2id": {
34
+ "LABEL_0": 0,
35
+ "LABEL_1": 1
36
+ },
37
+ "layernorm_embedding": true,
38
+ "length_penalty": 1.0,
39
+ "max_length": 20,
40
+ "max_position_embeddings": 512,
41
+ "min_length": 0,
42
+ "model_type": "trocr",
43
+ "no_repeat_ngram_size": 0,
44
+ "num_beam_groups": 1,
45
+ "num_beams": 1,
46
+ "num_return_sequences": 1,
47
+ "output_attentions": false,
48
+ "output_hidden_states": false,
49
+ "output_scores": false,
50
+ "pad_token_id": 1,
51
+ "remove_invalid_values": false,
52
+ "repetition_penalty": 1.0,
53
+ "return_dict": true,
54
+ "return_dict_in_generate": false,
55
+ "scale_embedding": true,
56
+ "temperature": 1.0,
57
+ "tf_legacy_loss": false,
58
+ "tie_encoder_decoder": false,
59
+ "tie_word_embeddings": false,
60
+ "top_k": 50,
61
+ "top_p": 1.0,
62
+ "torch_dtype": "float32",
63
+ "torchscript": false,
64
+ "transformers_version": "4.30.0.dev0",
65
+ "typical_p": 1.0,
66
+ "use_bfloat16": false,
67
+ "use_cache": false,
68
+ "use_learned_position_embeddings": true,
69
+ "vocab_size": 50265
70
+ },
71
+ "encoder": {
72
+ "add_cross_attention": false,
73
+ "attention_probs_dropout_prob": 0.0,
74
+ "chunk_size_feed_forward": 0,
75
+ "diversity_penalty": 0.0,
76
+ "do_sample": false,
77
+ "early_stopping": false,
78
+ "encoder_no_repeat_ngram_size": 0,
79
+ "encoder_stride": 16,
80
+ "hidden_act": "gelu",
81
+ "hidden_dropout_prob": 0.0,
82
+ "hidden_size": 384,
83
+ "id2label": {
84
+ "0": "LABEL_0",
85
+ "1": "LABEL_1"
86
+ },
87
+ "image_size": 384,
88
+ "initializer_range": 0.02,
89
+ "intermediate_size": 1536,
90
+ "is_decoder": false,
91
+ "is_encoder_decoder": false,
92
+ "label2id": {
93
+ "LABEL_0": 0,
94
+ "LABEL_1": 1
95
+ },
96
+ "layer_norm_eps": 1e-12,
97
+ "length_penalty": 1.0,
98
+ "max_length": 20,
99
+ "min_length": 0,
100
+ "model_type": "deit",
101
+ "no_repeat_ngram_size": 0,
102
+ "num_attention_heads": 6,
103
+ "num_beam_groups": 1,
104
+ "num_beams": 1,
105
+ "num_channels": 3,
106
+ "num_hidden_layers": 12,
107
+ "num_return_sequences": 1,
108
+ "output_attentions": false,
109
+ "output_hidden_states": false,
110
+ "output_scores": false,
111
+ "patch_size": 16,
112
+ "qkv_bias": true,
113
+ "remove_invalid_values": false,
114
+ "repetition_penalty": 1.0,
115
+ "return_dict": true,
116
+ "return_dict_in_generate": false,
117
+ "temperature": 1.0,
118
+ "tf_legacy_loss": false,
119
+ "tie_encoder_decoder": false,
120
+ "tie_word_embeddings": true,
121
+ "top_k": 50,
122
+ "top_p": 1.0,
123
+ "torch_dtype": "float32",
124
+ "torchscript": false,
125
+ "transformers_version": "4.30.0.dev0",
126
+ "typical_p": 1.0,
127
+ "use_bfloat16": false
128
+ },
129
+ "is_encoder_decoder": true,
130
+ "model_type": "vision-encoder-decoder",
131
+ "tie_word_embeddings": false,
132
+ "torch_dtype": "float32",
133
+ }
flax_model.msgpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:229c08df6871b8fb2a7bceed9aa1d960a5253c1d0e8eaffbfdd6ee13f7b64574
3
+ size 218180462
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "decoder_start_token_id": 2,
5
+ "eos_token_id": 2,
6
+ "pad_token_id": 1,
7
+ "transformers_version": "4.30.0.dev0",
8
+ "use_cache": false
9
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1149215bcbc437ba3e3e8e43138c8b543da93561dfebcf7046e0bddf88ae192a
3
+ size 218211304
preprocessor_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": 224,
3
+ "do_center_crop": false,
4
+ "do_normalize": true,
5
+ "do_resize": true,
6
+ "feature_extractor_type": "DeiTFeatureExtractor",
7
+ "image_mean": [
8
+ 0.5,
9
+ 0.5,
10
+ 0.5
11
+ ],
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "resample": 3,
18
+ "size": 384
19
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5304c229239741f51e216fce85131c449eacc2fbe335e8c812315723a6cdd10
3
+ size 218287669
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<s>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "errors": "replace",
8
+ "mask_token": "<mask>",
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": "<pad>",
11
+ "sep_token": "</s>",
12
+ "tokenizer_class": "RobertaTokenizer",
13
+ "trim_offsets": true,
14
+ "unk_token": "<unk>"
15
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff