Skip to content

Commit

Permalink
config update
Browse files Browse the repository at this point in the history
  • Loading branch information
EMCarrami committed Oct 29, 2023
1 parent cb89546 commit 9247f67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions configs/train_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"data": {
"data_dict_path": "uniref50_gpt_data.pkl",
"data_df_path": "uniref50_gzip_subsample.csv",
"split_ratios": [0.8, 0.1, 0.1]
"split_ratios": [0.88, 0.02, 0.1]
},
"datamodule": {
"batch_size": 4,
"batch_size": 8,
"max_protein_length": 1500
},
"model": {
Expand Down
6 changes: 4 additions & 2 deletions cprt/data/cprt_datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,25 @@ def train_dataloader(self) -> DataLoader: # type: ignore[type-arg]
shuffle=True,
collate_fn=self.collate_fn,
num_workers=4,
drop_last=True,
)

def val_dataloader(self) -> DataLoader: # type: ignore[type-arg]
"""Set up val loader."""
return DataLoader(
self.val_dataset,
batch_size=self.batch_size,
batch_size=self.batch_size * 2,
shuffle=False,
collate_fn=self.collate_fn,
num_workers=4,
drop_last=True,
)

def test_dataloader(self) -> DataLoader: # type: ignore[type-arg]
"""Set up test loader."""
return DataLoader(
self.test_dataset,
batch_size=self.batch_size,
batch_size=self.batch_size * 2,
shuffle=False,
collate_fn=self.collate_fn,
num_workers=4,
Expand Down

0 comments on commit 9247f67

Please sign in to comment.