Instructions to use nyralabs/CrisperWhisper with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nyralabs/CrisperWhisper with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="nyralabs/CrisperWhisper")# Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("nyralabs/CrisperWhisper") model = AutoModelForSpeechSeq2Seq.from_pretrained("nyralabs/CrisperWhisper") - Notebooks
- Google Colab
- Kaggle
RuntimeError: The expanded size of the tensor (54) must match the existing size (57) at non-singleton dimension 1. Target sizes: [1, 54]. Tensor sizes: [57]
#20
by vian123 - opened
RuntimeError: The expanded size of the tensor (54) must match the existing size (57) at non-singleton dimension 1. Target sizes: [1, 54]. Tensor sizes: [57]
I got this runtime error, what do i need to fix it?