Skip to content

pytorch_lightning.utilities(module) and lightning_utilities (package) #20548

@holyshipt

Description

@holyshipt

Outline & Motivation

In the future release, is it possible to recommend which one to use when both contains similar functions? e.g.,
usage of lightning-utilities 0.11.9 with strict linting/LSP support working

from lightning_utilities.core.rank_zero import rank_zero_only

usage of utilities in pytorch-lightning 2.5.0, not having linting/LSP support

pytorch_lighning.utilities.rank_zero_only  # "utilities" is not a known attribute of module "pytorch_lightning"

Pitch

No response

Additional context

No response

cc @lantiga @justusschock

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions