Git Product home page Git Product logo

Comments (3)

tohtana avatar tohtana commented on July 22, 2024

@tiggerwu Can you tell us which MoE implementation you used?

from deepspeed.

tohtana avatar tohtana commented on July 22, 2024

@tiggerwu Can you tell us which MoE implementation you used?

Can you also share the deepspeed version and the stacktrace of the error?

from deepspeed.

tiggerwu avatar tiggerwu commented on July 22, 2024

@tiggerwu Can you tell us which MoE implementation you used?

Can you also share the deepspeed version and the stacktrace of the error?

Hello @tohtana , many thanks for your response.

  1. I have implemented a GPT-3 small 125M model with 2 experts using the script https://github.com/microsoft/Megatron-DeepSpeed/blob/main/examples_deepspeed/MoE/ds_pretrain_gpt_125M_MoE64.sh in Megatron-Deepspeed. I trained it in 2 GPUs with DP=2 and ZeRO1. When I removed the layer_x_expert_x_mp_rank_00_model_states.pt file from checkpoint folder (Because it doesn't match the file pattern defined in ds_to_universal.py and will cause error) and used ds_to_universal.py to convert the saved checkpoint to universal checkpoint, I found there is no param_shapes key in mp_rank_00_model_states.pt and the error KeyError: 'param_shapes' raised.
  2. The deepspeed version is 0.14.3
  3. The error stacktrace:
Traceback (most recent call last):
  File "/path/to/deepspeed/checkpoint/ds_to_universal.py", line 401, in <module>
    main(args)
  File "/path/to/deepspeed/checkpoint/ds_to_universal.py", line 368, in main
    slice_shapes += mp_sd[PARAM_SHAPES]
KeyError: 'param_shapes'

from deepspeed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.