Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
365671be
Unverified
Commit
365671be
authored
Jan 03, 2024
by
flybird11111
Committed by
GitHub
Jan 03, 2024
Browse files
fix-test (#5210)
fix-test fix-test
parent
7f3400b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
colossalai/booster/plugin/gemini_plugin.py
colossalai/booster/plugin/gemini_plugin.py
+4
-0
colossalai/booster/plugin/hybrid_parallel_plugin.py
colossalai/booster/plugin/hybrid_parallel_plugin.py
+4
-0
colossalai/cluster/process_group_mesh.py
colossalai/cluster/process_group_mesh.py
+1
-1
No files found.
colossalai/booster/plugin/gemini_plugin.py
View file @
365671be
...
...
@@ -437,6 +437,10 @@ class GeminiPlugin(DPPluginBase):
enable_sequence_overlap
=
self
.
enable_sequence_overlap
,
)
def
__del__
(
self
):
"""Destroy the prcess groups in ProcessGroupMesh"""
self
.
pg_mesh
.
destroy_mesh_process_groups
()
def
support_no_sync
(
self
)
->
bool
:
return
False
...
...
colossalai/booster/plugin/hybrid_parallel_plugin.py
View file @
365671be
...
...
@@ -1054,6 +1054,10 @@ class HybridParallelPlugin(PipelinePluginBase):
self
.
max_norm
=
max_norm
def
__del__
(
self
):
"""Destroy the prcess groups in ProcessGroupMesh"""
self
.
pg_mesh
.
destroy_mesh_process_groups
()
@
property
def
enable_pipeline_parallelism
(
self
)
->
bool
:
return
self
.
pp_size
>
1
...
...
colossalai/cluster/process_group_mesh.py
View file @
365671be
...
...
@@ -45,7 +45,7 @@ class ProcessGroupMesh:
self
.
_ranks_to_group
:
Dict
[
Tuple
[
int
,
...],
ProcessGroup
]
=
{}
self
.
_group_to_ranks
:
Dict
[
ProcessGroup
,
Tuple
[
int
,
...]]
=
{}
def
__del__
(
self
):
def
destroy_mesh_process_groups
(
self
):
r
"""
Destructor method for the ProcessGroupMesh class.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment