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 T5ForConditionalGeneration
Browse files- config.json +2 -2
- generation_config.json +7 -0
- pytorch_model.bin +1 -1
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "./outputs/simplet5-epoch-
|
| 3 |
"architectures": [
|
| 4 |
"T5ForConditionalGeneration"
|
| 5 |
],
|
|
@@ -25,7 +25,7 @@
|
|
| 25 |
"relative_attention_num_buckets": 32,
|
| 26 |
"tie_word_embeddings": false,
|
| 27 |
"torch_dtype": "float32",
|
| 28 |
-
"transformers_version": "4.
|
| 29 |
"use_cache": true,
|
| 30 |
"vocab_size": 50048
|
| 31 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "./outputs/simplet5-epoch-0-train-loss-0.1988-val-loss-1.3572/",
|
| 3 |
"architectures": [
|
| 4 |
"T5ForConditionalGeneration"
|
| 5 |
],
|
|
|
|
| 25 |
"relative_attention_num_buckets": 32,
|
| 26 |
"tie_word_embeddings": false,
|
| 27 |
"torch_dtype": "float32",
|
| 28 |
+
"transformers_version": "4.30.2",
|
| 29 |
"use_cache": true,
|
| 30 |
"vocab_size": 50048
|
| 31 |
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"decoder_start_token_id": 0,
|
| 4 |
+
"eos_token_id": 1,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "4.30.2"
|
| 7 |
+
}
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1100509365
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c64353121c49548b045aea5fe61f974832d04c8552a27adbcb5af318751849a
|
| 3 |
size 1100509365
|