From 8ab5e20239564142bcd0842b055107f5f228ea05 Mon Sep 17 00:00:00 2001 From: tangyunxiang <546783735@qq.com> Date: Fri, 7 Jul 2023 15:13:50 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AE=97=E5=AD=90?= =?UTF-8?q?=E9=BB=91=E5=90=8D=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../built-in/nlp/Bert_Chinese_ID3433_for_PyTorch/run_mlm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PyTorch/built-in/nlp/Bert_Chinese_ID3433_for_PyTorch/run_mlm.py b/PyTorch/built-in/nlp/Bert_Chinese_ID3433_for_PyTorch/run_mlm.py index 35ce92029a..2df24912d4 100644 --- a/PyTorch/built-in/nlp/Bert_Chinese_ID3433_for_PyTorch/run_mlm.py +++ b/PyTorch/built-in/nlp/Bert_Chinese_ID3433_for_PyTorch/run_mlm.py @@ -214,6 +214,10 @@ def main(): # or by passing the --help flag to this script. # We now keep distinct sets of args, for a cleaner separation of concerns. + option = {} + option['NPU_FUZZY_COMPILE_BLACKLIST'] = 'BroadcastTo' + torch.npu.set_option(option) + parser = HfArgumentParser((ModelArguments, DataTrainingArguments, TrainingArguments)) if len(sys.argv) == 2 and sys.argv[1].endswith(".json"): # If we pass only one argument to the script and it's the path to a json file, -- Gitee From 99bff0f5654bde3750e15986292be96e69d32138 Mon Sep 17 00:00:00 2001 From: tangyunxiang <546783735@qq.com> Date: Mon, 10 Jul 2023 14:46:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=B9=E7=AE=97?= =?UTF-8?q?=E5=AD=90=E8=BF=9B=E8=A1=8C=E8=A7=84=E9=81=BF=E7=9A=84=E4=B8=B4?= =?UTF-8?q?=E6=97=B6=E6=96=B9=E6=A1=88=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PyTorch/built-in/nlp/Bert_Chinese_ID3433_for_PyTorch/run_mlm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/PyTorch/built-in/nlp/Bert_Chinese_ID3433_for_PyTorch/run_mlm.py b/PyTorch/built-in/nlp/Bert_Chinese_ID3433_for_PyTorch/run_mlm.py index 2df24912d4..ef73e4204b 100644 --- a/PyTorch/built-in/nlp/Bert_Chinese_ID3433_for_PyTorch/run_mlm.py +++ b/PyTorch/built-in/nlp/Bert_Chinese_ID3433_for_PyTorch/run_mlm.py @@ -214,6 +214,7 @@ def main(): # or by passing the --help flag to this script. # We now keep distinct sets of args, for a cleaner separation of concerns. + # PyTorch1.11版本可能存在精度下降的问题,对算子采取规避方式临时处理的方案 option = {} option['NPU_FUZZY_COMPILE_BLACKLIST'] = 'BroadcastTo' torch.npu.set_option(option) -- Gitee