mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-25 15:01:43 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
971b16a74f
commit
a292554179
@ -63,7 +63,12 @@ class OptimizerParamCheckState(enum.Enum):
|
|||||||
|
|
||||||
class LowLevelZeroModel(ModelWrapper, AMPModelMixin):
|
class LowLevelZeroModel(ModelWrapper, AMPModelMixin):
|
||||||
def __init__(
|
def __init__(
|
||||||
self, module: nn.Module, precision: str, overlap_allgather: bool = False, cast_inputs: bool = True, use_fp8: bool = False
|
self,
|
||||||
|
module: nn.Module,
|
||||||
|
precision: str,
|
||||||
|
overlap_allgather: bool = False,
|
||||||
|
cast_inputs: bool = True,
|
||||||
|
use_fp8: bool = False,
|
||||||
) -> None:
|
) -> None:
|
||||||
super().__init__(module)
|
super().__init__(module)
|
||||||
self.dtype = None
|
self.dtype = None
|
||||||
|
Loading…
Reference in New Issue
Block a user