File size: 1,966 Bytes
e4c58f8
 
8f6f2a5
 
 
 
 
e4c58f8
 
8f6f2a5
e4c58f8
8f6f2a5
e4c58f8
8f6f2a5
e4c58f8
8f6f2a5
 
e4c58f8
 
 
 
8f6f2a5
e4c58f8
8f6f2a5
 
 
e4c58f8
8f6f2a5
e4c58f8
8f6f2a5
 
 
e4c58f8
8f6f2a5
 
 
e4c58f8
8f6f2a5
 
 
e4c58f8
 
 
 
 
 
8f6f2a5
e4c58f8
8f6f2a5
e4c58f8
8f6f2a5
 
 
 
 
e4c58f8
8f6f2a5
e4c58f8
8f6f2a5
e4c58f8
8f6f2a5
 
 
 
 
 
 
 
e4c58f8
8f6f2a5
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:
- LSDSem/story_cloze
base_model:
- google-t5/t5-large
pipeline_tag: text-classification
---

# DRM-T5-Large-storycloze

This model is a fine-tuned version of `google-t5/t5-large` trained on the StoryCloze 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-T5-Large-storycloze"

# 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 = "Story continuation choices: (A) {choice1} (B) {choice2} Story: {sentences}"
```


## Training Details

### Training Data

We finetune the model on [StoryCloze](https://huggingface.co/datasets/LSDSem/story_cloze) 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 StoryCloze and the original T5 model.