Update tiny models for Kosmos2Model
Browse files- config.json +49 -0
- model.safetensors +3 -0
- preprocessor_config.json +28 -0
- tokenizer.json +0 -0
- tokenizer_config.json +24 -0
config.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Kosmos2Model"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "float32",
|
| 6 |
+
"latent_query_num": 3,
|
| 7 |
+
"model_type": "kosmos-2",
|
| 8 |
+
"text_config": {
|
| 9 |
+
"activation_dropout": 0.0,
|
| 10 |
+
"activation_function": "gelu",
|
| 11 |
+
"add_cross_attention": false,
|
| 12 |
+
"attention_dropout": 0.1,
|
| 13 |
+
"attention_heads": 4,
|
| 14 |
+
"bos_token_id": 0,
|
| 15 |
+
"dropout": 0.1,
|
| 16 |
+
"embed_dim": 32,
|
| 17 |
+
"eos_token_id": 2,
|
| 18 |
+
"ffn_dim": 37,
|
| 19 |
+
"init_std": 0.02,
|
| 20 |
+
"layer_norm_eps": 1e-05,
|
| 21 |
+
"layerdrop": 0.0,
|
| 22 |
+
"layers": 2,
|
| 23 |
+
"max_position_embeddings": 512,
|
| 24 |
+
"model_type": "kosmos_2_text_model",
|
| 25 |
+
"pad_token_id": 1,
|
| 26 |
+
"scale_embedding": true,
|
| 27 |
+
"tie_word_embeddings": true,
|
| 28 |
+
"use_cache": true,
|
| 29 |
+
"vocab_size": 65037
|
| 30 |
+
},
|
| 31 |
+
"tie_word_embeddings": true,
|
| 32 |
+
"transformers_version": "5.16.0.dev0",
|
| 33 |
+
"vision_config": {
|
| 34 |
+
"attention_dropout": 0.1,
|
| 35 |
+
"dropout": 0.1,
|
| 36 |
+
"hidden_act": "quick_gelu",
|
| 37 |
+
"hidden_size": 32,
|
| 38 |
+
"image_size": 32,
|
| 39 |
+
"initializer_factor": 1.0,
|
| 40 |
+
"initializer_range": 1e-10,
|
| 41 |
+
"intermediate_size": 37,
|
| 42 |
+
"layer_norm_eps": 1e-05,
|
| 43 |
+
"model_type": "kosmos_2_vision_model",
|
| 44 |
+
"num_attention_heads": 4,
|
| 45 |
+
"num_channels": 3,
|
| 46 |
+
"num_hidden_layers": 2,
|
| 47 |
+
"patch_size": 4
|
| 48 |
+
}
|
| 49 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a69f6be54966a126e208d10180dd944505ddfebfe450d1956c5f4f6e6636eb6
|
| 3 |
+
size 8481984
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": {
|
| 3 |
+
"height": 32,
|
| 4 |
+
"width": 32
|
| 5 |
+
},
|
| 6 |
+
"do_center_crop": true,
|
| 7 |
+
"do_convert_rgb": true,
|
| 8 |
+
"do_normalize": true,
|
| 9 |
+
"do_rescale": true,
|
| 10 |
+
"do_resize": true,
|
| 11 |
+
"image_mean": [
|
| 12 |
+
0.48145466,
|
| 13 |
+
0.4578275,
|
| 14 |
+
0.40821073
|
| 15 |
+
],
|
| 16 |
+
"image_processor_type": "CLIPImageProcessor",
|
| 17 |
+
"image_std": [
|
| 18 |
+
0.26862954,
|
| 19 |
+
0.26130258,
|
| 20 |
+
0.27577711
|
| 21 |
+
],
|
| 22 |
+
"resample": 3,
|
| 23 |
+
"rescale_factor": 0.00392156862745098,
|
| 24 |
+
"size": {
|
| 25 |
+
"height": 32,
|
| 26 |
+
"width": 32
|
| 27 |
+
}
|
| 28 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<s>",
|
| 4 |
+
"clean_up_tokenization_spaces": true,
|
| 5 |
+
"cls_token": "<s>",
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"extra_special_tokens": [
|
| 8 |
+
"<s>",
|
| 9 |
+
"<pad>",
|
| 10 |
+
"</s>",
|
| 11 |
+
"<unk>",
|
| 12 |
+
"<mask>"
|
| 13 |
+
],
|
| 14 |
+
"is_local": true,
|
| 15 |
+
"local_files_only": false,
|
| 16 |
+
"mask_token": "<mask>",
|
| 17 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 18 |
+
"pad_token": "<pad>",
|
| 19 |
+
"processor_class": "Kosmos2Processor",
|
| 20 |
+
"sep_token": "</s>",
|
| 21 |
+
"sp_model_kwargs": {},
|
| 22 |
+
"tokenizer_class": "TokenizersBackend",
|
| 23 |
+
"unk_token": "<unk>"
|
| 24 |
+
}
|