how to wrapped multiple models with booster
Discussed in https://github.com/hpcaitech/ColossalAI/discussions/5595
If two models need to be trained, and they use different optimizers. One model is a large model, which can't be loaded with single card, and the other is a small model to assist the training of the large model, but it also needs parameter update, how to warp each model through booster. The original boost api only support warp wtih single nn.Module, so how to solve trained multi model with boost?
Bot detected the issue body's language is not English, translate it automatically. π―ππ»π§βπ€βπ§π«π§πΏβπ€βπ§π»π©πΎβπ€βπ¨πΏπ¬πΏ
Title: boost wrapped multiple models
Hi, Thanks for the issue. I think there's nothing stopping you from calling booster.boost separately on the two models, as long as you want to apply the same parallel plan. Otherwise, you can create another booster with a lower parallelization degree for the smaller model.
Thanks
I have the same promblem...