Instructions to use kabelomalapane/En-Af with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kabelomalapane/En-Af 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="kabelomalapane/En-Af")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("kabelomalapane/En-Af") model = AutoModelForSeq2SeqLM.from_pretrained("kabelomalapane/En-Af") - Notebooks
- Google Colab
- Kaggle
| license: apache-2.0 | |
| tags: | |
| - translation | |
| - generated_from_trainer | |
| metrics: | |
| - bleu | |
| model-index: | |
| - name: En-Af | |
| results: [] | |
| <!-- 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. --> | |
| # En-Af | |
| This model is a fine-tuned version of [Helsinki-NLP/opus-mt-en-af](https://huggingface.co/Helsinki-NLP/opus-mt-en-af) on the None dataset. | |
| It achieves the following results on the evaluation set: | |
| Before training: | |
| - 'eval_bleu': 35.055184951449 | |
| - 'eval_loss': 2.225693941116333 | |
| After training: | |
| - Loss: 2.0057 | |
| - Bleu: 44.2309 | |
| ## 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: 32 | |
| - eval_batch_size: 64 | |
| - seed: 42 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - num_epochs: 20 | |
| ### Training results | |
| ### Framework versions | |
| - Transformers 4.19.2 | |
| - Pytorch 1.11.0+cu113 | |
| - Datasets 2.2.2 | |
| - Tokenizers 0.12.1 | |