File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -828,25 +828,27 @@ jobs:
828828 CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
829829 conda activate "${CONDA_ENV}"
830830
831+
832+ # Install executorch
833+ echo "::group::Set up ExecuTorch"
834+ ./install_requirements.sh --use-pt-pinned-commit
835+ echo "::endgroup::"
836+
831837 # Used by .ci/scripts/test_huggingface_optimum_model.py
832838 pip install datasets
833839
834840 echo "::group::Set up Hugging Face"
835- pip install -U "huggingface_hub[cli]"
841+ pip install -U "huggingface_hub[cli]" accelerate
836842 huggingface-cli login --token $SECRET_EXECUTORCH_HF_TOKEN
837843 OPTIMUM_ET_VERSION=8335b491fa77a6c43709b4dfc192184add6ef224
838844 pip install git+https://github.com/huggingface/optimum-executorch.git@${OPTIMUM_ET_VERSION}
839845 echo "::endgroup::"
840846
847+ ${CONDA_RUN} python -c "import torch, torchvision; print(torch.__version__, torchvision.__version__)"
848+
841849 echo "::group::Run tests"
842850 export OUTPUT_DIR="$(pwd)/${MODEL}_${RECIPE}_${QUANTIZE}"
843- python .ci/scripts/test_huggingface_optimum_model.py --model ${MODEL} --recipe ${RECIPE} ${QUANTIZE} --model_dir ${OUTPUT_DIR}
844- echo "::endgroup::"
845-
846- # Install executorch
847- echo "::group::Set up ExecuTorch"
848- ./install_requirements.sh --use-pt-pinned-commit
849-
851+ ${CONDA_RUN} python .ci/scripts/test_huggingface_optimum_model.py --model ${MODEL} --recipe ${RECIPE} ${QUANTIZE} --model_dir ${OUTPUT_DIR}
850852 echo "::endgroup::"
851853
852854 echo "::group::Generate artifacts for performance profiling"
You can’t perform that action at this time.
0 commit comments