Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M metaseq
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 95
    • Issues 95
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 41
    • Merge requests 41
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Administrator
  • metaseq
  • Issues
  • #442
Closed
Open
Issue created Oct 22, 2022 by Administrator@rootOwner

load_state_dict error when loading from MP models resharded from a singleton

Created by: jxmsML

❓ Questions and Help

I'm running interactive_cli on a reshard.pt with (resharded from a singleton consolidated file) and notice the model has a load_state error (missing qkv_proj.weight, 'qkv_proj.bias): model is transformer_lm_megatron, but in the consolidated.pt the state['model']has the unconcatenated statesq_proj, k_proj, v_proj` (saved when consolidating the original fsdp models into a singleton) https://github.com/facebookresearch/metaseq/blob/4629c56c467c1c40ef518a86f12799062e2551fa/metaseq/distributed/stitch_fsdp_ckpt.py#L287-L290)

I then notice that Alpa has the same renaming logic. However, they concatenate the q_proj, v_proj, k_proj into qkv_proj when loading from consolidated.pt singleton file.

So far I can't find such logic of concatenating the q_proj, v_proj, k_proj into qkv_proj in metaseq.

Before asking:

  1. search the issues.
  2. search the docs.

What is your question?

Code

What have you tried?

What's your environment?

  • metaseq Version (e.g., 1.0 or master):
  • PyTorch Version (e.g., 1.0)
  • OS (e.g., Linux):
  • How you installed metaseq (pip, source):
  • Build command you used (if compiling from source):
  • Python version:
  • CUDA/cuDNN version:
  • GPU models and configuration:
  • Any other relevant information:
Assignee
Assign to
Time tracking