Uh oh!
There was an error while loading. Please reload this page.
Adaptive batch size, guarded retry, and max_tokens bump for enrich step - #453
Closed
neoneye wants to merge 1 commit into
Closed
Adaptive batch size, guarded retry, and max_tokens bump for enrich step#453neoneye wants to merge 1 commit into
neoneye wants to merge 1 commit into
Conversation
Bump gpt-oss-20b max_tokens from 8192 to 128000 to match its 131K context window — the old limit truncated structured JSON output. Add adaptive batch sizing (batch_size=2 when model num_output < 16384) as a safety net. Replace the raise-on-error batch loop with a guarded retry: on failure split the batch once (MAX_RETRY_DEPTH=1) within a 300s budget, then skip. Report actual batches_succeeded instead of hardcoded 1. Document consequence-echoing and UUID format inconsistency in OPTIMIZE_INSTRUCTIONS. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
neoneye
commented
Mar 30, 2026
MemberAuthor
Self-improve iteration — analysis 56Verdict: CONDITIONAL Wins:
Bug found — C1/C2 interaction: gpt-oss-20b: 2/5 functional success (unchanged from PR #452, but failure mode improved from 600s timeout → fast empty_response) Follow-up needed: C4 — fix threshold to also check |
neoneye
commented
Mar 30, 2026
MemberAuthor
Closing — C1/C2 interaction bug makes adaptive batch size ineffective for the target model. Will rework. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
num_outputmetadata; usesbatch_size=2when below 16384 tokens as a safety net for output-constrained modelsbatches_succeededinstead of hardcoded1in runner.pyTest plan
calls_succeededreports accurate batch counts🤖 Generated with Claude Code