# Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# 
#     http://www.apache.org/licenses/LICENSE-2.0
# 
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

model_name_or_path="THUDM/chatglm-6b"
dataset_name_or_path="llm_benchmark_zh"
base_batch_size=1
learning_rate="3e-04"
recompute="0"
tensor_parallel_degree="1"
lora="1"
prefix_tuning="0"
model_item="THUDM-chatglm-6b_lora"
run_mode="DP1"
device_num="N1C1"
num_train_epochs=2
export CUDA_VISIBLE_DEVICES=0
cd ./tests
bash ./test_tipc/dygraph/ft/benchmark_common/prepare.sh
bash ./test_tipc/dygraph/ft/benchmark_common/run_benchmark.sh ${model_name_or_path} ${dataset_name_or_path} ${base_batch_size} ${learning_rate} ${recompute} ${tensor_parallel_degree} ${lora} ${prefix_tuning} ${model_item} ${run_mode} ${device_num} ${num_train_epochs}