Skip to content

Commit

Permalink
make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Jan 23, 2025
1 parent 3f097bc commit 94d756b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/olmo_core/distributed/checkpoint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ def save(state_dict: Dict[str, Any], path: Path):

def get_chunks(prefix: str) -> Tuple[Path, List[Tuple[Path, List[str]]]]:
assert unshard_strategy is not None
assert isinstance(target_dir, Path)

if unshard_strategy.name == UnshardStrategyType.one_file:
path = target_dir / f"{prefix}.{ext}"
return path, [(path, [prefix])]
Expand Down

0 comments on commit 94d756b

Please sign in to comment.