mutiyama/alt
Viewer • Updated • 290k • 2.62k • 21
How to use Darayut/byt5-base-khm-en 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="Darayut/byt5-base-khm-en") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Darayut/byt5-base-khm-en")
model = AutoModelForSeq2SeqLM.from_pretrained("Darayut/byt5-base-khm-en")This model is a fine-tuned version of google/byt5-base on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Bleu | Gen Len |
|---|---|---|---|---|---|
| 0.8053 | 1.0 | 1333 | 0.9467 | 3.0623 | 34.1781 |
| 0.6026 | 2.0 | 2666 | 0.7041 | 12.6402 | 26.6596 |
| 0.4719 | 3.0 | 3999 | 0.5933 | 17.5698 | 24.2143 |
| 0.4029 | 4.0 | 5332 | 0.5593 | 22.9685 | 24.0115 |
| 0.3404 | 5.0 | 6665 | 0.5602 | 26.8820 | 23.5353 |
| 0.5988 | 6.0 | 7998 | 0.5456 | 17.1649 | 78.2938 |
| 0.4947 | 7.0 | 9331 | 0.4823 | 20.9237 | 81.6542 |
| 0.4402 | 8.0 | 10664 | 0.4455 | 25.0764 | 75.5452 |
The evaluation is done on the Tatoeba and Asian Language Treebank (ALT) dataset.
| Metrics | Value |
|---|---|
| BLEU | 25.08 |
| chrF | 50.05 |
| BERTScore F1 | 0.9356 |
Base model
google/byt5-base