Skip to content

[Bug]:AttributeError: module 'torchtune.utils' has no attribute 'metric_logging' #579

Description

@zhoufy20

AttributeError: module 'torchtune.utils' has no attribute 'metric_logging'

How can I solve this problem? Thanks a lot.

DEBUG:torchtune.utils._logging:Setting manual seed to local seed 3979603101. Local seed is seed + rank = 3979603101 + 0
Traceback (most recent call last):
  File "/home/deroot/miniconda3/envs/llama/lib/python3.12/site-packages/torchtune/config/_utils.py", line 83, in _get_component_from_path
    obj = getattr(obj, part)
          ^^^^^^^^^^^^^^^^^^
AttributeError: module 'torchtune.utils' has no attribute 'metric_logging'

site-packages/torchtune/config/_utils.py", line 94, in _get_component_from_path
    raise InstantiationError(
torchtune.config._errors.InstantiationError: Error loading 'torchtune.utils.metric_logging.WandBLogger':
ModuleNotFoundError("No module named 'torchtune.utils.metric_logging'")
Are you sure that 'metric_logging' is importable from module 'torchtune.utils'?

Activity

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions