Skip to content

Profiler patches torch without reverting it聽#240

Description

@awaelchli

馃悰 Bug

LitData patches the worker loop in torch here

https://github.com/Lightning-AI/litdata/blob/5d6b8f962a5dce5efc132131fff46f33c7e24fca/src/litdata/streaming/dataloader.py#L454-L456

but this never gets reverted. Subsequent runs with a dataloader will just happily run this worker loop. This hack should be removed, or if it stays it should have a way for it to remain disabled and be idempotent.

This could lead to hard to debug issues on the user's side.
On our side, this currently leads to interactions in our test suite.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions