IMvision12 commited on
Commit
086e45a
·
verified ·
1 Parent(s): c981268

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

Browse files
Files changed (1) hide show
  1. kf_config.json +17 -11
kf_config.json CHANGED
@@ -1,22 +1,28 @@
1
  {
2
  "library_name": "kerasformers",
3
- "kerasformers_version": "1.1.3",
4
  "model_module": "kerasformers.models.whisper",
5
  "model_class": "WhisperModel",
6
  "variant": "whisper_small",
7
  "weights": "model.weights.h5",
 
 
8
  "model_type": "whisper",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  "hidden_dim": 768,
10
- "encoder_num_layers": 12,
11
- "decoder_num_layers": 12,
12
- "encoder_attention_heads": 12,
13
- "decoder_attention_heads": 12,
14
- "encoder_ffn_dim": 3072,
15
- "decoder_ffn_dim": 3072,
16
- "num_mel_bins": 80,
17
- "max_source_positions": 1500,
18
- "max_target_positions": 448,
19
- "vocab_size": 51865,
20
  "activation_function": "gelu",
21
  "layer_norm_eps": 1e-05,
22
  "scale_embedding": false,
 
1
  {
2
  "library_name": "kerasformers",
3
+ "kerasformers_version": "1.2.1",
4
  "model_module": "kerasformers.models.whisper",
5
  "model_class": "WhisperModel",
6
  "variant": "whisper_small",
7
  "weights": "model.weights.h5",
8
+ "schema_version": 2,
9
+ "dtype": "float32",
10
  "model_type": "whisper",
11
+ "audio_config": {
12
+ "num_layers": 12,
13
+ "attention_heads": 12,
14
+ "ffn_dim": 3072,
15
+ "num_mel_bins": 80,
16
+ "max_source_positions": 1500
17
+ },
18
+ "text_config": {
19
+ "num_layers": 12,
20
+ "attention_heads": 12,
21
+ "ffn_dim": 3072,
22
+ "vocab_size": 51865,
23
+ "max_target_positions": 448
24
+ },
25
  "hidden_dim": 768,
 
 
 
 
 
 
 
 
 
 
26
  "activation_function": "gelu",
27
  "layer_norm_eps": 1e-05,
28
  "scale_embedding": false,