Repository navigation
test: chat_eval gives up on a turn that runs too long - #35
Merged
Merged
Conversation
A chat_eval run with the 7B model stalled for about 40 minutes: on the log scenario its prompts took more than ten minutes per model call on a laptop CPU, and nothing showed the run was stuck. Each model's scenario now runs in a child process; the parent waits at most --turn-timeout seconds (default 300) for each turn. A turn that runs longer is recorded as a timeout, the rest of that model's session as skipped (later turns depend on it), and the run goes on with the next model. The temporary project is removed even when the child is killed. Each finished turn is reported on stderr as it happens, and the summary counts timeouts. Checked live on the 3B: progress per turn, 15/18 in 210 s. * scripts/chat_eval.py (run_model): Run the scenario in a child process; enforce the per-turn limit. (_child_main): New. (build_parser): --turn-timeout. * tests/test_chat_eval.py: Test the timeout path and the option. * docs/chapters/performance-benchmarking.texi (Chat Session Evaluation): Document them.
Owner
Author
Review summary: correctOne sweep, locally. Conditions.
Verified:
Verdict: correct. I'll merge when CI passes. |
Owner
Author
|
Merging. CI is green on all five jobs, macOS included. CI on the merge is skipped: the branch sits on |
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 free
to 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.
A
chat_evalrun with the 7B model stalled for about 40 minutes. On the log scenario its prompts took more than ten minutes per model call on this CPU, and nothing showed that the run was stuck.Change
spawn), and the parent waits at most--turn-timeoutseconds (default 300) for each turn. A turn that runs longer is recorded astimeout, and the rest of that model's session asskipped, since later turns depend on it. The run then continues with the next model.Review and CI
scripts/onsys.path.--turn-timeout 120: per-turn progress, 15/18 in 210 s.