mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-27 20:46:00 +00:00
[pipeline] refactor test pipeline and remove useless utils in pipeline (#4324)
* refactor tests * refactor bloom model * finish policy tests * refactor tests * fix test pure pipeline * remove test pipeline and cutdown launch process * refactor tests * refactor bloom model * finish policy tests * refactor tests * fix test pure pipeline * remove test pipeline and cutdown launch process
This commit is contained in:
@@ -315,7 +315,7 @@ class BertForMaskedLMPolicy(BertPolicy):
|
||||
def module_policy(self):
|
||||
policy = super().module_policy()
|
||||
policy = self.add_lm_head_policy(policy)
|
||||
mpolicy = self.add_lm_prediction_policy(policy)
|
||||
policy = self.add_lm_prediction_policy(policy)
|
||||
from transformers.models.bert.modeling_bert import BertForMaskedLM
|
||||
if self.pipeline_stage_manager:
|
||||
self.set_pipeline_forward(model_cls=BertForMaskedLM,
|
||||
|
Reference in New Issue
Block a user