Fine-tune the Whisper speech recognition model to support training without timestamp data, training with timestamp data, and training without speech data. Accelerate inference and support Web deployment, Windows desktop deployment, and Android deployment
我在微调之后,并且执行了python merge_lora,最终生成了model.safesensors模型,在通过如下代码转化pt格式时出现了下述情况。 def save_model(model, download_path=whisper_download_path):
创建whisper模型实例
if name == 'main': save_model('medium')
问题: Missing key(s) in state_dict: "encoder.positional_embedding", "encoder.conv1.weight", "encoder.conv1.bias", ... Unexpected key(s) in state_dict: "model.decoder.embed_positions.weight",