File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed
Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,3 @@ setup_zephyr_et_module () {
1717 west config manifest.project-filter -- +executorch
1818 west -v update
1919}
20-
21- setup_optimum () {
22- git clone https://github.com/huggingface/optimum-executorch.git
23- cd optimum-executorch
24- python -m pip install --upgrade pip
25- python -m pip install ' .[dev]'
26- python install_dev.py --skip_override_torch
27- python -m pip install torchao==0.11.0
28- python -m pip install transformers==4.52.4
29- python -m pip install torchcodec==0.4.0
30- }
Original file line number Diff line number Diff line change 9090 if [[ "${MODEL_NAME}" == "whisper_tiny" ]]; then
9191 cd $ZEPHYR_PROJ_ROOT
9292 # For whisper-tiny, we will use optimum to export the encoder and decoder ptes
93- setup_optimum
93+ pip install -U "huggingface_hub[cli]"
94+ huggingface-cli login --token $SECRET_EXECUTORCH_HF_TOKEN
95+ OPTIMUM_ET_COMMIT=$(cat .ci/docker/ci_commit_pins/optimum-executorch.txt)
96+ git clone https://github.com/huggingface/optimum-executorch
97+ pushd optimum-executorch
98+ # There is no release yet, for CI stability, always test from the same commit on main
99+ git checkout $OPTIMUM_ET_COMMIT
100+ python install_dev.py --skip_override_torch
101+ popd
94102
95103 optimum-cli export executorch \
96104 --model "openai/whisper-tiny" \
You can’t perform that action at this time.
0 commit comments