[Fix] Enable chunked input-logprob processing by default to cap peak memory (#31498)

This commit is contained in:
Liangsheng Yin
2026-07-17 13:19:03 -07:00
committed by GitHub
parent d389039337
commit 2c856abbe3
6 changed files with 101 additions and 12 deletions
+2 -1
View File
@@ -198,7 +198,8 @@ jobs:
const body = pr.body || '';
const blockRe = new RegExp(`(?:\\n+---\\n+)?${outerStart}[\\s\\S]*?${outerEnd}`);
// \n* absorbs preceding blank lines so repeated PATCHes don't accumulate them.
const blockRe = new RegExp(`\\n*(?:---\\n+)?${outerStart}[\\s\\S]*?${outerEnd}`);
let newBody;
if (blockRe.test(body)) {
newBody = body.replace(blockRe, `\n\n${newBlock}`);