Downloads · 30 days
14
37% of all-time downloads
Arailym-tleubayeva/RoBERTa-large-KazQAD-Informatics-fp16-lora
RoBERTa-large-KazQAD-Informatics-fp16-lora is a question answering model from Arailym-tleubayeva. Use it when the input is a question plus a passage. It is set up for peft. The card lists the license as apache-2.0.
The KazRoBERTa-Large KazQAD model is an optimized variant of the RoBERTa model, specifically fine-tuned and adapted for question-answering tasks in the Kazakh language using the KazQAD dataset.
Downloads · 30 days
14
37% of all-time downloads
All-time downloads
38
Public
Repo size
4.7 MB
Likes
0
Public
Click a slice to open those files.
.safetensors4.7 MB · 100%
From the Hugging Face model README
The KazRoBERTa-Large KazQAD model is an optimized variant of the RoBERTa model, specifically fine-tuned and adapted for question-answering tasks in the Kazakh language using the KazQAD dataset.
The model is designed to perform efficiently on question-answering tasks in Kazakh, demonstrating substantial improvements in metrics after fine-tuning and adaptation using LoRA.
import torch
from peft import PeftModel, PeftConfig
from transformers import AutoModelForQuestionAnswering, AutoTokenizer
device = torch.device("cuda")
peft_model_id = "Arailym-tleubayeva/RoBERTa-large-KazQAD-Informatics-fp16-lora"
base_model = AutoModelForQuestionAnswering.from_pretrained("nur-dev/roberta-large-kazqad").to(device)
tokenizer = AutoTokenizer.from_pretrained("nur-dev/roberta-large-kazqad")
model = PeftModel.from_pretrained(base_model, peft_model_id)
The model can directly answer questions posed in Kazakh, suitable for deployment in various NLP applications and platforms focused on Kazakh language understanding.
Ideal for integration into larger applications, chatbots, and information retrieval systems for enhanced user interaction in Kazakh.
Not recommended for:
Tasks involving languages other than Kazakh without further adaptation.
Critical decision-making systems without additional verification processes.
Potential biases may arise from the underlying training data sources.
Model accuracy may degrade when handling ambiguous or complex queries outside the training domain.
Users should consider additional fine-tuning or bias mitigation strategies when deploying the model in sensitive contexts.
The evaluation of the model demonstrated significant improvements after fine-tuning and applying LoRA. The base model, before any modifications, showed an Exact Match (EM) score of 17.92% and an F1-score of 31.57%. These low scores indicate that the model had difficulty correctly identifying precise answers in its initial state.
After fine-tuning on the KazQAD dataset, the model's performance improved dramatically, with the EM score rising to 56.69% and the F1-score increasing to 69.70%. This represents a substantial increase of 316.2% in EM and 220.8% in F1-score, confirming that fine-tuning significantly enhances the model's ability to process and understand Kazakh-language questions accurately.
With the application of the LoRA adapter in a mixed precision (FP16) setup, the model maintained a strong improvement over the base version while being computationally more efficient. The LoRA-adapted model achieved an EM score of 37.79% and an F1-score of 56.07%, marking a 210.9% increase in EM and a 177.6% increase in F1-score compared to the original model. This adaptation allows for a balance between performance and resource efficiency, making it a viable option when computational constraints are a concern.
RoBERTa architecture optimized via fine-tuning and LoRA.
GPU-based training infrastructure
PEFT 0.14.0
Detailed citation information will be added later.
Tleubayeva Arailym
Saparbek Makhambet
Bassanova Nurgul
Shomanov Aday