mirror of
https://github.com/acon96/home-llm.git
synced 2026-01-08 21:28:05 -05:00
fix detection of cpu on some intel CPUs
This commit is contained in:
@@ -166,13 +166,16 @@ def install_llama_cpp_python(config_dir: str):
|
||||
return True
|
||||
|
||||
platform_suffix = platform.machine()
|
||||
# remap other names for architectures to the names we use
|
||||
if platform_suffix == "arm64":
|
||||
platform_suffix = "aarch64"
|
||||
if platform_suffix == "i386" or platform_suffix == "x86_64":
|
||||
platform_suffix = "amd64"
|
||||
|
||||
runtime_version = f"cp{sys.version_info.major}{sys.version_info.minor}"
|
||||
|
||||
instruction_extensions_suffix = ""
|
||||
if platform_suffix == "amd64" or platform_suffix == "i386":
|
||||
if platform_suffix == "amd64":
|
||||
instruction_extensions_suffix = "-noavx"
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user