Skip to content

Commit 2f47f54

Browse files
committed
up
1 parent 7647ed9 commit 2f47f54

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

.ci/scripts/test_torchao_huggingface_checkpoints.sh

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,29 @@ fi
106106
# Install ET with CMake
107107
if [[ "$TEST_WITH_RUNNER" -eq 1 ]]; then
108108
echo "[runner] Building and testing llama_main ..."
109-
cmake --preset llm -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=cmake-out
110-
cmake --build cmake-out -j16 --target install --config Release
109+
cmake -DPYTHON_EXECUTABLE=python \
110+
-DCMAKE_INSTALL_PREFIX=cmake-out \
111+
-DEXECUTORCH_ENABLE_LOGGING=1 \
112+
-DCMAKE_BUILD_TYPE=Release \
113+
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
114+
-DEXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR=ON \
115+
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
116+
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
117+
-DEXECUTORCH_BUILD_XNNPACK=ON \
118+
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
119+
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
120+
-DEXECUTORCH_BUILD_EXTENSION_LLM_RUNNER=ON \
121+
-DEXECUTORCH_BUILD_EXTENSION_LLM=ON \
122+
-DEXECUTORCH_BUILD_KERNELS_LLM=ON \
123+
-Bcmake-out .
124+
cmake --build cmake-out -j16 --config Release --target install
125+
111126

112127
# Install llama runner
113-
cmake -DCMAKE_INSTALL_PREFIX=cmake-out \
114-
-DBUILD_TESTING=OFF \
115-
-DCMAKE_BUILD_TYPE=Release \
116-
-Bcmake-out/examples/models/llama \
117-
examples/models/llama
128+
cmake -DPYTHON_EXECUTABLE=python \
129+
-DCMAKE_BUILD_TYPE=Release \
130+
-Bcmake-out/examples/models/llama \
131+
examples/models/llama
118132
cmake --build cmake-out/examples/models/llama -j16 --config Release
119133

120134
# Run the model

0 commit comments

Comments
 (0)