Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
luyan518 opened this issue Jun 11, 2024 · 0 comments
Open

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

luyan518 opened this issue Jun 11, 2024 · 0 comments

Comments

@luyan518
Copy link

链接:
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']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant