|
106 | 106 | # Install ET with CMake |
107 | 107 | if [[ "$TEST_WITH_RUNNER" -eq 1 ]]; then |
108 | 108 | 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 | + |
111 | 126 |
|
112 | 127 | # 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 |
118 | 132 | cmake --build cmake-out/examples/models/llama -j16 --config Release |
119 | 133 |
|
120 | 134 | # Run the model |
|
0 commit comments