livadies commited on
Commit
a42e6d7
·
verified ·
1 Parent(s): 51e162a

Upload 6 files

Browse files

Initial model upload

config.json ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "VisionEncoderDecoderModel"
4
+ ],
5
+ "bos_token_id": 1,
6
+ "decoder": {
7
+ "_name_or_path": "ai-forever/rugpt3small_based_on_gpt2",
8
+ "activation_function": "gelu_new",
9
+ "add_cross_attention": true,
10
+ "architectures": [
11
+ "GPT2LMHeadModel"
12
+ ],
13
+ "attn_pdrop": 0.1,
14
+ "bos_token_id": 1,
15
+ "chunk_size_feed_forward": 0,
16
+ "dtype": "float32",
17
+ "embd_pdrop": 0.1,
18
+ "eos_token_id": 2,
19
+ "gradient_checkpointing": false,
20
+ "id2label": {
21
+ "0": "LABEL_0"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "is_decoder": true,
25
+ "is_encoder_decoder": false,
26
+ "label2id": {
27
+ "LABEL_0": 0
28
+ },
29
+ "layer_norm_epsilon": 1e-05,
30
+ "model_type": "gpt2",
31
+ "n_ctx": 2048,
32
+ "n_embd": 768,
33
+ "n_head": 12,
34
+ "n_inner": null,
35
+ "n_layer": 12,
36
+ "n_positions": 2048,
37
+ "output_attentions": false,
38
+ "output_hidden_states": false,
39
+ "pad_token_id": 0,
40
+ "problem_type": null,
41
+ "reorder_and_upcast_attn": false,
42
+ "resid_pdrop": 0.1,
43
+ "return_dict": true,
44
+ "scale_attn_by_inverse_layer_idx": false,
45
+ "scale_attn_weights": true,
46
+ "summary_activation": null,
47
+ "summary_first_dropout": 0.1,
48
+ "summary_proj_to_labels": true,
49
+ "summary_type": "cls_index",
50
+ "summary_use_proj": true,
51
+ "tie_word_embeddings": true,
52
+ "use_cache": true,
53
+ "vocab_size": 50264
54
+ },
55
+ "decoder_start_token_id": 1,
56
+ "dtype": "float32",
57
+ "encoder": {
58
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
59
+ "architectures": [
60
+ "ViTModel"
61
+ ],
62
+ "attention_probs_dropout_prob": 0.0,
63
+ "chunk_size_feed_forward": 0,
64
+ "dtype": "float32",
65
+ "encoder_stride": 16,
66
+ "hidden_act": "gelu",
67
+ "hidden_dropout_prob": 0.0,
68
+ "hidden_size": 768,
69
+ "id2label": {
70
+ "0": "LABEL_0",
71
+ "1": "LABEL_1"
72
+ },
73
+ "image_size": 224,
74
+ "initializer_range": 0.02,
75
+ "intermediate_size": 3072,
76
+ "is_encoder_decoder": false,
77
+ "label2id": {
78
+ "LABEL_0": 0,
79
+ "LABEL_1": 1
80
+ },
81
+ "layer_norm_eps": 1e-12,
82
+ "model_type": "vit",
83
+ "num_attention_heads": 12,
84
+ "num_channels": 3,
85
+ "num_hidden_layers": 12,
86
+ "output_attentions": false,
87
+ "output_hidden_states": false,
88
+ "patch_size": 16,
89
+ "pooler_act": "tanh",
90
+ "pooler_output_size": 768,
91
+ "problem_type": null,
92
+ "qkv_bias": true,
93
+ "return_dict": true
94
+ },
95
+ "eos_token_id": 2,
96
+ "is_encoder_decoder": true,
97
+ "model_type": "vision-encoder-decoder",
98
+ "pad_token_id": 2,
99
+ "tie_word_embeddings": false,
100
+ "transformers_version": "5.2.0",
101
+ "use_cache": false,
102
+ "vocab_size": 50264
103
+ }
generation_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "decoder_start_token_id": 1,
5
+ "early_stopping": true,
6
+ "eos_token_id": [
7
+ 2
8
+ ],
9
+ "max_length": 128,
10
+ "no_repeat_ngram_size": 3,
11
+ "num_beams": 4,
12
+ "output_attentions": false,
13
+ "output_hidden_states": false,
14
+ "pad_token_id": 2,
15
+ "transformers_version": "5.2.0",
16
+ "use_cache": false
17
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4a8793e5a55501c9cceec51513e96cb4bb8a589d78bd32cb7665a81131a2894
3
+ size 1114414120
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": null,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "ViTImageProcessor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "resample": 2,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 224,
21
+ "width": 224
22
+ }
23
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": true,
6
+ "eos_token": "</s>",
7
+ "errors": "replace",
8
+ "is_local": false,
9
+ "mask_token": "<mask>",
10
+ "model_max_length": 2048,
11
+ "pad_token": "</s>",
12
+ "padding_side": "left",
13
+ "tokenizer_class": "GPT2Tokenizer",
14
+ "truncation_side": "left",
15
+ "unk_token": "<unk>"
16
+ }