MTL-summarization is supervised pre-trained using a mixture of labeled summarization datasets. It is a variant (Single) of our main
MVP
model. It follows a standard Transformer encoder-decoder architecture.
MTL-summarization is specially designed for summarization tasks, such as new summarization (CNN/DailyMail, XSum) and dialog summarization (SAMSum).
Example
>>> from transformers import MvpTokenizer, MvpForConditionalGeneration
>>> tokenizer = MvpTokenizer.from_pretrained("RUCAIBox/mvp")
>>> model = MvpForConditionalGeneration.from_pretrained("RUCAIBox/mtl-summarization")
>>> inputs = tokenizer(
... "Summarize: You may want to stick it to your boss and leave your job, but don't do it if these are your reasons.",
... return_tensors="pt",
... )
>>> generated_ids = model.generate(**inputs)
>>> tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
["Don't do it if these are your reasons"]
@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-summarization on huggingface.co
6
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
-2
30-day runs
More Information About mtl-summarization huggingface.co Model
mtl-summarization huggingface.co is an AI model on huggingface.co that provides mtl-summarization's model effect (), which can be used instantly with this RUCAIBox mtl-summarization model. huggingface.co supports a free trial of the mtl-summarization model, and also provides paid use of the mtl-summarization. Support call mtl-summarization model through api, including Node.js, Python, http.
mtl-summarization huggingface.co is an online trial and call api platform, which integrates mtl-summarization's modeling effects, including api services, and provides a free online trial of mtl-summarization, you can try mtl-summarization online for free by clicking the link below.
RUCAIBox mtl-summarization online free url in huggingface.co:
mtl-summarization is an open source model from GitHub that offers a free installation service, and any user can find mtl-summarization on GitHub to install. At the same time, huggingface.co provides the effect of mtl-summarization install, users can directly use mtl-summarization installed effect in huggingface.co for debugging and trial. It also supports api for free installation.