Instructions to use yophis/DRM-DeBERTa-v3-Base-wikiqa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yophis/DRM-DeBERTa-v3-Base-wikiqa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="yophis/DRM-DeBERTa-v3-Base-wikiqa")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("yophis/DRM-DeBERTa-v3-Base-wikiqa") model = AutoModelForSequenceClassification.from_pretrained("yophis/DRM-DeBERTa-v3-Base-wikiqa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,941 Bytes
1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e 1080489 110c77e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | ---
library_name: transformers
datasets:
- microsoft/wiki_qa
base_model:
- microsoft/deberta-v3-base
pipeline_tag: text-classification
---
# DRM-DeBERTa-v3-Base-wikiqa
This model is a fine-tuned version of `microsoft/deberta-v3-base` trained on the WikiQA dataset.
This model is a part of the artifact release for the research paper: **Decom-Renorm-Merge: Model Merging on the Right Space Improves Multitasking**.
**Paper:** [https://arxiv.org/abs/2505.23117](https://arxiv.org/abs/2505.23117) \
**Repository:** [https://github.com/yophis/decom-renorm-merge](https://github.com/yophis/decom-renorm-merge)
## Uses
The model can be loaded as follows:
```python
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model_id = "yophis/DRM-DeBERTa-v3-Base-wikiqa"
# Load the tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_id)
tokenizer.pad_token = tokenizer.eos_token
# Load the model
model = AutoModelForSequenceClassification.from_pretrained(model_id, device_map="auto")
model.config.pad_token_id = model.config.eos_token_id
# Input template
input_text = "Question: {question} Context: {answer}"
```
## Training Details
### Training Data
We finetune the model on [WikiQA](https://huggingface.co/datasets/microsoft/wiki_qa) dataset.
## Training Hyperparameters
- **Learning Rate:** 1e-4
- **Weight Decay:** 0.0
- **Training Steps:** 50000
- **Batch Size:** 1024
- **Precision:** bf16 mixed precision
## Citation
If you find this model useful, please consider citing our paper:
```bibtex
@article{chaichana2025decom,
title={Decom-Renorm-Merge: Model Merging on the Right Space Improves Multitasking},
author={Chaichana, Yuatyong and Trachu, Thanapat and Limkonchotiwat, Peerat and Preechakul, Konpat and Khandhawit, Tirasan and Chuangsuwanich, Ekapol},
journal={arXiv preprint arXiv:2505.23117},
year={2025}
}
```
Please also cite WikiQA and the original DeBERTa model. |