-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Model] Add aquila 3b configuration file #281
Merged
Merged
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
a25ae51
add aquila 1b
7a3bb80
remove bi150 code
00d3bd4
reset transformer_engine.py
6653514
polish
8797120
update config
613b035
rest auila-7b
3014e91
polish
d5346d8
polish
846023c
add PYTHONPATH
bc6bbfe
polish
fa82d79
fix send/recv grad bug when hetero_dp
391ba11
polish
4f22d07
change golded value
5537506
shared embd grad sync
535c304
reset yaml
9ffba0f
reset yaml
34bd35b
merge upstream
efab98e
delete tokenizer file
126a754
delete model file for converting ckpt
ebf2926
polish arguments
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
system: | ||
tensor_model_parallel_size: 1 | ||
pipeline_model_parallel_size: 2 | ||
disable_bias_linear: True | ||
use_flash_attn: True | ||
use_distributed_optimizer: True | ||
precision: | ||
fp16: True | ||
initial_loss_scale: 522893 | ||
min_loss_scale: 1.0 | ||
attention_softmax_in_fp32: True | ||
accumulate_allreduce_grads_in_fp32: True | ||
logging: | ||
log_interval: 1 | ||
tensorboard_log_interval: 1 | ||
wandb_project: "train-aquila-1B" | ||
wandb_exp_name: "train-test-1B" | ||
checkpoint: | ||
# load: outputs_llama3/checkpoint_mc | ||
ckpt_format: torch | ||
save_interval: 2000 | ||
|
||
hetero: | ||
enable_hetero: True | ||
hetero_use_cpu_communication: False | ||
# mesh format [tp1,cp1,ep1,dp1,pp1,(tp2,cp2...)] | ||
|
||
hetero_pipeline_layer_split: [12, 12] | ||
hetero_process_meshes: [1, 1, 1, 4, 2] | ||
hetero_device_types: ["A800"] | ||
|
||
standalone_embedding_stage: False | ||
hetero_current_device_type: "A800" | ||
|
||
# recompute: | ||
# recompute_granularity: "full" | ||
# recompute_method: "uniform" | ||
# recompute_num_layers: 1 | ||
|
||
# ## pp 2 stages | ||
# recompute_granularity_per_stage_micro_batch: | ||
# - [1, 4, 1, 4, 0] | ||
# - [1, 8, 1, 0, 0] | ||
# recompute_method_per_stage_micro_batch: | ||
# - [1, 8, 1, 0, 0] | ||
# - [1, 8, 1, 0, 0] | ||
# recompute_num_layers_per_stage_micro_batch: | ||
# - [1, 8, 16, 0, 0] | ||
# - [1, 0, 16, 8, 0] | ||
|
||
model: | ||
# use_mcore_models: True # deprecated | ||
transformer_impl: transformer_engine | ||
num_layers: 24 | ||
hidden_size: 2048 | ||
num_attention_heads: 16 | ||
seq_length: 4096 | ||
max_position_embeddings: 4096 # only for adding position embeddings | ||
norm_epsilon: 1e-5 | ||
use_rotary_position_embeddings: true | ||
no_position_embedding: true | ||
rotary_base: 100000 # To be determined | ||
swiglu: true | ||
multiple_of: 256 | ||
normalization: RMSNorm | ||
qk_layernorm: True | ||
qk_layernorm_hidden_dim: True | ||
position_embedding_type: rope | ||
untie_embeddings_and_output_weights: true | ||
init_method_std: 0.02 | ||
attention_dropout: 0.0 | ||
hidden_dropout: 0.0 | ||
weight_decay: 0.1 | ||
clip_grad: 1.0 | ||
train_samples: 160 | ||
eval_iters: 0 | ||
micro_batch_size: 2 | ||
global_batch_size: 16 | ||
seed: 1234 | ||
|
||
optimizer: | ||
weight_decay: 0.1 | ||
adam_beta1: 0.9 | ||
adam_beta2: 0.95 | ||
lr_scheduler: | ||
lr: 2.0e-5 | ||
min_lr: 2.0e-6 | ||
lr_warmup_samples: 10 | ||
lr_decay_style: cosine | ||
|
||
data: | ||
data_path: ${data_path:??} | ||
# data_path: ./build/data/pile_wikipedia_demo | ||
split: 1 | ||
tokenizer: | ||
tokenizer_type: QwenTokenizerFS | ||
tokenizer_path: ${tokenizer_path:??} | ||
vocab_size: 151851 | ||
make_vocab_size_divisible_by: 64 |
Oops, something went wrong.
Oops, something went wrong.
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.
用bf16
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.
Done~Thanks!