IMvision12 commited on
Commit
9a6226b
·
verified ·
1 Parent(s): 8127f0b

Upgrade kf_config.json to v2 (nested config + weight_dtype)

Browse files
Files changed (1) hide show
  1. kf_config.json +14 -10
kf_config.json CHANGED
@@ -1,18 +1,22 @@
1
  {
2
  "library_name": "kerasformers",
3
- "kerasformers_version": "1.1.3",
4
  "model_module": "kerasformers.models.vit",
5
  "model_class": "ViTImageClassify",
6
  "variant": "vit_tiny_patch16_224_augreg_in21k",
7
  "weights": "model.weights.h5",
 
 
8
  "model_type": "vit",
9
- "patch_size": 16,
10
- "embed_dim": 192,
11
- "depth": 12,
12
- "num_heads": 3,
13
- "mlp_ratio": 4.0,
14
- "qkv_bias": true,
15
- "qk_norm": false,
16
- "image_size": 224,
17
- "num_classes": 21843
 
 
18
  }
 
1
  {
2
  "library_name": "kerasformers",
3
+ "kerasformers_version": "1.2.1",
4
  "model_module": "kerasformers.models.vit",
5
  "model_class": "ViTImageClassify",
6
  "variant": "vit_tiny_patch16_224_augreg_in21k",
7
  "weights": "model.weights.h5",
8
+ "schema_version": 2,
9
+ "weight_dtype": "float32",
10
  "model_type": "vit",
11
+ "vision_config": {
12
+ "patch_size": 16,
13
+ "embed_dim": 192,
14
+ "depth": 12,
15
+ "num_heads": 3,
16
+ "mlp_ratio": 4.0,
17
+ "qkv_bias": true,
18
+ "qk_norm": false,
19
+ "image_size": 224,
20
+ "num_classes": 21843
21
+ }
22
  }