Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanLee97 committed Jul 1, 2024
1 parent 3301ca9 commit ed8c679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angle_emb/angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1738,7 +1738,7 @@ def save_pretrained(self, output_dir: str, exist_ok: bool = True):
"""
if not exist_ok and os.path.exists(output_dir):
raise ValueError(f"Output directory ({output_dir}) already exists and is not empty.")
os.makedirs(output_dir)
os.makedirs(output_dir, exist_ok=exist_ok)
self.tokenizer.save_pretrained(output_dir)
self.backbone.save_pretrained(output_dir)

Expand Down

0 comments on commit ed8c679

Please sign in to comment.