Repository navigation
fix(build): ship a portable CPU baseline instead of host-native code - #1
Merged
Merged
Conversation
The v0.1.0 x64 archive was built with GGML_NATIVE defaulting to ON, so ggml-cpu used the release runner's AVX-512 instructions and faults with SIGILL on AVX2-only hosts. Force GGML_NATIVE=OFF for distributed archives, guard the x64 package against AVX-512/AMX code, and bump the version to 0.1.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The v0.1.0 `inferlet-x64` archive was configured without `GGML_NATIVE=OFF`. ggml enables native tuning by default when not cross-compiling, so `ggml-cpu` (`ggml-cpu.c`, `mmq.cpp`, `ops.cpp`, `sgemm.cpp`, …) was compiled with the release runner's AVX-512 instructions. On AVX2-only hosts, such as some GitHub `ubuntu-latest` AMD runners, any load crashes with SIGILL. This was seen in LLM-EdgeFlow PR #204 (`InferletBackendTest.InvalidWeightsFailSynchronouslyAcrossRepeatedLoads`). The ARM package was cross-compiled and not affected.
Change
After merging, tag `v0.1.1` to publish the release.
🤖 Generated with Claude Code