Skip to content

Commit

Permalink
Fix inference sandbox logging
Browse files Browse the repository at this point in the history
  • Loading branch information
MsRandom committed Nov 29, 2024
1 parent 8d3a2e9 commit a8fbe34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions base/testing/inference_sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ def benchmark(self) -> BenchmarkOutput:

def check_process(process: Popen):
if process.poll():
log_process(process)
raise InvalidSubmissionError(f"Inference crashed with exit code {process.returncode}")


Expand All @@ -262,4 +261,4 @@ def log_process(process: Popen):
if stdout:
logger.info(stdout)
if stderr:
logger.error(stderr)
logger.info(stderr)

0 comments on commit a8fbe34

Please sign in to comment.