Introduction of mt5-small-parsinlu-arc-comqa-obqa-multiple-choice
Model Details of mt5-small-parsinlu-arc-comqa-obqa-multiple-choice
Multiple-Choice Question Answering (مدل برای پاسخ به سوالات چهار جوابی)
This is a mT5-based model for multiple-choice question answering.
Here is an example of how you can run this model:
from transformers import MT5ForConditionalGeneration, MT5Tokenizer
model_size = "small"
model_name = f"persiannlp/mt5-{model_size}-parsinlu-arc-comqa-obqa-multiple-choice"
tokenizer = MT5Tokenizer.from_pretrained(model_name)
model = MT5ForConditionalGeneration.from_pretrained(model_name)
defrun_model(input_string, **generator_args):
input_ids = tokenizer.encode(input_string, return_tensors="pt")
res = model.generate(input_ids, **generator_args)
output = tokenizer.batch_decode(res, skip_special_tokens=True)
print(output)
return output
run_model("وسیع ترین کشور جهان کدام است؟ <sep> آمریکا <sep> کانادا <sep> روسیه <sep> چین")
run_model("طامع یعنی ؟ <sep> آزمند <sep> خوش شانس <sep> محتاج <sep> مطمئن")
run_model(
"زمینی به ۳۱ قطعه متساوی مفروض شده است و هر روز مساحت آماده شده برای احداث، دو برابر مساحت روز قبل است.اگر پس از (۵ روز) تمام زمین آماده شده باشد، در چه روزی یک قطعه زمین آماده شده <sep> روز اول <sep> روز دوم <sep> روز سوم <sep> هیچکدام")
mt5-small-parsinlu-arc-comqa-obqa-multiple-choice huggingface.co is an AI model on huggingface.co that provides mt5-small-parsinlu-arc-comqa-obqa-multiple-choice's model effect (), which can be used instantly with this persiannlp mt5-small-parsinlu-arc-comqa-obqa-multiple-choice model. huggingface.co supports a free trial of the mt5-small-parsinlu-arc-comqa-obqa-multiple-choice model, and also provides paid use of the mt5-small-parsinlu-arc-comqa-obqa-multiple-choice. Support call mt5-small-parsinlu-arc-comqa-obqa-multiple-choice model through api, including Node.js, Python, http.
mt5-small-parsinlu-arc-comqa-obqa-multiple-choice huggingface.co is an online trial and call api platform, which integrates mt5-small-parsinlu-arc-comqa-obqa-multiple-choice's modeling effects, including api services, and provides a free online trial of mt5-small-parsinlu-arc-comqa-obqa-multiple-choice, you can try mt5-small-parsinlu-arc-comqa-obqa-multiple-choice online for free by clicking the link below.
persiannlp mt5-small-parsinlu-arc-comqa-obqa-multiple-choice online free url in huggingface.co:
mt5-small-parsinlu-arc-comqa-obqa-multiple-choice is an open source model from GitHub that offers a free installation service, and any user can find mt5-small-parsinlu-arc-comqa-obqa-multiple-choice on GitHub to install. At the same time, huggingface.co provides the effect of mt5-small-parsinlu-arc-comqa-obqa-multiple-choice install, users can directly use mt5-small-parsinlu-arc-comqa-obqa-multiple-choice installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
mt5-small-parsinlu-arc-comqa-obqa-multiple-choice install url in huggingface.co: