hidehisa-arai commited on
Commit
fd3a88e
1 Parent(s): ac9a398

update config

Browse files
Files changed (2) hide show
  1. config.json +1 -0
  2. configuration_japanese_clip.py +3 -2
config.json CHANGED
@@ -42,6 +42,7 @@
42
  "image_size": 224,
43
  "patch_size": 32,
44
  "width": 768,
 
45
  "layers": 12,
46
  "mlp_ratio": 4.0,
47
  "ls_init_value": null,
 
42
  "image_size": 224,
43
  "patch_size": 32,
44
  "width": 768,
45
+ "head_width": 64,
46
  "layers": 12,
47
  "mlp_ratio": 4.0,
48
  "ls_init_value": null,
configuration_japanese_clip.py CHANGED
@@ -10,7 +10,7 @@ class JapaneseCLIPVisionConfig(PretrainedConfig):
10
  patch_size: int,
11
  width: int,
12
  layers: int,
13
- heads: int,
14
  mlp_ratio: float,
15
  ls_init_value: float = None,
16
  attentional_pool: bool = False,
@@ -30,7 +30,8 @@ class JapaneseCLIPVisionConfig(PretrainedConfig):
30
  self.patch_size = patch_size
31
  self.width = width
32
  self.layers = layers
33
- self.heads = heads
 
34
  self.mlp_ratio = mlp_ratio
35
  self.ls_init_value = ls_init_value
36
  self.attentional_pool = attentional_pool
 
10
  patch_size: int,
11
  width: int,
12
  layers: int,
13
+ head_width: int,
14
  mlp_ratio: float,
15
  ls_init_value: float = None,
16
  attentional_pool: bool = False,
 
30
  self.patch_size = patch_size
31
  self.width = width
32
  self.layers = layers
33
+ self.head_width = head_width
34
+ self.heads = width // head_width
35
  self.mlp_ratio = mlp_ratio
36
  self.ls_init_value = ls_init_value
37
  self.attentional_pool = attentional_pool