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

add qg example #3410

Merged
merged 12 commits into from
Oct 11, 2022
Merged

add qg example #3410

merged 12 commits into from
Oct 11, 2022

Conversation

westfish
Copy link
Contributor

@westfish westfish commented Oct 8, 2022

PR types

New features

PR changes

Models

Description

增加问题生成example,包括基于英语预训练语言模型t5和基于中文预训练语言模型unimo-text两个子文件夹,其中unimo-text除训练预测评估外,还包括模型加速推理和部署。目前unimo-text下提供的模型参数还没有包括在大数据集(自建的9个领域的合数据集)上进行微调的参数。

@westfish westfish requested a review from wawltor October 8, 2022 14:06
examples/question_generation/README.md Show resolved Hide resolved
examples/question_generation/t5/README.md Show resolved Hide resolved
examples/question_generation/t5/README.md Show resolved Hide resolved
examples/question_generation/t5/README.md Outdated Show resolved Hide resolved
examples/question_generation/t5/README.md Outdated Show resolved Hide resolved
examples/question_generation/t5/finetune.py Outdated Show resolved Hide resolved
examples/question_generation/t5/generate.py Outdated Show resolved Hide resolved
examples/question_generation/t5/utils.py Show resolved Hide resolved
examples/question_generation/t5/utils.py Outdated Show resolved Hide resolved
examples/question_generation/t5/utils.py Show resolved Hide resolved
examples/question_generation/unimo-text/run_gen.py Outdated Show resolved Hide resolved


def do_predict(args):
place = "gpu"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的place建议不需要用gpu,因为要考虑没有GPU的环境,直接cpu或者默认device即可

Copy link
Collaborator

@wawltor wawltor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@westfish westfish merged commit eee364e into PaddlePaddle:develop Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants