Skip to content

[QUESTION] When will model have _extra_state? #900

Closed

Description

@1049451037

After updating to the main branch of Megatron-LM recently, I met this error when loading model:

Unexpected key(s) in state_dict: "decoder.layers.0.self_attention.core_attention._extra_state"

The checkpoint is transformed by the tools/checkpoint/convert.py, and loaded by pretrain_gpt.py.

Activity

  1. sambar1729 commented on Aug 9, 2024

    @sambar1729

    I had faced this error too, recently, and had to write a downstream script to remove this from every layer -- looks like the Mcore format is out of sync with what MegatronLM consumes?

  2. locked and limited conversation to collaborators on Sep 4, 2024
  3. converted this issue into a discussion #1104 on Sep 4, 2024
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions