-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cherry-pick from pr906, fix conflicts. (#946)
Co-authored-by: Liujie0926 <44688141+Liujie0926@users.noreply.github.com>
- Loading branch information
1 parent
6ffc799
commit c29cc2b
Showing
7 changed files
with
853 additions
and
48 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
ppfleetx/configs/nlp/gpt/auto/generation_gpt_345M_single_card.yaml
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,47 @@ | ||
_base_: ./pretrain_gpt_base.yaml | ||
|
||
|
||
Engine: | ||
mix_precision: | ||
level: "o2" | ||
scale_loss: 32768.0 | ||
custom_black_list: ["reduce_sum", "c_softmax_with_cross_entropy", "elementwise_div", "where"] | ||
custom_white_list: ["lookup_table", "lookup_table_v2"] | ||
use_fp16_guard: False | ||
|
||
|
||
Generation: | ||
top_k: 0 | ||
top_p: 0.9 | ||
use_topp_sampling: True | ||
inference: True | ||
temperature: 1.0 | ||
min_dec_len: 8 | ||
max_dec_len: 8 | ||
num_return_sequences: 1 | ||
decode_strategy: "sampling" | ||
|
||
|
||
Model: | ||
module: GPTGenerationModuleAuto | ||
vocab_size: 50304 | ||
hidden_size: 1024 | ||
num_layers: 24 | ||
num_attention_heads: 16 | ||
ffn_hidden_size: 4096 | ||
hidden_dropout_prob: 0.1 | ||
attention_probs_dropout_prob: 0.1 | ||
max_position_embeddings: 1024 | ||
type_vocab_size: 16 | ||
initializer_range: 0.02 | ||
use_recompute: False | ||
fuse_attn_qkv: True | ||
|
||
|
||
Distributed: | ||
dp_degree: 1 | ||
mp_degree: 1 | ||
pp_degree: 1 | ||
sharding: | ||
sharding_degree: 1 | ||
sharding_stage: 1 |
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
Oops, something went wrong.