hf-transformers-bot commited on
Commit
b0ea72c
·
verified ·
1 Parent(s): 7be4fcf

Update tiny models for T5Gemma2ForSequenceClassification

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "T5Gemma2ForSequenceClassification"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 2,
7
+ "classifier_dropout_rate": 0.0,
8
+ "decoder": {
9
+ "attention_bias": false,
10
+ "attention_dropout": 0.0,
11
+ "attention_probs_dropout_prob": 0.1,
12
+ "attn_logit_softcapping": null,
13
+ "bos_token_id": 2,
14
+ "cross_attention_hidden_size": 32,
15
+ "dropout_rate": 0.0,
16
+ "eos_token_id": 1,
17
+ "final_logit_softcapping": null,
18
+ "head_dim": 8,
19
+ "hidden_act": "gelu",
20
+ "hidden_activation": "gelu_pytorch_tanh",
21
+ "hidden_dropout_prob": 0.1,
22
+ "hidden_size": 32,
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 37,
25
+ "is_decoder": true,
26
+ "layer_types": [
27
+ "full_attention",
28
+ "sliding_attention"
29
+ ],
30
+ "max_position_embeddings": 512,
31
+ "model_type": "t5gemma2_decoder",
32
+ "num_attention_heads": 4,
33
+ "num_hidden_layers": 2,
34
+ "num_key_value_heads": 2,
35
+ "pad_token_id": 0,
36
+ "query_pre_attn_scalar": 256,
37
+ "rms_norm_eps": 1e-06,
38
+ "rope_parameters": {
39
+ "full_attention": {
40
+ "rope_theta": 1000000.0,
41
+ "rope_type": "default"
42
+ },
43
+ "sliding_attention": {
44
+ "rope_theta": 10000.0,
45
+ "rope_type": "default"
46
+ }
47
+ },
48
+ "sliding_window": 4096,
49
+ "tie_word_embeddings": true,
50
+ "type_vocab_size": 16,
51
+ "use_cache": true,
52
+ "vocab_size": 99
53
+ },
54
+ "dropout_rate": 0.0,
55
+ "dtype": "float32",
56
+ "encoder": {
57
+ "boi_token_index": 5,
58
+ "eoi_token_index": 6,
59
+ "hidden_size": 32,
60
+ "image_token_index": 4,
61
+ "initializer_range": 0.02,
62
+ "mm_tokens_per_image": 2,
63
+ "model_type": "t5gemma2_encoder",
64
+ "text_config": {
65
+ "_name_or_path": "",
66
+ "architectures": null,
67
+ "attention_bias": false,
68
+ "attention_dropout": 0.0,
69
+ "attention_probs_dropout_prob": 0.1,
70
+ "attn_logit_softcapping": null,
71
+ "bos_token_id": 2,
72
+ "chunk_size_feed_forward": 0,
73
+ "dropout_rate": 0.0,
74
+ "dtype": null,
75
+ "eos_token_id": 1,
76
+ "final_logit_softcapping": null,
77
+ "head_dim": 8,
78
+ "hidden_act": "gelu",
79
+ "hidden_activation": "gelu_pytorch_tanh",
80
+ "hidden_dropout_prob": 0.1,
81
+ "hidden_size": 32,
82
+ "id2label": {
83
+ "0": "LABEL_0",
84
+ "1": "LABEL_1"
85
+ },
86
+ "initializer_range": 0.02,
87
+ "intermediate_size": 37,
88
+ "is_decoder": false,
89
+ "is_encoder_decoder": false,
90
+ "label2id": {
91
+ "LABEL_0": 0,
92
+ "LABEL_1": 1
93
+ },
94
+ "layer_types": [
95
+ "full_attention",
96
+ "sliding_attention"
97
+ ],
98
+ "max_position_embeddings": 512,
99
+ "model_type": "t5gemma2_text",
100
+ "num_attention_heads": 4,
101
+ "num_hidden_layers": 2,
102
+ "num_key_value_heads": 2,
103
+ "output_attentions": false,
104
+ "output_hidden_states": false,
105
+ "pad_token_id": 0,
106
+ "problem_type": null,
107
+ "query_pre_attn_scalar": 256,
108
+ "return_dict": true,
109
+ "rms_norm_eps": 1e-06,
110
+ "rope_parameters": {
111
+ "full_attention": {
112
+ "rope_theta": 1000000.0,
113
+ "rope_type": "default"
114
+ },
115
+ "sliding_attention": {
116
+ "rope_theta": 10000.0,
117
+ "rope_type": "default"
118
+ }
119
+ },
120
+ "sliding_window": 4096,
121
+ "tie_word_embeddings": true,
122
+ "type_vocab_size": 16,
123
+ "use_cache": true,
124
+ "vocab_size": 99
125
+ },
126
+ "tie_word_embeddings": true,
127
+ "vision_config": {
128
+ "_name_or_path": "",
129
+ "architectures": null,
130
+ "attention_dropout": 0.0,
131
+ "chunk_size_feed_forward": 0,
132
+ "dropout": 0.1,
133
+ "dtype": null,
134
+ "hidden_act": "gelu_pytorch_tanh",
135
+ "hidden_size": 32,
136
+ "id2label": {
137
+ "0": "LABEL_0",
138
+ "1": "LABEL_1"
139
+ },
140
+ "image_size": 20,
141
+ "initializer_range": 0.02,
142
+ "intermediate_size": 37,
143
+ "is_encoder_decoder": false,
144
+ "is_training": true,
145
+ "label2id": {
146
+ "LABEL_0": 0,
147
+ "LABEL_1": 1
148
+ },
149
+ "layer_norm_eps": 1e-06,
150
+ "model_type": "siglip_vision_model",
151
+ "num_attention_heads": 4,
152
+ "num_channels": 3,
153
+ "num_hidden_layers": 2,
154
+ "num_key_value_heads": 1,
155
+ "output_attentions": false,
156
+ "output_hidden_states": false,
157
+ "patch_size": 5,
158
+ "problem_type": null,
159
+ "return_dict": true,
160
+ "use_labels": true
161
+ }
162
+ },
163
+ "eoi_token_index": 6,
164
+ "eos_token_id": 1,
165
+ "hidden_size": 32,
166
+ "image_token_index": 4,
167
+ "initializer_range": 0.02,
168
+ "is_encoder_decoder": true,
169
+ "model_type": "t5gemma2",
170
+ "num_attention_heads": 4,
171
+ "num_hidden_layers": 2,
172
+ "num_key_value_heads": 2,
173
+ "pad_token_id": 0,
174
+ "tie_word_embeddings": true,
175
+ "transformers_version": "5.16.0.dev0",
176
+ "vocab_size": 262144
177
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7496db657731f06ebf0b0ad68ee7c8dad992ce16d8f35889c599ce577b2b9f84
3
+ size 231684
preprocessor_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": true,
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": "Gemma3ImageProcessor",
12
+ "image_seq_length": 256,
13
+ "image_std": [
14
+ 0.5,
15
+ 0.5,
16
+ 0.5
17
+ ],
18
+ "resample": 2,
19
+ "rescale_factor": 0.00392156862745098,
20
+ "size": {
21
+ "height": 896,
22
+ "width": 896
23
+ }
24
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5b325224482ec441ec5fbe2a5ac08c3758e0f9605f6e54368e31f736fcfb01d
3
+ size 33384387
tokenizer_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "boi_token": "<start_of_image>",
4
+ "bos_token": "<bos>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eoi_token": "<end_of_image>",
7
+ "eos_token": "<eos>",
8
+ "extra_special_tokens": [],
9
+ "image_token": "<image_soft_token>",
10
+ "is_local": true,
11
+ "local_files_only": false,
12
+ "mask_token": "<mask>",
13
+ "model_max_length": 1000000000000000019884624838656,
14
+ "model_specific_special_tokens": {
15
+ "boi_token": "<start_of_image>",
16
+ "eoi_token": "<end_of_image>",
17
+ "image_token": "<image_soft_token>"
18
+ },
19
+ "pad_token": "<pad>",
20
+ "padding_side": "right",
21
+ "processor_class": "Gemma3Processor",
22
+ "sp_model_kwargs": null,
23
+ "spaces_between_special_tokens": false,
24
+ "tokenizer_class": "GemmaTokenizer",
25
+ "unk_token": "<unk>",
26
+ "use_default_system_prompt": false
27
+ }