pere commited on
Commit
33aed67
1 Parent(s): 774790a

converted to pytorch

Browse files
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "openai/whisper-small",
3
  "activation_dropout": 0.1,
4
  "activation_function": "gelu",
5
  "apply_spec_augment": false,
@@ -145,7 +145,7 @@
145
  50362
146
  ],
147
  "torch_dtype": "float32",
148
- "transformers_version": "4.31.0.dev0",
149
  "use_cache": true,
150
  "use_weighted_layer_sum": false,
151
  "vocab_size": 51865
 
1
  {
2
+ "_name_or_path": ".",
3
  "activation_dropout": 0.1,
4
  "activation_function": "gelu",
5
  "apply_spec_augment": false,
 
145
  50362
146
  ],
147
  "torch_dtype": "float32",
148
+ "transformers_version": "4.30.1",
149
  "use_cache": true,
150
  "use_weighted_layer_sum": false,
151
  "vocab_size": 51865
convert_to_pytorch.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from transformers import WhisperForConditionalGeneration
2
+ model = WhisperForConditionalGeneration.from_pretrained(".", from_flax=True)
3
+ model.save_pretrained(".")
4
+ print("\nModel is now converted to PyTorch. There should be a new pytorch_model.bin-file in this directory.")
5
+
generation_config.json CHANGED
@@ -221,5 +221,5 @@
221
  "transcribe": 50359,
222
  "translate": 50358
223
  },
224
- "transformers_version": "4.31.0.dev0"
225
  }
 
221
  "transcribe": 50359,
222
  "translate": 50358
223
  },
224
+ "transformers_version": "4.30.1"
225
  }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cbda86397ff2aee38ca1a43551948c0ebb9b8f020654e9ed8ade7ae82c0e6cf
3
+ size 967095881