Views
No views yet
.pte files
for Whisper Tiny with XNNPACK
backend (CPU). A lightweight speech-to-text model that runs on any platform.1git clone https://github.com/pytorch/executorch/ ~/executorch
2cd ~/executorch && ./install_executorch.sh
3make whisper-cpu1pip install huggingface_hub
2huggingface-cli download younghan-meta/Whisper-Tiny-ExecuTorch-XNNPACK --local-dir ~/whisper_tiny1cmake-out/examples/models/whisper/whisper_runner \
2 --model_path ~/whisper_tiny/model.pte \
3 --tokenizer_path ~/whisper_tiny/ \
4 --processor_path ~/whisper_tiny/whisper_preprocessor.pte \
5 --audio_path ~/whisper_tiny/poem.wav \
6 --temperature 01pip install optimum-executorch
2
3# Model
4optimum-cli export executorch \
5 --model openai/whisper-tiny \
6 --task automatic-speech-recognition \
7 --recipe xnnpack \
8 --output_dir ./whisper_tiny_xnnpack
9
10# Preprocessor
11python -m executorch.extension.audio.mel_spectrogram \
12 --feature_size 80 --stack_output --max_audio_len 300 \
13 --output_file ./whisper_tiny_xnnpack/whisper_preprocessor.pte