atsuki-yamaguchi
commited on
Commit
•
8bd02cb
1
Parent(s):
289db69
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
license: llama2
|
4 |
+
language:
|
5 |
+
- te
|
6 |
+
base_model: meta-llama/Llama-2-7b-hf
|
7 |
+
library_name: transformers
|
8 |
+
---
|
9 |
+
# Llama2 7B for Telugu: 100 target vocabulary size + Align target vocabulary initialization + 2 Stage/MTP training
|
10 |
+
|
11 |
+
This model is built on top of Llama2 7B adapted for Telugu using 30K target language sentences sampled from CC-100.
|
12 |
+
|
13 |
+
## Model Details
|
14 |
+
|
15 |
+
* **Vocabulary**: This model has an additional 100 target vocabulary.
|
16 |
+
* **Target vocabulary initialization**: The target weights of the embedding and LM head were initialized using Align initialization.
|
17 |
+
* **Training**: This model was additionally pre-trained on 30K target language sentences sampled from CC-100. The training was conducted with the 2 Stage/MTP strategies introduced in the paper.
|
18 |
+
|
19 |
+
## Model Description
|
20 |
+
|
21 |
+
- **Language:** Telugu
|
22 |
+
- **License:** Llama 2 Community License Agreement
|
23 |
+
- **Fine-tuned from model:** meta-llama/Llama-2-7b-hf
|
24 |
+
|
25 |
+
|
26 |
+
## Model Sources
|
27 |
+
|
28 |
+
- **Repository:** https://github.com/gucci-j/lowres-cve
|
29 |
+
- **Paper:** https://arxiv.org/abs/2406.11477
|
30 |
+
|
31 |
+
## How to Get Started with the Model
|
32 |
+
Use the code below to get started with the model.
|
33 |
+
```python
|
34 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
35 |
+
|
36 |
+
model = AutoModelForCausalLM.from_pretrained(
|
37 |
+
"atsuki-yamaguchi/Llama-2-7b-hf-te-30K-align-2stage-mtp"
|
38 |
+
)
|
39 |
+
tokenizer = AutoTokenizer.from_pretrained(
|
40 |
+
"atsuki-yamaguchi/Llama-2-7b-hf-te-30K-align-2stage-mtp"
|
41 |
+
)
|
42 |
+
```
|
43 |
+
|
44 |
+
|