Skip to content

Tuner starts from validation even though num_sanity_val_steps is set to 0 #16488

@fierval

Description

@fierval

Bug description

In PL 1.9.0:

tuner = pl.Trainer(auto_lr_find=True, accelerator="cuda", num_sanity_val_steps=0)
tuner.tune(model_module)

The model_module is Lightning module that has a field called lr.

Starts validation even though num_sanity_val_steps=0.

Calling fit() works fine
Also works fine in 1.7.7

How to reproduce the bug

No response

Error messages and logs

# Error messages and logs here please

Environment

Current environment
#- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow):
#- PyTorch Lightning Version (e.g., 1.5.0):
#- Lightning App Version (e.g., 0.5.2):
#- PyTorch Version (e.g., 1.10):
#- Python version (e.g., 3.9):
#- OS (e.g., Linux):
#- CUDA/cuDNN version:
#- GPU models and configuration:
#- How you installed Lightning(`conda`, `pip`, source):
#- Running environment of LightningApp (e.g. local, cloud):

More info

No response

cc @Borda

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedOpen to be worked ontuner

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions