mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-07 12:01:39 +00:00
[shardformer] refactor pipeline grad ckpt config (#5646)
* [shardformer] refactor pipeline grad ckpt config * [shardformer] refactor pipeline grad ckpt config * [pipeline] fix stage manager
This commit is contained in:
@@ -14,6 +14,7 @@ class _PipelineStageManager(PipelineStageManager):
|
||||
def __init__(self):
|
||||
self.is_interleave = False
|
||||
self.num_layers_per_stage = None
|
||||
self.num_model_chunks = 1
|
||||
|
||||
@property
|
||||
def num_stages(self):
|
||||
|
@@ -14,6 +14,7 @@ class _PipelineStageManager(PipelineStageManager):
|
||||
def __init__(self):
|
||||
self.is_interleave = False
|
||||
self.num_layers_per_stage = None
|
||||
self.num_model_chunks = 1
|
||||
|
||||
@property
|
||||
def num_stages(self):
|
||||
|
Reference in New Issue
Block a user