Instructions to use kabelomalapane/Ts-En_update with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kabelomalapane/Ts-En_update with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="kabelomalapane/Ts-En_update")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("kabelomalapane/Ts-En_update") model = AutoModelForSeq2SeqLM.from_pretrained("kabelomalapane/Ts-En_update") - Notebooks
- Google Colab
- Kaggle
Kabelo Malapane commited on
Commit ·
5283460
1
Parent(s): 153043d
Upload special_tokens_map.json
Browse files- special_tokens_map.json +5 -0
special_tokens_map.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"eos_token": "</s>",
|
| 3 |
+
"pad_token": "<pad>",
|
| 4 |
+
"unk_token": "<unk>"
|
| 5 |
+
}
|