Skip to content

Commit

Permalink
Fix typing annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca committed Oct 16, 2023
1 parent c1c618c commit 7c10aad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pretrain/openwebtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def setup(devices: int = 1, precision: Optional[str] = None, resume: Union[bool,
fabric.launch(main, resume=resume)


def main(fabric: L.Fabric, resume: bool) -> None:
def main(fabric: L.Fabric, resume: Union[bool, Path]) -> None:
speed_monitor = SpeedMonitor(fabric, window_size=50, time_unit="seconds")

if fabric.global_rank == 0:
Expand Down
2 changes: 1 addition & 1 deletion pretrain/redpajama.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def setup(
fabric.launch(main, train_data_dir, val_data_dir, resume)


def main(fabric: L.Fabric, train_data_dir: Path, val_data_dir: Path, resume: bool) -> None:
def main(fabric: L.Fabric, train_data_dir: Path, val_data_dir: Path, resume: Union[bool, Path]) -> None:
speed_monitor = SpeedMonitor(fabric, window_size=50, time_unit="seconds")

if fabric.global_rank == 0:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
url="https://github.com/lightning-AI/lit-gpt",
install_requires=[
"torch>=2.1.0",
"lightning @ git+https://github.com/Lightning-AI/lightning@71aed751f7f0ca8422ddca256e602099070f490b"
"lightning @ git+https://github.com/Lightning-AI/lightning@71aed751f7f0ca8422ddca256e602099070f490b",
],
packages=find_packages(),
long_description=readme,
Expand Down

0 comments on commit 7c10aad

Please sign in to comment.