Downloads · 30 days
9
1% of all-time downloads
primasr/malaybert-for-eqa-finetuned
malaybert-for-eqa-finetuned is a question answering model from primasr. Use it when the input is a question plus a passage. It is set up for transformers.
This model is an experiment I and my friend did as a researcher internship at the National University of Singapore (NUS). We finetuned the model to our datasets in Finance and Healthcare domain, in the Malay Language.
Downloads · 30 days
9
1% of all-time downloads
All-time downloads
1.1K
Public
Repo size
880 MB
Likes
2
Public
Click a slice to open those files.
.bin440 MB · 100%
From the Hugging Face model README
This model is an experiment I and my friend did as a researcher internship at the National University of Singapore (NUS). We finetuned the model to our datasets in Finance and Healthcare domain, in the Malay Language.
from transformers import TrainingArguments
training_args = TrainingArguments(
output_dir='test_trainer',
evaluation_strategy='epoch',
num_train_epochs=20,
optim='adamw_torch',
report_to='all',
logging_steps=1,
)
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
model_name = "primasr/malaybert-for-eqa-finetuned"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForQuestionAnswering.from_pretrained(model_name)
nlp = pipeline("question-answering", model=model, tokenizer=tokenizer)