-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring up and optimize Whisper model on Wormhole/Blackhole, clean up d…
…emo and tests, delete old obsolete versions (#18629) Signed-off-by: Salar Hosseini <skhorasgani@tenstorrent.com>
- Loading branch information
1 parent
e4dc25d
commit 07567d1
Showing
61 changed files
with
1,665 additions
and
6,592 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Whisper Demo (Wormhole & Blackhole) | ||
|
||
## How to Run | ||
|
||
If running on Wormhole N300 (not required for N150 or Blackhole), the following environment variable needs to be set since Whisper requires at least 8x8 core grid size: | ||
|
||
```sh | ||
export WH_ARCH_YAML=wormhole_b0_80_arch_eth_dispatch.yaml | ||
``` | ||
|
||
### Conditional Generation | ||
|
||
To run the conditional generation demo with custom inputs: | ||
```sh | ||
pytest --disable-warnings --input-path="models/demos/whisper/demo/dataset/conditional_generation" models/demos/whisper/demo/demo.py::test_demo_for_conditional_generation | ||
``` | ||
|
||
To run the conditional generation demo with inputs from the `hf-internal-testing/librispeech_asr_dummy` dataset: | ||
```sh | ||
pytest --disable-warnings models/demos/whisper/demo/demo.py::test_demo_for_conditional_generation_dataset | ||
``` | ||
|
||
### Audio Classification | ||
|
||
To run the audio classification demo with custom inputs: | ||
```sh | ||
pytest --disable-warnings --input-path="models/demos/whisper/demo/dataset/audio_classification" models/demos/whisper/demo/demo.py::test_demo_for_audio_classification | ||
``` | ||
|
||
To run the audio classification demo with inputs from the `google/fleurs` dataset: | ||
```sh | ||
pytest --disable-warnings models/demos/whisper/demo/demo.py::test_demo_for_audio_classification_dataset | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.