Downloads · 30 days
21
24% of all-time downloads
chiawen0104/mt5-drcd-qa
mt5-drcd-qa is a text generation model from chiawen0104. Use it when you need the model to write or continue text. It is set up for transformers.
This model is a fine-tuned version of google/mt5-base on DRCD. It is served as a Traditional Chinese QA model.
Downloads · 30 days
21
24% of all-time downloads
All-time downloads
88
Public
Repo size
7 GB
Likes
1
Public
Click a slice to open those files.
.bin2.3 GB · 99%
From the Hugging Face model README
This model is a fine-tuned version of google/mt5-base on DRCD. It is served as a Traditional Chinese QA model.
Delta Reading Comprehension Dataset (DRCD)
The dataset's copyright belongs to 台達研究院(Delta Research Center)
Here is the quick example to run inference.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained('chiawen0104/mt5-drcd-qa')
model = AutoModelForSeq2SeqLM.from_pretrained('chiawen0104/mt5-drcd-qa')
input_text = "question: 新教的主教制度源自於哪一教? context: 主教制源自天主教的主教制度"
input = tokenizer.encode(input_text, return_tensors="pt")
output = model.generate(input)
output_text = tokenizer.decode(output[0], skip_special_tokens=True)
print(output_text)
天主教