Skip to content
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

fix autotunner benchmark error and fix llama2 dy2st benchmark #8587

Merged
merged 7 commits into from
Jun 12, 2024
Merged
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
2 changes: 1 addition & 1 deletion tests/test_tipc/auto_tuner/autoconfig/check_mem_usage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ auto_log_file=./autoconfig/${model_name}_auto_tuner.log

log="./llama7b_pretrain_auto_tuner.log"
launch_best_cfg=$(sed -n "s/.*Launch best cfg: \(.*\)}/\1/p" "$auto_log_file")
cfg_max_mem_usage=$(echo "$launch_best_cfg" | awk -F"max_mem_usage': " '{print $2}' | awk -F, '{print $1}')
cfg_max_mem_usage=$(echo "$launch_best_cfg" | awk -F"\"max_mem_usage\":" '{print $2}' | awk -F, '{print $1}')

buffer=$(sed -n 's/.*"buffer":\([^,}]*\).*/\1/p' $autoconfig_json_file | awk '{print $1}')
max_mem_usage=$(sed -n 's/.*"max_mem_usage":\([^,}]*\).*/\1/p' $autoconfig_json_file | awk '{print $1}')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ else
rank=$PADDLE_TRAINER_ID
echo $master_ip $rank
if [ $rank == 0 ]; then
net=$(netstat -anp | grep 2379 | grep "LISTEN")
net=$(netstat -anp | grep :2379 | grep "LISTEN")
if [ ${#net} == 0 ]; then
apt-get install -y --allow-downgrades etcd
nohup etcd -data-dir ~/data.etcd -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 &
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ else
rank=$PADDLE_TRAINER_ID
echo $master_ip $rank
if [ $rank == 0 ]; then
net=$(netstat -anp | grep 2379 | grep "LISTEN")
net=$(netstat -anp | grep :2379 | grep "LISTEN")
if [ ${#net} == 0 ]; then
apt-get install -y --allow-downgrades etcd
nohup etcd -data-dir ~/data.etcd -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379 &
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

param="model_item=meta-llama-Llama-2-7b_pretrain_dy2st "
param+="run_mode=Sharding_Stage2 "
param+="run_mode=Sharding32_Stage2 "
param+="device_num=N4C32 "
param+="global_batch_size=32 "
param+="nnodes=4 "
Expand Down
Loading