This repository has been archived by the owner on Oct 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
badcase #41
Open
feifeibear
wants to merge
14
commits into
main
Choose a base branch
from
badcase/gemini
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
badcase #41
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
495e71f
[zero] add 8b zero-8-dp config, using the latest gemini module.
feifeibear f6e0e12
polish
feifeibear 2902c13
Merge branch 'main' of github.com:hpcaitech/PaLM-colossalai into main
feifeibear b7fdb37
Merge branch 'main' of github.com:hpcaitech/PaLM-colossalai into main
feifeibear 4f08693
correct model numel calc
feifeibear 8d2d027
add a gemini badcase
feifeibear b67a04c
Merge branch 'main' into setcudacap
feifeibear 50ecdb5
add bad case configs
feifeibear 8f7d594
Merge branch 'main'of github.com:hpcaitech/PaLM-colossalai into setcu…
feifeibear da399c4
polish
feifeibear e50b55a
Merge branch 'setcudacap' of github.com:hpcaitech/PaLM-colossalai int…
feifeibear 97a5f0b
add gemini badcase
feifeibear 38d8111
add gemini 8b badcase
feifeibear 2f186c3
add 2p5d gemini badcase
feifeibear File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from colossalai.zero.shard_utils import TensorShardStrategy | ||
|
||
SEQ_LENGTH = 2048 | ||
BATCH_SIZE = 16 | ||
NUM_EPOCHS = 1 | ||
# WARMUP_EPOCHS = 1 | ||
|
||
parallel = dict( | ||
tensor=dict(mode="2d", size=8), | ||
) | ||
|
||
model = dict( | ||
type="palm_8b", | ||
use_grad_checkpoint=True, | ||
use_act_offload=False, | ||
) | ||
|
||
zero = dict( | ||
model_config=dict( | ||
shard_strategy=TensorShardStrategy(), | ||
tensor_placement_policy='cpu', | ||
), | ||
optimizer_config=dict( | ||
gpu_margin_mem_ratio = 0.8, | ||
initial_scale=2**5, | ||
) | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from colossalai.zero.shard_utils import TensorShardStrategy | ||
|
||
SEQ_LENGTH = 2048 | ||
BATCH_SIZE = 16 | ||
NUM_EPOCHS = 1 | ||
# WARMUP_EPOCHS = 1 | ||
|
||
parallel = dict( | ||
tensor=dict(mode="3d", size=8), | ||
) | ||
|
||
model = dict( | ||
type="palm_8b", | ||
use_grad_checkpoint=True, | ||
use_act_offload=False, | ||
) | ||
|
||
zero = dict( | ||
model_config=dict( | ||
shard_strategy=TensorShardStrategy(), | ||
tensor_placement_policy='cpu', | ||
), | ||
optimizer_config=dict( | ||
gpu_margin_mem_ratio = 0.8, | ||
initial_scale=2**5, | ||
) | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from colossalai.zero.shard_utils import TensorShardStrategy | ||
|
||
SEQ_LENGTH = 2048 | ||
BATCH_SIZE = 16 | ||
NUM_EPOCHS = 1 | ||
# WARMUP_EPOCHS = 1 | ||
|
||
parallel = dict( | ||
tensor=dict(mode="1d", size=2), | ||
) | ||
|
||
model = dict( | ||
type="palm_8b", | ||
use_grad_checkpoint=True, | ||
use_act_offload=False, | ||
) | ||
|
||
|
||
# auto will fail | ||
# cpu will pass | ||
zero = dict( | ||
model_config=dict( | ||
shard_strategy=TensorShardStrategy(), | ||
tensor_placement_policy='cpu', | ||
), | ||
optimizer_config=dict( | ||
gpu_margin_mem_ratio = 0.8, | ||
initial_scale=2**5, | ||
) | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto will fail