Skip to content

Remove baichuan13b hidden layers in dynamic auto mode #10624

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ param+="model_type=baichuan2_13b "
param+='dynamic_auto=_dynamic_auto '

export FLAGS_fuse_reducescatter_in_opt=1
export FLAGS_enable_sharding_overlap=1
export FLAGS_enable_tensor_fusion=1

cd ./tests
bash ./test_tipc/static/auto_parallel/baichuan2/benchmark_common/prepare.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
"use_flash_attention": true,
"fused_linear": 1,
"fused_linear_param_grad_add": 1,
"enable_linear_fused_grad_add": true,
"use_fused_rope": true,
"use_fused_rms_norm": true,
"max_seq_length": 4096,
"sequence_parallel": 1,
"sequence_parallel": 0,
"sharding": "stage1",
"sharding_parallel_degree": 8,
"sharding_parallel_config": "enable_tensor_fusion enable_overlap",
"tensor_parallel_config": "enable_mp_async_allreduce replace_with_parallel_cross_entropy",
"data_parallel_config": "enable_allreduce_avg_in_gradinent_scale gradient_sync_after_accumulate",
"pipeline_parallel_config": "enable_send_recv_overlap enable_split_backward",
"num_hidden_layers": 20
"pipeline_parallel_config": "enable_send_recv_overlap enable_split_backward"
}