Update tiny models for Tipsv2Model
Browse files- config.json +60 -0
- model.safetensors +3 -0
- preprocessor_config.json +17 -0
- tokenizer.json +0 -0
- tokenizer_config.json +19 -0
config.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Tipsv2Model"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "float32",
|
| 6 |
+
"model_type": "tipsv2",
|
| 7 |
+
"temperature_init_value": 0.01,
|
| 8 |
+
"text_config": {
|
| 9 |
+
"attention_dropout": 0.0,
|
| 10 |
+
"bos_token_id": null,
|
| 11 |
+
"eos_token_id": null,
|
| 12 |
+
"hidden_act": "relu",
|
| 13 |
+
"hidden_size": 16,
|
| 14 |
+
"initializer_range": 0.02,
|
| 15 |
+
"intermediate_size": 32,
|
| 16 |
+
"layer_norm_eps": 1e-05,
|
| 17 |
+
"max_position_embeddings": 200,
|
| 18 |
+
"model_type": "tipsv2_text_model",
|
| 19 |
+
"num_attention_heads": 4,
|
| 20 |
+
"num_hidden_layers": 2,
|
| 21 |
+
"pad_token_id": 0,
|
| 22 |
+
"pooling_epsilon": 1e-08,
|
| 23 |
+
"scale_sqrt_depth": true,
|
| 24 |
+
"vocab_size": 32000
|
| 25 |
+
},
|
| 26 |
+
"transformers_version": "5.16.0.dev0",
|
| 27 |
+
"vision_config": {
|
| 28 |
+
"apply_layernorm": true,
|
| 29 |
+
"attention_probs_dropout_prob": 0.0,
|
| 30 |
+
"drop_path_rate": 0.0,
|
| 31 |
+
"hidden_act": "gelu",
|
| 32 |
+
"hidden_dropout_prob": 0.0,
|
| 33 |
+
"hidden_size": 16,
|
| 34 |
+
"image_size": 28,
|
| 35 |
+
"initializer_range": 0.02,
|
| 36 |
+
"layer_norm_eps": 1e-06,
|
| 37 |
+
"layerscale_value": 1.0,
|
| 38 |
+
"mlp_ratio": 2,
|
| 39 |
+
"model_type": "tipsv2_vision_model",
|
| 40 |
+
"num_attention_heads": 4,
|
| 41 |
+
"num_channels": 3,
|
| 42 |
+
"num_hidden_layers": 2,
|
| 43 |
+
"num_register_tokens": 1,
|
| 44 |
+
"out_features": [
|
| 45 |
+
"stage2"
|
| 46 |
+
],
|
| 47 |
+
"out_indices": [
|
| 48 |
+
2
|
| 49 |
+
],
|
| 50 |
+
"patch_size": 14,
|
| 51 |
+
"qkv_bias": true,
|
| 52 |
+
"reshape_hidden_states": true,
|
| 53 |
+
"stage_names": [
|
| 54 |
+
"stem",
|
| 55 |
+
"stage1",
|
| 56 |
+
"stage2"
|
| 57 |
+
],
|
| 58 |
+
"use_swiglu_ffn": false
|
| 59 |
+
}
|
| 60 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8076a74b610659d27c69dc9b9560a3ab49c2d89fac9262230f322e0f53edc1ac
|
| 3 |
+
size 2129148
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": {
|
| 3 |
+
"height": 28,
|
| 4 |
+
"width": 28
|
| 5 |
+
},
|
| 6 |
+
"do_convert_rgb": true,
|
| 7 |
+
"do_normalize": false,
|
| 8 |
+
"do_rescale": true,
|
| 9 |
+
"do_resize": true,
|
| 10 |
+
"image_processor_type": "Tipsv2ImageProcessor",
|
| 11 |
+
"resample": 2,
|
| 12 |
+
"rescale_factor": 0.00392156862745098,
|
| 13 |
+
"size": {
|
| 14 |
+
"height": 28,
|
| 15 |
+
"width": 28
|
| 16 |
+
}
|
| 17 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": null,
|
| 4 |
+
"do_lower_case": true,
|
| 5 |
+
"eos_token": null,
|
| 6 |
+
"extra_special_tokens": [
|
| 7 |
+
"<pad>",
|
| 8 |
+
"</s>",
|
| 9 |
+
"<s>"
|
| 10 |
+
],
|
| 11 |
+
"is_local": true,
|
| 12 |
+
"local_files_only": false,
|
| 13 |
+
"model_max_length": 64,
|
| 14 |
+
"pad_token": "<pad>",
|
| 15 |
+
"processor_class": "Tipsv2Processor",
|
| 16 |
+
"token_type_ids_pattern": "all_zeros",
|
| 17 |
+
"tokenizer_class": "Tipsv2Tokenizer",
|
| 18 |
+
"unk_token": "<unk>"
|
| 19 |
+
}
|