Skip to content

Commit bd92f08

Browse files
committed
Errors propagated
1 parent fcd373d commit bd92f08

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

olmocr/train/compress_checkpoint.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,9 @@ def main():
365365
calibration_pdfs = args.calibration_pdfs.split('+')
366366
print(f"Parsed {len(calibration_pdfs)} calibration PDF paths")
367367

368-
try:
369-
compress_checkpoint(args.source, args.destination, args.recipe, args.num_calibration_samples, calibration_pdfs)
370-
except Exception as e:
371-
print(f"\n❌ Error: {e}")
372-
return 1
373-
374-
return 0
368+
369+
compress_checkpoint(args.source, args.destination, args.recipe, args.num_calibration_samples, calibration_pdfs)
370+
375371

376372

377373
if __name__ == "__main__":

0 commit comments

Comments
 (0)