Skip to content

Set number of devices  #152

Closed
Closed
@yhl48

Description

@yhl48

This line raises an error if not all devices are used for training, for example devices = [0] in a machine with 4 GPUs.

The flexibility around choosing number of devices would be beneficial for debugging, especially since using ddp with multiple GPUs and breakpoints often gives erratic behaviour.

https://github.com/Lightning-AI/litdata/blob/cc50222aeeaf725af67fa9a443ed6456edf091f9/src/litdata/utilities/env.py#L53

Could we get this fixed? Thanks!

cc: @tchaton

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