Fix processor type remapping

This commit is contained in:
Alex O'Connell
2025-04-21 16:54:38 -04:00
parent 870a16e010
commit f7ca910dc5
2 changed files with 6 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ jobs:
# Base x86
- home_assistant_version: "2025.4.1"
suffix: "-noavx"
arch: "amd64"
arch: "x86_64"
extra_defines: "-DGGML_AVX=OFF -DGGML_AVX2=OFF -DGGML_FMA=OFF -DGGML_F16C=OFF"
- home_assistant_version: "2025.4.1"
arch: "i386"
@@ -37,10 +37,10 @@ jobs:
# AVX2 and AVX512
- home_assistant_version: "2025.4.1"
arch: "amd64"
arch: "x86_64"
extra_defines: "-DGGML_AVX=ON -DGGML_AVX2=ON -DGGML_FMA=ON -DGGML_F16C=ON"
- home_assistant_version: "2025.4.1"
arch: "amd64"
arch: "x86_64"
suffix: "-avx512"
extra_defines: "-DGGML_AVX512=ON -DGGML_FMA=ON -DGGML_F16C=ON"
- home_assistant_version: "2025.4.1"

View File

@@ -169,13 +169,13 @@ def install_llama_cpp_python(config_dir: str):
# 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"
if platform_suffix == "i386" or platform_suffix == "amd64":
platform_suffix = "x86_64"
runtime_version = f"cp{sys.version_info.major}{sys.version_info.minor}"
instruction_extensions_suffix = ""
if platform_suffix == "amd64":
if platform_suffix == "x86_64":
instruction_extensions_suffix = "-noavx"
try: