Translation
Transformers
PyTorch
Safetensors
English
Vietnamese
t5
text2text-generation
en-vi
vi-en
text-generation-inference
Instructions to use gozu888/Envit5-tuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gozu888/Envit5-tuned 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="gozu888/Envit5-tuned")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("gozu888/Envit5-tuned") model = AutoModelForSeq2SeqLM.from_pretrained("gozu888/Envit5-tuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload tokenizer
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
|
@@ -52,7 +52,7 @@
|
|
| 52 |
"eos_token": "</s>",
|
| 53 |
"extra_ids": 48,
|
| 54 |
"model_max_length": 1000000000000000019884624838656,
|
| 55 |
-
"name_or_path": "./trained/
|
| 56 |
"pad_token": "<pad>",
|
| 57 |
"sp_model_kwargs": {},
|
| 58 |
"special_tokens_map_file": "/root/.cache/huggingface/hub/models--VietAI--envit5-translation/snapshots/840bc88104d5a4277af740eaedb024df8c3093e7/special_tokens_map.json",
|
|
|
|
| 52 |
"eos_token": "</s>",
|
| 53 |
"extra_ids": 48,
|
| 54 |
"model_max_length": 1000000000000000019884624838656,
|
| 55 |
+
"name_or_path": "./trained/transx",
|
| 56 |
"pad_token": "<pad>",
|
| 57 |
"sp_model_kwargs": {},
|
| 58 |
"special_tokens_map_file": "/root/.cache/huggingface/hub/models--VietAI--envit5-translation/snapshots/840bc88104d5a4277af740eaedb024df8c3093e7/special_tokens_map.json",
|