Skip to content

Commit 94f0691

Browse files
auto_parallel add cp&sep strategy (#73195)
* add auto_parallel cp and sep strategy; * add auto_parallel cp and sep strategy; * add auto_parallel cp and sep strategy; * fix sep and cp; * fix sep and cp; * fix sep and cp; * fix ci * fix ci * fix ci * add sep acc align test * fix ci ut * fix ci ut * fix ci ut * fix pr conflict * fix intermediate api * fix intermediate api --------- Co-authored-by: andsonder <[email protected]>
1 parent 613186b commit 94f0691

23 files changed

+1980
-88
lines changed

python/paddle/distributed/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
)
4949
from .auto_parallel.high_level_api import to_distributed
5050
from .auto_parallel.interface import get_mesh, set_mesh
51+
from .auto_parallel.intermediate.context_parallel import (
52+
ContextParallel,
53+
PrepareContextParallel,
54+
)
5155
from .auto_parallel.intermediate.parallelize import parallelize
5256
from .auto_parallel.intermediate.pipeline_parallel import SplitPoint
5357
from .auto_parallel.intermediate.tensor_parallel import (
@@ -219,4 +223,6 @@
219223
"get_mesh",
220224
"to_distributed",
221225
"ConvParallel",
226+
"ContextParallel",
227+
"PrepareContextParallel",
222228
]

python/paddle/distributed/auto_parallel/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
)
2525
from .process_mesh import ProcessMesh # noqa: F401
2626
from .random import parallel_manual_seed # noqa: F401
27+
from .ring_attention import RingFlashAttention # noqa: F401
2728
from .ring_conv import RingConv2d # noqa: F401
2829
from .static.engine import Engine # noqa: F401
2930
from .strategy import Strategy # noqa: F401

0 commit comments

Comments
 (0)