dflash2: fused conv+residual+norm+quant, q/k norm+rope, K/V ring write and attention-output quantization; stage skip switches and small benches

This commit is contained in:
Niko1221 committed 2026-10-21 16:34:27 +02:00
1 parent 5bc7f8cab3
commit 89799596a6
9 files changed
+326 -37

No files matched your search

+2
View File
@@ -16332,6 +16332,8 @@ int main(int argc, char** argv) {
auto draft_next = [&](int T_, int a_) -> bool {
#if defined(STRATA_HAVE_DFLASH2)
if (use_df2) {
static const bool wait_commit_first = std::getenv("STRATA_DF2_WAITCOMMIT") != nullptr; // measurement: no overlap with the async commit
if (wait_commit_first && !ver.wait_commit(err)) return false;
int32_t dd[strata::core::Dflash2Drafter::kDrafts];
float pp[strata::core::Dflash2Drafter::kDrafts];
if (!df2.draft(ver.tap_dev(), a_ + 1, p, outv[(size_t) a_], dd, pp, err)) return false;