SwissArmyTransformer icon indicating copy to clipboard operation
SwissArmyTransformer copied to clipboard

what is the order of modules inserted by `add_mix` in Transformer?

Open XiaoqingNLP opened this issue 2 years ago • 1 comments

Hello, I would like to ask two questions as follows:

  1. what determines the location of the module inserted by add_mix ? If not specified, is it inserted at the end?
  2. why not save the zero optimizer ? Just to save disk space?

XiaoqingNLP avatar Aug 15 '22 10:08 XiaoqingNLP

If any hooks of the mixins are conflicted, an error is raised, except the hook having a @non_conflict decorator. The mixins objects are saved at the model(.module if deepspeed).mixins, which is a ModuleDict.

Sleepychord avatar Aug 18 '22 05:08 Sleepychord