diff --git a/nlp/question_answering/bert/pytorch/run.sh b/nlp/question_answering/bert/pytorch/run.sh index cf87d4c6df9c2e2221477c1b4c0e9d1ccccc0ce3..921bd2e31d7a20b6e23cae9356c7b8c703d877e0 100644 --- a/nlp/question_answering/bert/pytorch/run.sh +++ b/nlp/question_answering/bert/pytorch/run.sh @@ -1,5 +1,21 @@ +# Copyright (c) 2023, Shanghai Iluvatar CoreX Semiconductor Co., Ltd. +# 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. + + python3 run_qa.py \ - --model_name_or_path "/home/data/bert/bert-base-uncased-pt" \ + --model_name_or_path bert-base-uncased \ --dataset_name squad \ --do_train \ --do_eval \ @@ -8,4 +24,4 @@ python3 run_qa.py \ --num_train_epochs 2 \ --max_seq_length 384 \ --doc_stride 128 \ - --output_dir /tmp/debug_squad/ \ No newline at end of file + --output_dir /tmp/debug_squad/ diff --git a/nlp/question_answering/bert/pytorch/run_dist.sh b/nlp/question_answering/bert/pytorch/run_dist.sh index efc59ad447180fc93e12a977ccc75a1b0d077956..4bc503363dec540196b84f9cd5f60fb917ab6427 100644 --- a/nlp/question_answering/bert/pytorch/run_dist.sh +++ b/nlp/question_answering/bert/pytorch/run_dist.sh @@ -1,6 +1,21 @@ +# Copyright (c) 2023, Shanghai Iluvatar CoreX Semiconductor Co., Ltd. +# 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. + python3 -m torch.distributed.launch --nproc_per_node=8 --master_port 12333 \ run_qa.py \ - --model_name_or_path "/home/data/bert/bert-base-uncased-pt" \ + --model_name_or_path bert-base-uncased \ --dataset_name squad \ --do_train \ --do_eval \ @@ -9,4 +24,4 @@ python3 -m torch.distributed.launch --nproc_per_node=8 --master_port 12333 \ --num_train_epochs 2 \ --max_seq_length 384 \ --doc_stride 128 \ - --output_dir /tmp/debug_squad/ \ No newline at end of file + --output_dir /tmp/debug_squad/