Run this model with HF Jobs
Run nyralabs/CrisperWhisper on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/nyralabs/CrisperWhisper. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/nyralabs/CrisperWhisper on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("nyralabs/CrisperWhisper") model = AutoModelForSpeechSeq2Seq.from_pretrained("nyralabs/CrisperWhisper", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
ecd11b9
1
Parent(s): 5bfe111
update README.md
Browse files19 unmodified lines2021222324252656 unmodified lines8384858687888967 unmodified lines15715815916016116219 unmodified lines- [Segmentation Performance](#segmentation-performance)- [Usage](#2-usage)- [with transformers](#21-usage-with-🤗-transformers)- [How](3-how)## Highlights56 unmodified lines## 2. UsageHere's how to use CrisperWhisper++ in your Python scripts:### 2.1 Usage with 🤗 transformers67 unmodified linescrisper_whisper_result = adjust_pauses_for_hf_pipeline_output(hf_pipeline_output)print(crisper_whisper_result)```## 3. How?We employ the popular Dynamic Time Warping (DTW) on the Whisper cross-attention scores, as detailed in our [paper](...) to derive word-level timestamps. By leveraging our retokenization process, this method allows us to consistently detect pauses. Given that the accuracy of the timestamps heavily depends on the DTW cost matrix and, consequently, on the quality of the cross-attentions, we developed a specialized loss function for the selected alignment heads to enhance precision.19 unmodified lines2021222324252656 unmodified lines8384858687888967 unmodified lines15715815916016116216316416519 unmodified lines- [Segmentation Performance](#segmentation-performance)- [Usage](#2-usage)- [with transformers](#21-usage-with-🤗-transformers)- [How](3-how?)## Highlights56 unmodified lines## 2. UsageHere's how to use CrisperWhisper in your Python scripts:### 2.1 Usage with 🤗 transformers67 unmodified linescrisper_whisper_result = adjust_pauses_for_hf_pipeline_output(hf_pipeline_output)print(crisper_whisper_result)```read more about the reasoning behind the pause distribution logic in our paper.## 3. How?We employ the popular Dynamic Time Warping (DTW) on the Whisper cross-attention scores, as detailed in our [paper](...) to derive word-level timestamps. By leveraging our retokenization process, this method allows us to consistently detect pauses. Given that the accuracy of the timestamps heavily depends on the DTW cost matrix and, consequently, on the quality of the cross-attentions, we developed a specialized loss function for the selected alignment heads to enhance precision.
README.md+5-2