Skip to content

Commit

Permalink
load distributed config
Browse files Browse the repository at this point in the history
  • Loading branch information
rparundekar committed May 5, 2024
1 parent 6b00e7b commit d26f2dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aihero/research/finetuning/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def fetch_dataset(self) -> DatasetDict:
raise Exception("Data Abort")
else:
print(f"LOCAL RANK {self.local_rank}: Data ready")

print(f"LOCAL RANK {self.local_rank}: loading data")
try:
splits = {}
bos_token = self.tokenizer.bos_token
Expand Down Expand Up @@ -273,7 +273,7 @@ def fetch_dataset(self) -> DatasetDict:
except: # pylint: disable=bare-except # noqa: E722
print("Unable to create test dataset")

print("Loaded dataset")
print(f"LOCAL RANK {self.local_rank}: data loaded")
with open(f"{DATASET_DIR}/data_ready.txt", "w") as f:
f.write("Data Ready")
return DatasetDict(splits)
Expand Down

0 comments on commit d26f2dc

Please sign in to comment.