Skip to content

Commit

Permalink
fix normalizing dir
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Apr 5, 2024
1 parent b97bb4a commit 32afdaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/olmo_core/distributed/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def _get_global_save_plan_and_metadata(
)

def _normalize_dir(self, dir: PathOrStr) -> str:
dir = str(dir).strip("/")
dir = str(dir).rstrip("/")
if dir.startswith("file://"):
dir = dir.replace("file://", "", 1)
return dir
Expand Down

0 comments on commit 32afdaa

Please sign in to comment.