more library checks

This commit is contained in:
Concedo 2023-03-30 09:28:04 +08:00
parent d8febc8653
commit 0f5b470c04

View file

@ -286,8 +286,8 @@ def RunServerMultiThreaded(addr, port, embedded_kailite = None):
def main(args):
global use_blas
if not os.path.exists(os.path.join(os.path.dirname(os.path.realpath(__file__)), "libopenblas.dll")):
print("Warning: libopenblas.dll not found. OpenBLAS will be disabled.")
if not os.path.exists(os.path.join(os.path.dirname(os.path.realpath(__file__)), "libopenblas.dll")) or not os.path.exists(os.path.join(os.path.dirname(os.path.realpath(__file__)), "llamacpp_blas.dll")):
print("Warning: libopenblas.dll or llamacpp_blas.dll not found. OpenBLAS will be disabled.")
use_blas = False
elif not args.noblas:
print("Attempting to use OpenBLAS library for faster prompt ingestion. A compatible libopenblas.dll will be required.")