Instructions to use arielb30/opus-mt-de-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arielb30/opus-mt-de-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="arielb30/opus-mt-de-en")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("arielb30/opus-mt-de-en") model = AutoModelForSeq2SeqLM.from_pretrained("arielb30/opus-mt-de-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
opus-mt-de-en
This model was trained from scratch on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 1.3508
- Model Preparation Time: 0.0033
- Bleu: 32.2542
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: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 2
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Model Preparation Time | Bleu |
|---|---|---|---|---|---|
| 1.8845 | 1.0 | 15625 | 1.4613 | 0.0033 | 31.1441 |
| 1.8169 | 2.0 | 31250 | 1.4607 | 0.0033 | 30.8150 |
Framework versions
- Transformers 4.51.3
- Pytorch 2.6.0+cu124
- Datasets 3.5.0
- Tokenizers 0.21.1
- Downloads last month
- 8