Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
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.
Why
Compilation failures containing
lockorNo such file or directorycurrently returnNone, including an undefinedblock_sizevariable and a missing source file. The batch evaluator forwards that result to its JSON writer, which raisesAttributeErrorand stops before later samples run. This path has no retry owner.What changed
Return the existing
KernelExecResult(compiled=False)for exceptions caught by the compilation/loading guard, retaining their original exception type and diagnostic. Failed samples follow the existing persistence path and the next sample can execute.Also remove the temporary module source when a file-backed import fails before transferring ownership to the evaluator. Source and import bytecode share the same cleanup helper on failure and normal completion. The profiling consumer continues to use that existing cleanup path.
Fixes #181. #134 also changes the
Nonebranch to a structured failure result and labels those errorsLockFileError. This patch removes the substring classification, preserves the actualNameErrororFileNotFoundError, and covers temporary-module cleanup and the complete batch lifecycle. The subsequent model-constructor exception handling discussed in #159 and #160 stays unchanged.Verification
cudaandtritonloader paths each process undefinedtile_size, undefinedblock_size, a missing file, invalid syntax and a valid tensor-addition sample in that order.mainat423217d9fda91e0c2d67e4a43bf62f96f6d104f1, both scenarios stop at theblock_sizeresult withAttributeError, and only the first sample is persisted. The temporary-file path also leaves both imported source files and their bytecode behind.git diff --checkpass. The selected fatal checks oneval.pyreport the same pre-existing unresolvedBaseDatasetannotation on the original and candidate revisions.These runs exercise the CUDA runtime and both source-loading mechanisms with a PyTorch addition model. Native CUDA compiler failures, actual Triton JIT kernels, other DSLs, ROCm and Nsight profiling remain unrun.