Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

Merge branch 'f-142-carry' into f-142

Niko1221760007e31148
diff --cc src/program/generate.cpp
index 9c03606c2,e03cd2d57..e1a81d5c3
--- a/src/program/generate.cpp
+++ b/src/program/generate.cpp
@@@ -58,11 -58,9 +58,12 @@@
#include "strata/core/mtp.hpp"
#include "strata/prefill/prefill.hpp"
#include "strata/core/native_dense.hpp"
+ #include "strata/program/batch_read.hpp"
#include "strata/program/logits_selection.hpp"
#include "strata/program/conv_cache.hpp"
+#include "strata/program/split_rules.hpp"
+#include "strata/prefill/share_rules.hpp"
+#include "strata/platform/host_limits.hpp"
#include "strata/program/message_boundary.hpp"
#include "strata/spec/draft_policy.hpp"
#include "strata/spec/draft_source.hpp"
@@@ -3585,10 -3556,10 +3586,13 @@@ int main(int argc, char** argv)
return parts;
};
bool gate_on = true; // off only when no placement can start (below): then the best one is kept and a warning said
+ int64_t min_stage_layers = 1; // #1616: 3 in the second pass below, when the first pick has a one- or two-layer stage
+ // #1428: 2 and 3 GPUs - every placement priced, kept (a few hundred) so the near-tie warning below can name the
+ // best placement that is really a different one (not the neighbour one layer over)
+ std::vector<std::pair<double, std::vector<int64_t>>> priced;
auto consider = [&]() {
+ if (min_stage_layers > 1 && strata::program::split_rules::smallest_stage(at, g.n_layers) < min_stage_layers)
+ return;
double hm = 0;
int64_t held = 0;
const double ms = predict(at, hm, held);