Create config_vit.json
Browse files- config_vit.json +62 -0
config_vit.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "vit-large336-custom",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"CLIPVisionModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"dropout": 0.0,
|
| 8 |
+
"hidden_act": "quick_gelu",
|
| 9 |
+
"hidden_size": 1024,
|
| 10 |
+
"image_size": 336,
|
| 11 |
+
"initializer_factor": 1.0,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 4096,
|
| 14 |
+
"layer_norm_eps": 1e-05,
|
| 15 |
+
"model_type": "clip_vision_model",
|
| 16 |
+
"num_attention_heads": 16,
|
| 17 |
+
"num_channels": 3,
|
| 18 |
+
"num_hidden_layers": 24,
|
| 19 |
+
"patch_size": 14,
|
| 20 |
+
"projection_dim": 768,
|
| 21 |
+
"torch_dtype": "bfloat16",
|
| 22 |
+
"transformers_version": "4.31.0",
|
| 23 |
+
"image_aspect_ratio": "anyres",
|
| 24 |
+
"image_crop_resolution": 224,
|
| 25 |
+
"image_grid_pinpoints": [
|
| 26 |
+
[
|
| 27 |
+
336,
|
| 28 |
+
672
|
| 29 |
+
],
|
| 30 |
+
[
|
| 31 |
+
672,
|
| 32 |
+
336
|
| 33 |
+
],
|
| 34 |
+
[
|
| 35 |
+
672,
|
| 36 |
+
672
|
| 37 |
+
],
|
| 38 |
+
[
|
| 39 |
+
1008,
|
| 40 |
+
336
|
| 41 |
+
],
|
| 42 |
+
[
|
| 43 |
+
336,
|
| 44 |
+
1008
|
| 45 |
+
]
|
| 46 |
+
],
|
| 47 |
+
"image_split_resolution": 224,
|
| 48 |
+
"initializer_range": 0.02,
|
| 49 |
+
"max_length": 4096,
|
| 50 |
+
"max_position_embeddings": 4096,
|
| 51 |
+
"mm_hidden_size": 1024,
|
| 52 |
+
"mm_patch_merge_type": "spatial_unpad",
|
| 53 |
+
"mm_projector_lr": null,
|
| 54 |
+
"mm_projector_type": "mlp2x_gelu",
|
| 55 |
+
"mm_resampler_type": null,
|
| 56 |
+
"mm_use_im_patch_token": false,
|
| 57 |
+
"mm_use_im_start_end": false,
|
| 58 |
+
"mm_vision_select_feature": "patch",
|
| 59 |
+
"mm_vision_select_layer": -2,
|
| 60 |
+
"mm_vision_tower__": "openai/clip-vit-large-patch14-336",
|
| 61 |
+
"mm_vision_tower_lr": 2e-06
|
| 62 |
+
}
|