Skip to content

Commit

Permalink
set num_workers to 1 for esm2 tests (#461)
Browse files Browse the repository at this point in the history
Should help to address errors like
https://prod.blsm.nvidia.com/bionemo-external-bionemo-fw/job/test_pytest/838/console
```14:14:12  E       RuntimeError: DataLoader worker (pid 8445) is killed by signal: Aborted.```
when we use too many resources on the CI machine
  • Loading branch information
pstjohn authored Nov 21, 2024
1 parent aa6b586 commit f5a4d81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def pretrain_data_module(dummy_protein_dataset, dummy_parquet_train_val_inputs):
micro_batch_size=4,
min_seq_length=None,
max_seq_length=1024,
num_workers=1,
)
yield data_module

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ def test_esm2_loss(esm2_650M_config_w_ckpt, dummy_protein_dataset, dummy_parquet
min_seq_length=None,
max_seq_length=1024,
seed=seed,
num_workers=1,
)
assert data_module is not None
data_module.trainer = mock.Mock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def setup_model(cls, mode: Mode) -> tuple[pl.LightningModule, pl.LightningDataMo
micro_batch_size=2,
min_seq_length=None,
max_seq_length=1024,
num_workers=0,
num_workers=1,
persistent_workers=False,
random_mask_strategy=RandomMaskStrategy.ALL_TOKENS,
)
Expand Down

0 comments on commit f5a4d81

Please sign in to comment.