mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 07:48:45 +00:00
generate: --loop-adapter clamps the 12-token lookup window to the build's window rows
This commit is contained in:
1 parent
17a7b174f6
commit
59d682c535
1 file changed
+7
@@ -5227,6 +5227,13 @@ int main(int argc, char** argv) {
|
||||
o.lookup_max_t = fix.lookup_max_t;
|
||||
}
|
||||
}
|
||||
// --loop-adapter: the batched GDN commit is off (each extra pass replays its own states), so a window cannot be wider than
|
||||
// kVerifyMaxT rows: the 12-token lookup default is clamped instead of ending the engine on the first request.
|
||||
if (!o.loop_adapter.empty() && o.lookup_max_t > (int) strata::kernels::kVerifyMaxT) {
|
||||
std::fprintf(stderr, "strata generate: --loop-adapter: --lookup-max-t %d is clamped to %d (no batched GDN commit under the loop)\n",
|
||||
o.lookup_max_t, (int) strata::kernels::kVerifyMaxT);
|
||||
o.lookup_max_t = (int) strata::kernels::kVerifyMaxT;
|
||||
}
|
||||
if (o.lookup_max_t > 0 && o.suffix_draft > 0 && o.spec >= 2) {
|
||||
if (o.mtp_max_t == 0) o.mtp_max_t = o.spec;
|
||||
o.spec = std::max(o.spec, std::min(o.lookup_max_t, strata::kernels::kVerifyLongT));
|
||||
|
||||
Reference in new issue
Block a user