Update README.md
Browse files
README.md
CHANGED
@@ -14,7 +14,7 @@ tags:
|
|
14 |
|
15 |
### Model description
|
16 |
|
17 |
-
This model is [`xglm-
|
18 |
|
19 |
|
20 |
### How to use
|
@@ -25,10 +25,10 @@ anh-xglm-7b model can be loaded and used via the following code:
|
|
25 |
import re
|
26 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
27 |
model = AutoModelForCausalLM.from_pretrained(
|
28 |
-
"laion/anh-xglm-
|
29 |
)
|
30 |
tokenizer = AutoTokenizer.from_pretrained(
|
31 |
-
"laion/anh-xglm-
|
32 |
)
|
33 |
whitespace_tokens_map = {'\n': '<n>', ' ': '<w>'}
|
34 |
text = "User: Apa yang terjadi pada pertempuran Cannae? Jawab dalam bahasa China.\n"
|
|
|
14 |
|
15 |
### Model description
|
16 |
|
17 |
+
This model is [`xglm-7.5b`](https://huggingface.co/facebook/xglm-7.5B) model finetuned on instruct dataset `cross_lingual.jsonl` from [`laion/Anh`](https://huggingface.co/datasets/laion/Anh).
|
18 |
|
19 |
|
20 |
### How to use
|
|
|
25 |
import re
|
26 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
27 |
model = AutoModelForCausalLM.from_pretrained(
|
28 |
+
"laion/anh-xglm-7.5b-cross-lingual",
|
29 |
)
|
30 |
tokenizer = AutoTokenizer.from_pretrained(
|
31 |
+
"laion/anh-xglm-7.5b-cross-lingual",
|
32 |
)
|
33 |
whitespace_tokens_map = {'\n': '<n>', ' ': '<w>'}
|
34 |
text = "User: Apa yang terjadi pada pertempuran Cannae? Jawab dalam bahasa China.\n"
|