MRaudhatul commited on
Commit
467ff27
·
verified ·
1 Parent(s): 4c3abd1

Upload folder using huggingface_hub

Browse files
best_info.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2acc66b2f74fa73b4c7d77e883e2409a7740997d450adf5a8a2c8f2e0680d65a
3
+ size 1273
config.json ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "InstructBlipForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "image_token_index": 32100,
7
+ "initializer_factor": 1.0,
8
+ "initializer_range": 0.02,
9
+ "is_encoder_decoder": true,
10
+ "model_type": "instructblip",
11
+ "num_query_tokens": 32,
12
+ "qformer_config": {
13
+ "attention_probs_dropout_prob": 0.1,
14
+ "classifier_dropout": null,
15
+ "cross_attention_frequency": 2,
16
+ "dtype": "bfloat16",
17
+ "encoder_hidden_size": 1408,
18
+ "hidden_act": "gelu",
19
+ "hidden_dropout_prob": 0.1,
20
+ "hidden_size": 768,
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "layer_norm_eps": 1e-12,
24
+ "max_position_embeddings": 512,
25
+ "model_type": "instructblip_qformer",
26
+ "num_attention_heads": 12,
27
+ "num_hidden_layers": 12,
28
+ "pad_token_id": 0,
29
+ "vocab_size": 30523
30
+ },
31
+ "text_config": {
32
+ "architectures": [
33
+ "T5ForConditionalGeneration"
34
+ ],
35
+ "bos_token_id": 1,
36
+ "classifier_dropout": 0.0,
37
+ "d_ff": 5120,
38
+ "d_kv": 64,
39
+ "d_model": 2048,
40
+ "decoder_start_token_id": 0,
41
+ "dense_act_fn": "gelu",
42
+ "dropout_rate": 0.1,
43
+ "dtype": "bfloat16",
44
+ "eos_token_id": 1,
45
+ "feed_forward_proj": "gated-gelu",
46
+ "initializer_factor": 1.0,
47
+ "is_decoder": false,
48
+ "is_gated_act": true,
49
+ "layer_norm_epsilon": 1e-06,
50
+ "model_type": "t5",
51
+ "n_positions": 512,
52
+ "num_decoder_layers": 24,
53
+ "num_heads": 32,
54
+ "num_layers": 24,
55
+ "output_past": true,
56
+ "pad_token_id": 0,
57
+ "relative_attention_max_distance": 128,
58
+ "relative_attention_num_buckets": 32,
59
+ "scale_decoder_outputs": false,
60
+ "task_specific_params": {
61
+ "summarization": {
62
+ "early_stopping": true,
63
+ "length_penalty": 2.0,
64
+ "max_length": 200,
65
+ "min_length": 30,
66
+ "no_repeat_ngram_size": 3,
67
+ "num_beams": 4,
68
+ "prefix": "summarize: "
69
+ },
70
+ "translation_en_to_de": {
71
+ "early_stopping": true,
72
+ "max_length": 300,
73
+ "num_beams": 4,
74
+ "prefix": "translate English to German: "
75
+ },
76
+ "translation_en_to_fr": {
77
+ "early_stopping": true,
78
+ "max_length": 300,
79
+ "num_beams": 4,
80
+ "prefix": "translate English to French: "
81
+ },
82
+ "translation_en_to_ro": {
83
+ "early_stopping": true,
84
+ "max_length": 300,
85
+ "num_beams": 4,
86
+ "prefix": "translate English to Romanian: "
87
+ }
88
+ },
89
+ "tie_word_embeddings": true,
90
+ "use_cache": true,
91
+ "vocab_size": 32128
92
+ },
93
+ "tie_word_embeddings": false,
94
+ "transformers_version": "5.10.1",
95
+ "use_decoder_only_language_model": false,
96
+ "video_token_index": 32101,
97
+ "vision_config": {
98
+ "attention_dropout": 0.0,
99
+ "dropout": 0.0,
100
+ "dtype": "bfloat16",
101
+ "hidden_act": "gelu",
102
+ "hidden_size": 1408,
103
+ "image_size": 224,
104
+ "initializer_factor": 1.0,
105
+ "initializer_range": 1e-10,
106
+ "intermediate_size": 6144,
107
+ "layer_norm_eps": 1e-06,
108
+ "model_type": "instructblip_vision_model",
109
+ "num_attention_heads": 16,
110
+ "num_channels": 3,
111
+ "num_hidden_layers": 39,
112
+ "patch_size": 14,
113
+ "qkv_bias": true
114
+ }
115
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "decoder_start_token_id": 0,
5
+ "eos_token_id": 1,
6
+ "pad_token_id": 0,
7
+ "transformers_version": "5.10.1"
8
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d15773e7d52fc8d32f8e8af1aeaed22f0806491c226d188a2e442605b8c54ac
3
+ size 8046116536
processor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "do_convert_rgb": true,
4
+ "do_normalize": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.48145466,
9
+ 0.4578275,
10
+ 0.40821073
11
+ ],
12
+ "image_processor_type": "BlipImageProcessor",
13
+ "image_std": [
14
+ 0.26862954,
15
+ 0.26130258,
16
+ 0.27577711
17
+ ],
18
+ "resample": 3,
19
+ "rescale_factor": 0.00392156862745098,
20
+ "size": {
21
+ "height": 224,
22
+ "width": 224
23
+ }
24
+ },
25
+ "num_query_tokens": 32,
26
+ "processor_class": "InstructBlipProcessor"
27
+ }
qformer_tokenizer/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
qformer_tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "[DEC]",
4
+ "clean_up_tokenization_spaces": true,
5
+ "cls_token": "[CLS]",
6
+ "do_lower_case": true,
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "mask_token": "[MASK]",
10
+ "model_max_length": 512,
11
+ "pad_token": "[PAD]",
12
+ "processor_class": "InstructBlipProcessor",
13
+ "sep_token": "[SEP]",
14
+ "strip_accents": null,
15
+ "tokenize_chinese_chars": true,
16
+ "tokenizer_class": "BertTokenizer",
17
+ "truncation_side": "left",
18
+ "unk_token": "[UNK]"
19
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "clean_up_tokenization_spaces": true,
4
+ "eos_token": "</s>",
5
+ "extra_ids": 100,
6
+ "extra_special_tokens": [
7
+ "<extra_id_0>",
8
+ "<extra_id_1>",
9
+ "<extra_id_2>",
10
+ "<extra_id_3>",
11
+ "<extra_id_4>",
12
+ "<extra_id_5>",
13
+ "<extra_id_6>",
14
+ "<extra_id_7>",
15
+ "<extra_id_8>",
16
+ "<extra_id_9>",
17
+ "<extra_id_10>",
18
+ "<extra_id_11>",
19
+ "<extra_id_12>",
20
+ "<extra_id_13>",
21
+ "<extra_id_14>",
22
+ "<extra_id_15>",
23
+ "<extra_id_16>",
24
+ "<extra_id_17>",
25
+ "<extra_id_18>",
26
+ "<extra_id_19>",
27
+ "<extra_id_20>",
28
+ "<extra_id_21>",
29
+ "<extra_id_22>",
30
+ "<extra_id_23>",
31
+ "<extra_id_24>",
32
+ "<extra_id_25>",
33
+ "<extra_id_26>",
34
+ "<extra_id_27>",
35
+ "<extra_id_28>",
36
+ "<extra_id_29>",
37
+ "<extra_id_30>",
38
+ "<extra_id_31>",
39
+ "<extra_id_32>",
40
+ "<extra_id_33>",
41
+ "<extra_id_34>",
42
+ "<extra_id_35>",
43
+ "<extra_id_36>",
44
+ "<extra_id_37>",
45
+ "<extra_id_38>",
46
+ "<extra_id_39>",
47
+ "<extra_id_40>",
48
+ "<extra_id_41>",
49
+ "<extra_id_42>",
50
+ "<extra_id_43>",
51
+ "<extra_id_44>",
52
+ "<extra_id_45>",
53
+ "<extra_id_46>",
54
+ "<extra_id_47>",
55
+ "<extra_id_48>",
56
+ "<extra_id_49>",
57
+ "<extra_id_50>",
58
+ "<extra_id_51>",
59
+ "<extra_id_52>",
60
+ "<extra_id_53>",
61
+ "<extra_id_54>",
62
+ "<extra_id_55>",
63
+ "<extra_id_56>",
64
+ "<extra_id_57>",
65
+ "<extra_id_58>",
66
+ "<extra_id_59>",
67
+ "<extra_id_60>",
68
+ "<extra_id_61>",
69
+ "<extra_id_62>",
70
+ "<extra_id_63>",
71
+ "<extra_id_64>",
72
+ "<extra_id_65>",
73
+ "<extra_id_66>",
74
+ "<extra_id_67>",
75
+ "<extra_id_68>",
76
+ "<extra_id_69>",
77
+ "<extra_id_70>",
78
+ "<extra_id_71>",
79
+ "<extra_id_72>",
80
+ "<extra_id_73>",
81
+ "<extra_id_74>",
82
+ "<extra_id_75>",
83
+ "<extra_id_76>",
84
+ "<extra_id_77>",
85
+ "<extra_id_78>",
86
+ "<extra_id_79>",
87
+ "<extra_id_80>",
88
+ "<extra_id_81>",
89
+ "<extra_id_82>",
90
+ "<extra_id_83>",
91
+ "<extra_id_84>",
92
+ "<extra_id_85>",
93
+ "<extra_id_86>",
94
+ "<extra_id_87>",
95
+ "<extra_id_88>",
96
+ "<extra_id_89>",
97
+ "<extra_id_90>",
98
+ "<extra_id_91>",
99
+ "<extra_id_92>",
100
+ "<extra_id_93>",
101
+ "<extra_id_94>",
102
+ "<extra_id_95>",
103
+ "<extra_id_96>",
104
+ "<extra_id_97>",
105
+ "<extra_id_98>",
106
+ "<extra_id_99>"
107
+ ],
108
+ "is_local": false,
109
+ "local_files_only": false,
110
+ "model_max_length": 512,
111
+ "pad_token": "<pad>",
112
+ "processor_class": "InstructBlipProcessor",
113
+ "sp_model_kwargs": {},
114
+ "tokenizer_class": "T5Tokenizer",
115
+ "truncation_side": "left",
116
+ "unk_token": "<unk>"
117
+ }