SE6446 commited on
Commit
9d14ceb
·
verified ·
1 Parent(s): 7e56ad5

Upload model

Browse files
Files changed (1) hide show
  1. configuration_vitmix.py +3 -2
configuration_vitmix.py CHANGED
@@ -14,7 +14,8 @@ class ViTMixConfig(PretrainedConfig): #Note you cannot change the expert layers
14
  depth = 6,
15
  heads = 16,
16
  mlp_dim = 2048,
17
- num_experts = 12
 
18
  ):
19
  if image_size % patch_size != 0:
20
  print(f"image size must be half patch size! img_size: {image_size} | patch_size{patch_size}")
@@ -27,4 +28,4 @@ class ViTMixConfig(PretrainedConfig): #Note you cannot change the expert layers
27
  self.heads = heads
28
  self.mlp_dim = mlp_dim
29
  self.num_experts = num_experts
30
- super().__init__()
 
14
  depth = 6,
15
  heads = 16,
16
  mlp_dim = 2048,
17
+ num_experts = 12,
18
+ **kwargs
19
  ):
20
  if image_size % patch_size != 0:
21
  print(f"image size must be half patch size! img_size: {image_size} | patch_size{patch_size}")
 
28
  self.heads = heads
29
  self.mlp_dim = mlp_dim
30
  self.num_experts = num_experts
31
+ super().__init__(**kwargs)