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
7e0ec5a8
Unverified
Commit
7e0ec5a8
authored
Apr 02, 2024
by
Edenzzzz
Committed by
GitHub
Apr 02, 2024
Browse files
fix incorrect sharding without zero (#5545)
Co-authored-by:
Edenzzzz
<
wtan45@wisc.edu
>
parent
e614aa34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
colossalai/shardformer/shard/shard_config.py
colossalai/shardformer/shard/shard_config.py
+4
-2
No files found.
colossalai/shardformer/shard/shard_config.py
View file @
7e0ec5a8
...
...
@@ -74,8 +74,10 @@ class ShardConfig:
self
.
enable_fused_normalization
=
True
self
.
enable_flash_attention
=
True
self
.
enable_jit_fused
=
True
self
.
enable_sequence_parallelism
=
True
self
.
enable_sequence_overlap
=
True
# This can cause non-in-place param sharding when used without ZeRO.
# It may also slow down training when seq len is small. Plz enable manually.
# self.enable_sequence_parallelism = True
# self.enable_sequence_overlap = True
def
_infer
(
self
):
"""
...
...
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