Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 9ceaccf

Browse files
committed
update
1 parent 387033b commit 9ceaccf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

torchchat/utils/quantize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ def quantized_model(self) -> nn.Module:
891891
# Try loading custom op
892892
try:
893893
import glob
894-
libs = glob.glob(f"{torchao_build_path}/cmake-out/lib/libtorchao_ops_aten.*")
894+
libs = glob.glob(f"{torchao_build_path}/cmake-out/lib/liblinear_a8wxdq_ATEN.*")
895895
libs = list(filter(lambda l: (l.endswith("so") or l.endswith("dylib")), libs))
896896
torch.ops.load_library(libs[0])
897897
except Exception as e:

torchchat/utils/scripts/install_utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ install_torchao_aten_ops() {
185185
cmake -DCMAKE_PREFIX_PATH=${MY_CMAKE_PREFIX_PATH} \
186186
-DCMAKE_INSTALL_PREFIX=${CMAKE_OUT_DIR} \
187187
-DCMAKE_BUILD_TYPE="Release" \
188-
-DTORCHAO_OP_TARGET="aten" \
188+
-DTORCHAO_OP_TARGET="ATEN" \
189189
-S . \
190190
-B ${CMAKE_OUT_DIR} -G Ninja
191191
cmake --build ${CMAKE_OUT_DIR} --target install --config Release
@@ -201,7 +201,7 @@ install_torchao_executorch_ops() {
201201
cmake -DCMAKE_PREFIX_PATH=${MY_CMAKE_PREFIX_PATH} \
202202
-DCMAKE_INSTALL_PREFIX=${CMAKE_OUT_DIR} \
203203
-DCMAKE_BUILD_TYPE="Release" \
204-
-DTORCHAO_OP_TARGET="executorch" \
204+
-DTORCHAO_OP_TARGET="EXECUTORCH" \
205205
-DEXECUTORCH_INCLUDE_DIRS="${EXECUTORCH_INCLUDE_DIRS}" \
206206
-DEXECUTORCH_LIBRARIES="${EXECUTORCH_LIBRARIES}" \
207207
-S . \

0 commit comments

Comments
 (0)