Skip to content

Unable to use multiple devices #9

@erikhagendorn

Description

@erikhagendorn

It appears the number of devices is hardcoded:

trainer = pl.Trainer(max_epochs=n_epochs, devices=1)

trainer = pl.Trainer(devices=1)

Given the contrastive learning task, it would be preferable to utilize more resources for training and allow the devices argument to be passed to your model classes.

I'm unsure to what extent other aspects of the model would require changes, but I believe the learning rate calculation in lr_from_batchsize would need to be updated as well (batch_size * devices).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions