mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-05-10 01:17:45 +00:00
Merge branch 'main' of https://github.com/hpcaitech/ColossalAI into dev0116
This commit is contained in:
commit
7f822a5c45
@ -22,7 +22,12 @@ if COLOGM:
|
||||
|
||||
class ColoGraphModule(GraphModule):
|
||||
|
||||
def __init__(self, root: Union[torch.nn.Module, Dict[str, Any]], graph: Graph, class_name: str = 'GraphModule'):
|
||||
def __init__(self,
|
||||
root: Union[torch.nn.Module, Dict[str, Any]],
|
||||
graph: Graph,
|
||||
class_name: str = 'GraphModule',
|
||||
ckpt_codegen: bool = True):
|
||||
if ckpt_codegen:
|
||||
graph.set_codegen(ActivationCheckpointCodeGen())
|
||||
super().__init__(root, graph, class_name)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user