[PR #595] [CLOSED] No-AVX2 CPUs on a native build; run-script context override #2715

Closed
opened 2026-11-04 02:02:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/595
Author: @4EverBuilder
Created: 10/3/2026
Status: ❌ Closed

Base: main ← Head: pascal-noavx2-context


📝 Commits (1)

  • b15e656 No-AVX2 CPUs on a native build; run-script context override

📊 Changes

10 files changed (+156 additions, -22 deletions)

View changed files

📝 CMakeLists.txt (+3 -0)
📝 include/strata/kernels/cpu/expert_layout.hpp (+4 -0)
📝 setup.py (+19 -3)
📝 src/core/expert_source.cpp (+1 -1)
📝 src/kernels/cpu/iq_avx2.cpp (+15 -6)
📝 src/kernels/cpu/native_expert.cpp (+4 -4)
📝 src/kernels/cpu/pool.cpp (+3 -3)
📝 src/kernels/native_expert_parity.cpp (+4 -4)
📝 src/program/generate.cpp (+11 -1)
➕ tools/context_config.py (+92 -0)

📄 Description

  • engine: a native (non-portable) build runs a native pack's CPU experts on ggml-cpu's own kernels when the CPU has no AVX2 (q2_native_kernels, AVX2 kernel gates in native_expert/pool/expert_source); the portable build (STRATA_PORTABLE_BUILD) still refuses. iq_avx2's sign table is built on first use rather than in a static constructor, so startup never executes AVX2 on such a CPU. native_expert_parity skips the AVX2 checks there.
  • setup: a CPU without AVX2 warns and compiles the engine locally instead of failing.
  • run-.sh takes an optional context argument (131072, 512K, 1M), using the new tools/context_config.py to derive a config next to the setup-written one.

Developed on a Xeon X5690 (SSE4.2, no AVX) + RTX 4060 + Tesla P40.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/595 **Author:** [@4EverBuilder](https://github.com/4EverBuilder) **Created:** 10/3/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pascal-noavx2-context` --- ### 📝 Commits (1) - [`b15e656`](https://github.com/Niko1221/Strata/commit/b15e656cc7ead09712bad46e8cf8ccd9cd19b3b2) No-AVX2 CPUs on a native build; run-script context override ### 📊 Changes **10 files changed** (+156 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+3 -0) 📝 `include/strata/kernels/cpu/expert_layout.hpp` (+4 -0) 📝 `setup.py` (+19 -3) 📝 `src/core/expert_source.cpp` (+1 -1) 📝 `src/kernels/cpu/iq_avx2.cpp` (+15 -6) 📝 `src/kernels/cpu/native_expert.cpp` (+4 -4) 📝 `src/kernels/cpu/pool.cpp` (+3 -3) 📝 `src/kernels/native_expert_parity.cpp` (+4 -4) 📝 `src/program/generate.cpp` (+11 -1) ➕ `tools/context_config.py` (+92 -0) </details> ### 📄 Description - engine: a native (non-portable) build runs a native pack's CPU experts on ggml-cpu's own kernels when the CPU has no AVX2 (q2_native_kernels, AVX2 kernel gates in native_expert/pool/expert_source); the portable build (STRATA_PORTABLE_BUILD) still refuses. iq_avx2's sign table is built on first use rather than in a static constructor, so startup never executes AVX2 on such a CPU. native_expert_parity skips the AVX2 checks there. - setup: a CPU without AVX2 warns and compiles the engine locally instead of failing. - run-<model>.sh takes an optional context argument (131072, 512K, 1M), using the new tools/context_config.py to derive a config next to the setup-written one. Developed on a Xeon X5690 (SSE4.2, no AVX) + RTX 4060 + Tesla P40. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:02:35 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2715
No description provided.