ERNIE icon indicating copy to clipboard operation
ERNIE copied to clipboard

运行PaddlePaddle的ERNIE3.0教程的示例代码报错

Open luyan518 opened this issue 1 year ago • 1 comments

链接: https://aistudio.baidu.com/modelsdetail/21/intro

按照上面的步骤执行代码,执行到以下代码报错:

分类任务

该脚本共支持 CLUE 中 7 个分类任务,超参不全相同,因此分类任务中的超参配置利用 config.yml 配置

!python PaddleNLP/model_zoo/ernie-3.0/run_seq_cls.py
--task_name iflytek
--model_name_or_path ernie-3.0-medium-zh
--do_train

一开始报没有--output_dir参数,加上参数之后,报: /opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/_distutils_hack/init.py:33: UserWarning: Setuptools is replacing distutils. warnings.warn("Setuptools is replacing distutils.") [2024-06-11 16:19:45,271] [ INFO] - The default value for the training argument --report_to will change in v5 (from all installed integrations to none). In v5, you will need to use --report_to all to get the same behavior as now. You should start updating your code and make this info disappear :-). Traceback (most recent call last): File "/home/aistudio/PaddleNLP/model_zoo/ernie-3.0/run_seq_cls.py", line 179, in main() File "/home/aistudio/PaddleNLP/model_zoo/ernie-3.0/run_seq_cls.py", line 41, in main model_args, data_args, training_args = parser.parse_args_into_dataclasses() File "/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/paddlenlp/trainer/argparser.py", line 232, in parse_args_into_dataclasses raise ValueError(f"Some specified arguments are not used by the PdArgumentParser: {remaining_args}") ValueError: Some specified arguments are not used by the PdArgumentParser: ['--task_name', 'iflytek']

luyan518 avatar Jun 11 '24 08:06 luyan518

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Feel free to reopen it. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 03:04 stale[bot]