Skip to content
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d12a6f0
debug
cccclai Oct 2, 2025
3850334
disable some pull jobs
cccclai Oct 2, 2025
06af57d
disable some pull jobs
cccclai Oct 2, 2025
4345e17
debug
cccclai Oct 2, 2025
19f8c3b
fix conda
cccclai Oct 2, 2025
93e6d2c
install executorch
cccclai Oct 2, 2025
cb7c8ee
install executorch
cccclai Oct 2, 2025
35a5e0d
update optimum commit
cccclai Oct 2, 2025
5f0589c
switch optimum pin commit
cccclai Oct 2, 2025
87c31d0
debug
cccclai Oct 2, 2025
36c8fb5
switch order
cccclai Oct 2, 2025
223b663
debug
cccclai Oct 2, 2025
8f537f8
update commit
cccclai Oct 2, 2025
ebedd6b
fix
cccclai Oct 2, 2025
5a3d12f
fix
cccclai Oct 2, 2025
8635423
fix
cccclai Oct 2, 2025
92991cd
debug
cccclai Oct 2, 2025
d3d53c1
fix torch install
cccclai Oct 3, 2025
d8593fd
uninstall torch/torchvision etc
cccclai Oct 3, 2025
aacbeba
fix
cccclai Oct 3, 2025
75435b9
debug
cccclai Oct 3, 2025
e4b82d4
debug
cccclai Oct 3, 2025
a665eaf
debug
cccclai Oct 3, 2025
101f59f
restore
cccclai Oct 3, 2025
c8705cf
debug
cccclai Oct 3, 2025
ba8e9dd
add some back
cccclai Oct 3, 2025
0aeb79f
debug
cccclai Oct 3, 2025
dfb70e2
debug
cccclai Oct 3, 2025
14356d9
add more models
cccclai Oct 3, 2025
8005482
add more models
cccclai Oct 3, 2025
f5cf693
fix
cccclai Oct 3, 2025
f55ff61
add more tests
cccclai Oct 3, 2025
2243073
executor runner with etdump enabled
cccclai Oct 3, 2025
f040612
add all jobs back
cccclai Oct 3, 2025
8b92c38
fix macos too
cccclai Oct 3, 2025
6218a80
remove unrelated changes
cccclai Oct 3, 2025
afe05b7
remove unrelated changes
cccclai Oct 3, 2025
0fa740f
remove unrelated changes
cccclai Oct 3, 2025
cd1c768
remove unrelated changes
cccclai Oct 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 22 additions & 31 deletions .github/workflows/trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -823,11 +823,26 @@ jobs:
echo "Recipe: $RECIPE"
echo "Quantize: $QUANTIZE"

echo "::group::Set up ExecuTorch"
# The generic Linux job chooses to use base env, not the one setup by the image
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
conda activate "${CONDA_ENV}"
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool cmake

echo "::group::Setup ExecuTorch"
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool "cmake"
echo "::endgroup::"

echo "::group::Setup Huggingface"
pip install -U "huggingface_hub[cli]" accelerate
huggingface-cli login --token $SECRET_EXECUTORCH_HF_TOKEN
OPTIMUM_ET_VERSION=$(cat .ci/docker/ci_commit_pins/optimum-executorch.txt)
pip install git+https://github.com/huggingface/optimum-executorch.git@${OPTIMUM_ET_VERSION}
echo "::endgroup::"

echo "::group::Test MODEL: $MODEL RECIPE: $RECIPE QUANTIZE: $QUANTIZE"
export OUTPUT_DIR="$(pwd)/${MODEL}_${RECIPE}_${QUANTIZE}"
python .ci/scripts/test_huggingface_optimum_model.py --model "$MODEL" --recipe "$RECIPE" $QUANTIZE --model_dir "$OUTPUT_DIR"
echo "::endgroup::"

# Build executor_runner with ETdump enabled
PYTHON_EXECUTABLE=python cmake -DPYTHON_EXECUTABLE=python \
-DCMAKE_INSTALL_PREFIX=cmake-out \
Expand All @@ -845,25 +860,6 @@ jobs:
-DEXECUTORCH_ENABLE_EVENT_TRACER=ON \
-Bcmake-out .
cmake --build cmake-out -j16 --target install --config Release
echo "::endgroup::"

echo "::group::Set up Hugging Face"
pip install -U "huggingface_hub[cli]"
huggingface-cli login --token $SECRET_EXECUTORCH_HF_TOKEN
OPTIMUM_ET_COMMIT=$(cat .ci/docker/ci_commit_pins/optimum-executorch.txt)
git clone https://github.com/huggingface/optimum-executorch
pushd optimum-executorch
# There is no release yet, for CI stability, always test from the same commit on main
git checkout $OPTIMUM_ET_COMMIT
python install_dev.py --skip_override_torch
popd
pip list
echo "::endgroup::"

echo "::group::Run tests"
export OUTPUT_DIR="$(pwd)/${MODEL}_${RECIPE}_${QUANTIZE}"
python .ci/scripts/test_huggingface_optimum_model.py --model ${MODEL} --recipe ${RECIPE} ${QUANTIZE} --model_dir ${OUTPUT_DIR}
echo "::endgroup::"

echo "::group::Generate artifacts for performance profiling"
./cmake-out/executor_runner \
Expand Down Expand Up @@ -930,16 +926,11 @@ jobs:
${CONDA_RUN} python install_executorch.py
echo "::endgroup::"

echo "::group::Set up Hugging Face"
pip install -U "huggingface_hub[cli]"
huggingface-cli login --token $SECRET_EXECUTORCH_HF_TOKEN
OPTIMUM_ET_COMMIT=$(cat .ci/docker/ci_commit_pins/optimum-executorch.txt)
git clone https://github.com/huggingface/optimum-executorch
pushd optimum-executorch
# There is no release yet, for CI stability, always test from the same commit on main
git checkout $OPTIMUM_ET_COMMIT
${CONDA_RUN} python install_dev.py --skip_override_torch
popd
echo "::group::Set up Huggingface"
${CONDA_RUN} pip install -U "huggingface_hub[cli]" accelerate
${CONDA_RUN} huggingface-cli login --token $SECRET_EXECUTORCH_HF_TOKEN
OPTIMUM_ET_VERSION=$(cat .ci/docker/ci_commit_pins/optimum-executorch.txt)
${CONDA_RUN} pip install git+https://github.com/huggingface/optimum-executorch.git@${OPTIMUM_ET_VERSION}
${CONDA_RUN} pip list
echo "::endgroup::"

Expand Down
Loading