Skip to content

Commit 624ff14

Browse files
committed
fix precommit
Signed-off-by: Yang Zhang <yangzhang@nvidia.com>
1 parent 2e58ba3 commit 624ff14

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

sub-packages/bionemo-evo2/src/bionemo/evo2/data/sharded_eden_dataloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def __init__(
100100
log_dir: Optional[str] = None,
101101
**kwargs,
102102
):
103-
"""Initialize the ShardedEdenDataModule. See sub-packages/bionemo-evo2/src/bionemo/evo2/data/sharded_eden_dataloader.md for how to prepare the input data. """
103+
"""Initialize the ShardedEdenDataModule. See sub-packages/bionemo-evo2/src/bionemo/evo2/data/sharded_eden_dataloader.md for how to prepare the input data."""
104104
super().__init__()
105105
self.sequence_db_dir = sequence_db_dir
106106
self.train_window_db_path = train_window_db_path

sub-packages/bionemo-evo2/src/bionemo/evo2/run/train.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,9 @@ def train(args: argparse.Namespace) -> nl.Trainer:
10701070
constant_steps=args.constant_steps,
10711071
)
10721072
# This is where the no weight decay condition is applied to the optimizer state.
1073-
opt = MegatronOptimizerModule(opt_config, sched, no_weight_decay_cond=getattr(model_config, 'hyena_no_weight_decay_cond_fn', None))
1073+
opt = MegatronOptimizerModule(
1074+
opt_config, sched, no_weight_decay_cond=getattr(model_config, "hyena_no_weight_decay_cond_fn", None)
1075+
)
10741076
opt.connect(model)
10751077
# Start training
10761078
trainer.fit(model, data_module)

sub-packages/bionemo-evo2/tests/bionemo/evo2/data/test_sharded_eden_dataset.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,6 @@ def test_dataset_collate_fn(sequence_db_dir, window_dbs):
480480
dataset.__del__()
481481

482482

483-
484-
485483
def test_window_min_length_threshold(temp_dir, train_parquet):
486484
"""Test window database creation with length threshold."""
487485
output_db = Path(temp_dir) / "threshold_windows.db"
@@ -545,4 +543,3 @@ def test_dataset_length_and_iteration(sequence_db_dir, window_dbs):
545543

546544
# Clean up
547545
dataset.__del__()
548-

sub-packages/bionemo-evo2/tests/bionemo/evo2/run/test_train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def small_training_llama_finetune_cmd(
119119
)
120120
return cmd
121121

122+
122123
@pytest.mark.timeout(512) # Optional: fail if the test takes too long.
123124
@pytest.mark.slow
124125
def test_train_evo2_finetune_runs(tmp_path):
@@ -266,7 +267,6 @@ def test_train_evo2_mamba_finetune_runs(tmp_path):
266267
assert len(matching_subfolders_ft) == 1, "Only one checkpoint subfolder should be found."
267268

268269

269-
270270
@pytest.mark.timeout(512) # Optional: fail if the test takes too long.
271271
@pytest.mark.slow
272272
def test_train_evo2_llama_finetune_runs(tmp_path):

0 commit comments

Comments
 (0)