Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiyu Yang committed Apr 12, 2024
1 parent 6aaf3ac commit 4d6b89b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generator/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
import torch
import shutil
import openai
import pickle
from lean_dojo import Pos
Expand Down Expand Up @@ -280,7 +281,7 @@ def on_validation_epoch_end(self) -> None:
logger.info(f"Pass@1: {acc}")

if os.path.exists(ckpt_path):
os.remove(ckpt_path)
shutil.rmtree(ckpt_path)

##############
# Prediction #
Expand Down

0 comments on commit 4d6b89b

Please sign in to comment.