,get_model后需要 encoder.load_state_dict(pipe.encoder.state_dict()) 这样更新一下优化模型的权重,此回答整理自钉群“BladeDISC用户支持群”