Repository navigation
Conversation
Merged
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.
Fixes #148
Problem
The logprob probe treats the presence of an arm's JSONL file as completion. Writing directly to that final filename leaves an incomplete file if a write or close fails. Every later invocation silently skips the arm, so a transient output failure becomes a permanently incomplete cached result.
A real Linux file-size limit of 1,024 bytes reproduces this: the original script exits with a write error and leaves a 1,024-byte unterminated JSON line. A retry exits successfully without changing those bytes.
Change
Write into a temporary directory beside the destination and publish the result with
os.replaceonly after all rows have been written and the file has closed successfully. The temporary directory is cleaned on failure. Existing completed results retain their skip behavior.The regression starts a real local HTTP subprocess and executes the production script. It forces an actual file-write failure, verifies that no final result or staging file remains, retries to obtain both complete rows, and checks that a completed result is reused.
Validation
Linux x86-64, Python 3.12.14; Intel Xeon Platinum 8573C.
./install.sh --checkreports the AVX-512 VNNI + VBMI fast path.The seven root-suite skips require the optional GGUF package. The new fault-injection case is Linux-only because it uses
RLIMIT_FSIZE. A clean model build and model-backed serving smoke test were not run; this change is confined to result-file publication and does not claim a model or performance measurement. Previously incomplete final files still need removal before retrying.