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

Distributed Trainer #3745

Merged
merged 5 commits into from
Jan 10, 2024
Merged

Distributed Trainer #3745

merged 5 commits into from
Jan 10, 2024

Conversation

arunppsg
Copy link
Contributor

DistributedTrainer for DeepChem.

@@ -26,7 +26,7 @@ class DCLightningDatasetModule(pl.LightningDataModule):
This class requires PyTorch to be installed.
"""

def __init__(self, dataset, batch_size, collate_fn):
def __init__(self, dataset, batch_size, collate_fn, num_workers: int):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs reminder

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just add type annotations while we're at it here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added type annotations and docs

@arunppsg arunppsg mentioned this pull request Jan 4, 2024
15 tasks
@arunppsg arunppsg changed the title [DRAFT] Distributed Trainer Distributed Trainer Jan 5, 2024
Copy link
Member

@rbharath rbharath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, let's not make trainer a top level module but let's add dc.models.trainer as a submodule. Once those changes are made and tests are fixed, we should be good to merge in

@arunppsg
Copy link
Contributor Author

arunppsg commented Jan 8, 2024

Added dc.models.trainer submodule

@arunppsg arunppsg requested a review from rbharath January 8, 2024 17:20
Copy link
Member

@rbharath rbharath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but there's a bug that needs to be fixed before merge on the CI for the distributed trainer.

@arunppsg arunppsg merged commit 2308cd1 into deepchem:master Jan 10, 2024
25 of 36 checks passed
@arunppsg
Copy link
Contributor Author

Fixed CI error and merging this in.

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.

None yet

2 participants