Translation
Transformers
TensorBoard
Safetensors
marian
text2text-generation
Generated from Trainer
Eval Results (legacy)
Instructions to use e1879/marian-finetuned-kde4-en-to-zh-tw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use e1879/marian-finetuned-kde4-en-to-zh-tw 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="e1879/marian-finetuned-kde4-en-to-zh-tw")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("e1879/marian-finetuned-kde4-en-to-zh-tw") model = AutoModelForSeq2SeqLM.from_pretrained("e1879/marian-finetuned-kde4-en-to-zh-tw") - Notebooks
- Google Colab
- Kaggle
| license: apache-2.0 | |
| base_model: Helsinki-NLP/opus-mt-en-zh | |
| tags: | |
| - translation | |
| - generated_from_trainer | |
| datasets: | |
| - kde4 | |
| metrics: | |
| - bleu | |
| model-index: | |
| - name: marian-finetuned-kde4-en-to-zh-tw | |
| results: | |
| - task: | |
| name: Sequence-to-sequence Language Modeling | |
| type: text2text-generation | |
| dataset: | |
| name: kde4 | |
| type: kde4 | |
| config: en-zh_TW | |
| split: train | |
| args: en-zh_TW | |
| metrics: | |
| - name: Bleu | |
| type: bleu | |
| value: 40.065781493415884 | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/e1805/huggingface/runs/nee38wft) | |
| # marian-finetuned-kde4-en-to-zh-tw | |
| This model is a fine-tuned version of [Helsinki-NLP/opus-mt-en-zh](https://huggingface.co/Helsinki-NLP/opus-mt-en-zh) on the kde4 dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 0.9680 | |
| - Bleu: 40.0658 | |
| ## Model description | |
| More information needed | |
| ## Intended uses & limitations | |
| More information needed | |
| ## Training and evaluation data | |
| More information needed | |
| ## Training procedure | |
| ### Training hyperparameters | |
| The following hyperparameters were used during training: | |
| - learning_rate: 2e-05 | |
| - train_batch_size: 16 | |
| - eval_batch_size: 32 | |
| - seed: 42 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - num_epochs: 3 | |
| - mixed_precision_training: Native AMP | |
| ### Training results | |
| ### Framework versions | |
| - Transformers 4.42.4 | |
| - Pytorch 2.0.1+cu117 | |
| - Datasets 2.15.0 | |
| - Tokenizers 0.19.1 | |