Skip to content

Commit afc68d0

Browse files
committed
Unable to build optimum from scratch, copying setup from other job
1 parent e17b7b0 commit afc68d0

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.ci/scripts/zephyr-utils.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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-
}

.github/workflows/trunk.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,15 @@ jobs:
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" \

0 commit comments

Comments
 (0)