Translation
Transformers
Safetensors
t5
text2text-generation
Generated from Trainer
text-generation-inference
Instructions to use Yagofue/translation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yagofue/translation 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="Yagofue/translation")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Yagofue/translation") model = AutoModelForSeq2SeqLM.from_pretrained("Yagofue/translation") - Notebooks
- Google Colab
- Kaggle
Training complete
Browse files- README.md +64 -0
- generation_config.json +2 -5
README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: google/flan-t5-small
|
| 5 |
+
tags:
|
| 6 |
+
- translation
|
| 7 |
+
- generated_from_trainer
|
| 8 |
+
metrics:
|
| 9 |
+
- bleu
|
| 10 |
+
model-index:
|
| 11 |
+
- name: translation
|
| 12 |
+
results: []
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 16 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 17 |
+
|
| 18 |
+
# translation
|
| 19 |
+
|
| 20 |
+
This model is a fine-tuned version of [google/flan-t5-small](https://huggingface.co/google/flan-t5-small) on an unknown dataset.
|
| 21 |
+
It achieves the following results on the evaluation set:
|
| 22 |
+
- Loss: 1.7151
|
| 23 |
+
- Bleu: 5.405
|
| 24 |
+
- Gen Len: 17.5745
|
| 25 |
+
|
| 26 |
+
## Model description
|
| 27 |
+
|
| 28 |
+
More information needed
|
| 29 |
+
|
| 30 |
+
## Intended uses & limitations
|
| 31 |
+
|
| 32 |
+
More information needed
|
| 33 |
+
|
| 34 |
+
## Training and evaluation data
|
| 35 |
+
|
| 36 |
+
More information needed
|
| 37 |
+
|
| 38 |
+
## Training procedure
|
| 39 |
+
|
| 40 |
+
### Training hyperparameters
|
| 41 |
+
|
| 42 |
+
The following hyperparameters were used during training:
|
| 43 |
+
- learning_rate: 5.6e-05
|
| 44 |
+
- train_batch_size: 64
|
| 45 |
+
- eval_batch_size: 32
|
| 46 |
+
- seed: 42
|
| 47 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 48 |
+
- lr_scheduler_type: linear
|
| 49 |
+
- num_epochs: 2
|
| 50 |
+
|
| 51 |
+
### Training results
|
| 52 |
+
|
| 53 |
+
| Training Loss | Epoch | Step | Validation Loss | Bleu | Gen Len |
|
| 54 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|:-------:|
|
| 55 |
+
| 2.2976 | 1.0 | 782 | 1.7362 | 5.2548 | 17.596 |
|
| 56 |
+
| 2.0545 | 2.0 | 1564 | 1.7151 | 5.405 | 17.5745 |
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
### Framework versions
|
| 60 |
+
|
| 61 |
+
- Transformers 4.47.0
|
| 62 |
+
- Pytorch 2.10.0+cu128
|
| 63 |
+
- Datasets 4.8.4
|
| 64 |
+
- Tokenizers 0.21.4
|
generation_config.json
CHANGED
|
@@ -1,9 +1,6 @@
|
|
| 1 |
{
|
| 2 |
-
"_from_model_config": true,
|
| 3 |
"decoder_start_token_id": 0,
|
| 4 |
-
"eos_token_id":
|
| 5 |
-
1
|
| 6 |
-
],
|
| 7 |
"pad_token_id": 0,
|
| 8 |
-
"transformers_version": "
|
| 9 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"decoder_start_token_id": 0,
|
| 3 |
+
"eos_token_id": 1,
|
|
|
|
|
|
|
| 4 |
"pad_token_id": 0,
|
| 5 |
+
"transformers_version": "4.47.0"
|
| 6 |
}
|