Skip to content

Commit d9f439e

Browse files
authored
Fix typo in quantize.py (#1434)
Typos
1 parent 83314c7 commit d9f439e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchchat/utils/quantize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -934,15 +934,15 @@ def quantized_model(self) -> nn.Module:
934934
torch.ops.load_library(libs[0])
935935
print("Loaded torchao cpu ops.")
936936
except Exception as e:
937-
print("Unabled to load torchao cpu ops library. Slow fallback kernels will be used.")
937+
print("Unable to load torchao cpu ops library. Slow fallback kernels will be used.")
938938

939939
try:
940940
libname = "libtorchao_ops_mps_aten.dylib"
941941
libpath = f"{torchao_build_path}/cmake-out/lib/{libname}"
942942
torch.ops.load_library(libpath)
943943
print("Loaded torchao mps ops.")
944944
except Exception as e:
945-
print("Unabled to load torchao mps ops library.")
945+
print("Unable to load torchao mps ops library.")
946946

947947
except Exception as e:
948948
print("Unabled to import torchao experimental quant_api with error: ", e)

0 commit comments

Comments
 (0)