File size: 1,761 Bytes
153a2f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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

---
license: apache-2.0
datasets:
- allenai/MADLAD-400
language:
- ta
base_model:
- Qwen/Qwen2.5-7B-Instruct
library_name: transformers
---
# Qwen2.5 7B Instruct for Tamil: Vocabulary expansion

This model is built on top of Qwen2.5 7B Instruct adapted for Tamil using 500M target language tokens sampled from MADLAD-400. It has an additional target vocabulary of 10K.

## Model Details

* **Vocabulary**: This model has an additional target vocabulary of 10K.
* **Target vocabulary initialization**: The target weights of the embedding and LM head were initialized using mean initialization.
* **Training**: This model was continually pre-trained on 500M target language tokens sampled from MADLAD-400.


## Model Description

- **Language:** Tamil
- **License:** Apache 2.0
- **Fine-tuned from model:** Qwen/Qwen2.5-7B-Instruct


## Model Sources

- **Repository:** https://github.com/gucci-j/chat-cve
- **Paper:** https://arxiv.org/abs/2412.11704


## How to Get Started with the Model
Use the code below to get started with the model.
```python
from transformers import AutoTokenizer, AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained(
    "atsuki-yamaguchi/Qwen2.5-7B-Instruct-ta-madlad-mean-tuned"
)
tokenizer = AutoTokenizer.from_pretrained(
    "atsuki-yamaguchi/Qwen2.5-7B-Instruct-ta-madlad-mean-tuned"
)
```


## Citation
```
@misc{yamaguchi2024vocabularyexpansionchatmodels,
      title={{ElChat}: Adapting Chat Language Models Using Only Target Unlabeled Language Data}, 
      author={Atsuki Yamaguchi and Terufumi Morishita and Aline Villavicencio and Nikolaos Aletras},
      year={2024},
      eprint={2412.11704},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2412.11704},
}
```