MTL-question-generation is supervised pre-trained using a mixture of labeled question generation datasets. It is a variant (Single) of our main
MVP
model. It follows a standard Transformer encoder-decoder architecture.
MTL-question-generation is specially designed for question generation tasks, such as SQuAD and CoQA.
Example
>>> from transformers import MvpTokenizer, MvpForConditionalGeneration
>>> tokenizer = MvpTokenizer.from_pretrained("RUCAIBox/mvp")
>>> model = MvpForConditionalGeneration.from_pretrained("RUCAIBox/mtl-question-generation")
>>> inputs = tokenizer(
... "Generate the question based on the answer: boxing [X_SEP] A bolo punch is a punch used in martial arts . A hook is a punch in boxing .",
... return_tensors="pt",
... )
>>> generated_ids = model.generate(**inputs)
>>> tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
['A bolo punch and a hook are both punches used in what sport?]
@article{tang2022mvp,
title={MVP: Multi-task Supervised Pre-training for Natural Language Generation},
author={Tang, Tianyi and Li, Junyi and Zhao, Wayne Xin and Wen, Ji-Rong},
journal={arXiv preprint arXiv:2206.12131},
year={2022},
url={https://arxiv.org/abs/2206.12131},
}
Runs of RUCAIBox mtl-question-generation on huggingface.co
25
Total runs
0
24-hour runs
-2
3-day runs
-11
7-day runs
3
30-day runs
More Information About mtl-question-generation huggingface.co Model
mtl-question-generation huggingface.co is an AI model on huggingface.co that provides mtl-question-generation's model effect (), which can be used instantly with this RUCAIBox mtl-question-generation model. huggingface.co supports a free trial of the mtl-question-generation model, and also provides paid use of the mtl-question-generation. Support call mtl-question-generation model through api, including Node.js, Python, http.
mtl-question-generation huggingface.co is an online trial and call api platform, which integrates mtl-question-generation's modeling effects, including api services, and provides a free online trial of mtl-question-generation, you can try mtl-question-generation online for free by clicking the link below.
RUCAIBox mtl-question-generation online free url in huggingface.co:
mtl-question-generation is an open source model from GitHub that offers a free installation service, and any user can find mtl-question-generation on GitHub to install. At the same time, huggingface.co provides the effect of mtl-question-generation install, users can directly use mtl-question-generation installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
mtl-question-generation install url in huggingface.co: