Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Add lightning.Trainer config, fix #691 #687 #742 #745 #752

Merged
merged 47 commits into from
May 5, 2024

Conversation

NickleDave
Copy link
Collaborator

This adds a trainer table to the train/eval/predict/learncurve tables in the configuration file, with keys accelerator and devices, like so:

[vak.train.trainer]
accelerator = 'gpu'
devices = [0]

Those keys gets passed directly to lightning.Trainer as the corresponding parameters when instantiating. For now we only allow devices to be a list of a single int when accelerator is anything besides cpu, e.g. gpu, to fix the bugs in #742 #745 #687

…htning.pytorch everywhere instead of pytorch_lightning as lightning -- trying to make it so we can resolve API correctly in docstrings
…nfig; remove 'device' attribute. Also clean up docstring, removing attributes that no longer exist
…od of EvalConfig/LearncurveConfig/PredictConfig/TrainConfig
… to put tensors on device, not to change a config
…witched to using lightning as the dependency
@NickleDave NickleDave merged commit e74b92b into main May 5, 2024
0 of 4 checks passed
NickleDave added a commit that referenced this pull request May 6, 2024
@NickleDave NickleDave deleted the add-trainer-table-config branch August 24, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant