okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Int3 fix (belongs to f-042-strix-pf and f-0291 b89bf5947): Metal links again. stubs_0291.cpp (qsa_prompt_attn_batch_gated answers not taken, rms_rope_rows stops with its name), io_priority.cpp in the Metal host sources (strata_ds4 calls restore_normal_io_priority)4bc7e35e4

main
1.3 KiB26 linesraw
1// metal/src/engine/stubs_0291.cpp - the 0.2.9 entry points the Metal engine does not implement: the QSA prompt-layer fusions of
2// f-042-strix-pf (STRATA_QSA_FUSE_NR, STRATA_QSA_FUSE_GATE).  The gated attention answers "not taken" (its documented contract:
3// nothing is launched on false, the caller runs the two-step path); the fused norm + rope stops the engine with its name like the
4// other QSA prompt kernels (stubs.cpp) - no Metal model has a QSA prompt layer.
5
6#include <cstdint>
7
8#include "strata/kernels/qsa_prompt_attn.hpp"
9#include "strata/kernels/rope_scaling.hpp"
10#include "strata/prefill/kernels.hpp"
11
12namespace strata::metal_engine { void missing(const char* name); }
13
14namespace strata::kernels {
15bool qsa_prompt_attn_batch_gated(const float*, const QsaAttnPools&, const int32_t*, const int32_t*, int64_t, const QsaShapes&,
16                                 const float*, uint16_t*, int64_t, int64_t, void*) {
17    return false;
18}
19}  // namespace strata::kernels
20
21namespace strata::prefill {
22void rms_rope_rows(const float*, int64_t, int64_t, float*, int64_t, const float*, int64_t, int64_t, int64_t, float, int64_t,
23                   const strata::kernels::RopeScaling&, void*) {
24    strata::metal_engine::missing("strata::prefill::rms_rope_rows");
25}
26}  // namespace strata::prefill