Skip to content

Megatron use Metadata costom attr, but torch2.9 forbid it #2345

@jichenjichen

Description

@jichenjichen

Megatron use Metadata costom attr, but torch2.9 forbid it.
AttributeError: 'Metadata' object has no attribute 'mcore_data'. Did you mean: 'storage_data'“” like this err.

pytorch/pytorch#162948

https://github.com/pytorch/pytorch/blob/v2.9.1/torch/distributed/checkpoint/filesystem.py#L755 in torch2.9, the costom attr will be lose, but torch do not fix it. pytorch/pytorch#162953.

It will be fixed in Megatron?

Metadata

Metadata

Assignees

No one assigned

    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