Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ function _set_params(){
sharding_degree=${10:-"1"} # (可选)
sharding_stage=${11:-"1"} # (可选)sharding case
level=${12:-"o1"} # o1|o2|o3

if [[ $FLAGS_enable_pir_api == "1" || $FLAGS_enable_pir_api == "True" ]]; then
if [ ${level} == "o3" ]; then
level="o2"
echo "amp level changed to o2 in pir mode"
else
echo "amp level is o3"
fi
else
echo "FLAGS_enable_pir_api = 0"
fi

local_batch_size=${13:-"8"} # (可选)本地batch size
schedule_mode=${14:-"1F1B"} # (可选)schedule mode
base_batch_size=$global_batch_size
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ function _set_params(){
sharding_degree=${10:-"1"} # (可选)
sharding_stage=${11:-"1"} # (可选)sharding case
level=${12:-"o1"} # o1|o2|o3

if [[ $FLAGS_enable_pir_api == "1" || $FLAGS_enable_pir_api == "True" ]]; then
if [ ${level} == "o3" ]; then
level="o2"
echo "amp level changed to o2 in pir mode"
else
echo "amp level is o3"
fi
else
echo "FLAGS_enable_pir_api = 0"
fi

local_batch_size=${13:-"8"} # (可选)本地batch size
schedule_mode=${14:-"1F1B"} # (可选)schedule mode
base_batch_size=$global_batch_size
Expand Down