Heasterian commited on
Commit
59dd3e4
1 Parent(s): b303b2d

Update config.json to include "max_position_embeddings"

Browse files

It makes easier to use model as it will load without defining this variable it in code.

Files changed (1) hide show
  1. config.json +31 -30
config.json CHANGED
@@ -1,30 +1,31 @@
1
- {
2
- "_name_or_path": "LongCLIP-GmP-ViT-L-14/",
3
- "architectures": [
4
- "CLIPModel"
5
- ],
6
- "initializer_factor": 1.0,
7
- "logit_scale_init_value": 4.6052,
8
- "model_type": "clip",
9
- "projection_dim": 768,
10
- "text_config": {
11
- "dropout": 0.0,
12
- "hidden_size": 768,
13
- "intermediate_size": 3072,
14
- "model_type": "clip_text_model",
15
- "num_attention_heads": 12,
16
- "projection_dim": 768
17
- },
18
- "torch_dtype": "float32",
19
- "transformers_version": "4.44.2",
20
- "vision_config": {
21
- "dropout": 0.0,
22
- "hidden_size": 1024,
23
- "intermediate_size": 4096,
24
- "model_type": "clip_vision_model",
25
- "num_attention_heads": 16,
26
- "num_hidden_layers": 24,
27
- "patch_size": 14,
28
- "projection_dim": 768
29
- }
30
- }
 
 
1
+ {
2
+ "_name_or_path": "LongCLIP-GmP-ViT-L-14/",
3
+ "architectures": [
4
+ "CLIPModel"
5
+ ],
6
+ "initializer_factor": 1.0,
7
+ "logit_scale_init_value": 4.6052,
8
+ "model_type": "clip",
9
+ "projection_dim": 768,
10
+ "text_config": {
11
+ "dropout": 0.0,
12
+ "hidden_size": 768,
13
+ "intermediate_size": 3072,
14
+ "model_type": "clip_text_model",
15
+ "num_attention_heads": 12,
16
+ "projection_dim": 768,
17
+ "max_position_embeddings": 248
18
+ },
19
+ "torch_dtype": "float32",
20
+ "transformers_version": "4.44.2",
21
+ "vision_config": {
22
+ "dropout": 0.0,
23
+ "hidden_size": 1024,
24
+ "intermediate_size": 4096,
25
+ "model_type": "clip_vision_model",
26
+ "num_attention_heads": 16,
27
+ "num_hidden_layers": 24,
28
+ "patch_size": 14,
29
+ "projection_dim": 768
30
+ }
31
+ }