Merge f-027-gh-eng-a (#3622 ARM64 / DGX Spark port, #3806 Gyro-L TQP5/6/7)

# Conflicts:
#	cmake/ggml_tq_overlay_test.cmake
#	src/core/verify.cpp
This commit is contained in:
Niko1221 committed 2026-10-27 01:59:31 +01:00
commit ba8b2bcb9c
30 files changed
+1392 -92

No files matched your search

+5
View File
@@ -3185,6 +3185,10 @@ void RouterLookahead::run() {
// one (kq_avx1.cpp) or, without AVX, the same sums in plain C++. From the Strata_Dirigo fork (rwkeyes): an
// AVX-only Xeon E5-2687W died here (vpmovzxwd) on its first request. An estimate only (which experts to
// prefetch); the order of the additions differs between the three, the output does not depend on it.
#if defined(__aarch64__) && !defined(STRATA_GPU_METAL) // Metal (Apple silicon) keeps the plain loop below: its bf16_rows_dot_multi is a stub
strata::kernels::cpu::bf16_rows_dot_multi(routers_[(size_t) layer].data(), (int) n_expert_, (int) n_embd_,
x_.data(), (int) nt, logits.data());
#else
if (strata::kernels::cpu::cpu_avx2_ok()) {
strata::kernels::cpu::bf16_rows_dot_multi(routers_[(size_t) layer].data(), (int) n_expert_, (int) n_embd_,
x_.data(), (int) nt, logits.data());
@@ -3210,6 +3214,7 @@ void RouterLookahead::run() {
}
}
}
#endif
const int kmax = stats_on_ ? (int) std::min<int64_t>(k_ + 10, n_expert_) : k_;
const int ks[3] = {k_, (int) std::min<int64_t>(k_ + 4, n_expert_), kmax};
std::vector<uint64_t> sm;