I used
flax summarization script
and a TPU v3-8. Summarization expects a text column and a summary column. For question generation training, use the context column instead of text column and question instead of summary column.
Limitations and Intended Use
There is no guarantee that it will produce a question in the language of the passage, but it usually does. Lower resource languages will likely have lower quality questions.
Intended use is to make questions given a passage. With a larger model this might be able to generate training data for question-answering models, but this small one does not produce high-quality questions.
Using the model
PyTorch version
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("nbroad/mt5-small-qgen")
model = AutoModelForSeq2SeqLM.from_pretrained("nbroad/mt5-small-qgen")
text = "Hugging Face has seen rapid growth in its \npopularity since the get-go. It is definitely doing\n the right things to attract more and more people to \n its platform, some of which are on the following lines:\nCommunity driven approach through large open source repositories \nalong with paid services. Helps to build a network of like-minded\n people passionate about open source. \nAttractive price point. The subscription-based features, e.g.: \nInference based API, starts at a price of $9/month.\n"
inputs = tokenizer(text, return_tensors="pt")
output = model.generate(**inputs, max_length=40)
tokenizer.decode(output[0], skip_special_tokens=True)
# What is the subscription-based features that starts at a price of $/month'
Model trained on Cloud TPUs from Google's TPU Research Cloud (TRC)
Runs of nbroad mt5-small-qgen on huggingface.co
10
Total runs
0
24-hour runs
1
3-day runs
2
7-day runs
2
30-day runs
More Information About mt5-small-qgen huggingface.co Model
mt5-small-qgen huggingface.co
mt5-small-qgen huggingface.co is an AI model on huggingface.co that provides mt5-small-qgen's model effect (), which can be used instantly with this nbroad mt5-small-qgen model. huggingface.co supports a free trial of the mt5-small-qgen model, and also provides paid use of the mt5-small-qgen. Support call mt5-small-qgen model through api, including Node.js, Python, http.
mt5-small-qgen huggingface.co is an online trial and call api platform, which integrates mt5-small-qgen's modeling effects, including api services, and provides a free online trial of mt5-small-qgen, you can try mt5-small-qgen online for free by clicking the link below.
nbroad mt5-small-qgen online free url in huggingface.co:
mt5-small-qgen is an open source model from GitHub that offers a free installation service, and any user can find mt5-small-qgen on GitHub to install. At the same time, huggingface.co provides the effect of mt5-small-qgen install, users can directly use mt5-small-qgen installed effect in huggingface.co for debugging and trial. It also supports api for free installation.