Instructions to use shehryaraijaz/m2m100-legal-translation-en-ur with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shehryaraijaz/m2m100-legal-translation-en-ur with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("shehryaraijaz/m2m100-legal-translation-en-ur") model = AutoModelForSeq2SeqLM.from_pretrained("shehryaraijaz/m2m100-legal-translation-en-ur", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 2,667 Bytes
49360db | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | ---
library_name: transformers
license: mit
base_model: facebook/m2m100_418M
tags:
- generated_from_trainer
metrics:
- bleu
model-index:
- name: m2m100-legal-translation-en-ur
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. -->
# m2m100-legal-translation-en-ur
This model is a fine-tuned version of [facebook/m2m100_418M](https://huggingface.co/facebook/m2m100_418M) on the None dataset.
It achieves the following results on the evaluation set:
- Loss: 0.2290
- Bleu: 30.9872
## 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: 3e-05
- train_batch_size: 4
- eval_batch_size: 4
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 16
- 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
- lr_scheduler_warmup_steps: 20
- num_epochs: 5
- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss | Bleu |
|:-------------:|:------:|:----:|:---------------:|:-------:|
| 8.278 | 0.2688 | 25 | 6.3522 | 3.5831 |
| 5.3323 | 0.5376 | 50 | 4.9369 | 9.8940 |
| 4.3888 | 0.8065 | 75 | 3.7497 | 12.2129 |
| 3.0058 | 1.0753 | 100 | 2.6821 | 15.0216 |
| 2.2164 | 1.3441 | 125 | 1.7722 | 16.6899 |
| 1.2595 | 1.6129 | 150 | 1.0978 | 18.5312 |
| 0.8531 | 1.8817 | 175 | 0.7009 | 19.6160 |
| 0.579 | 2.1505 | 200 | 0.4962 | 21.4995 |
| 0.4599 | 2.4194 | 225 | 0.4073 | 22.5162 |
| 0.3362 | 2.6882 | 250 | 0.3502 | 23.5743 |
| 0.353 | 2.9570 | 275 | 0.3122 | 25.6336 |
| 0.313 | 3.2258 | 300 | 0.2887 | 27.3754 |
| 0.3446 | 3.4946 | 325 | 0.2702 | 28.0800 |
| 0.3345 | 3.7634 | 350 | 0.2541 | 29.5058 |
| 0.2018 | 4.0323 | 375 | 0.2439 | 30.0331 |
| 0.2381 | 4.3011 | 400 | 0.2360 | 30.5859 |
| 0.1609 | 4.5699 | 425 | 0.2315 | 30.8617 |
| 0.2169 | 4.8387 | 450 | 0.2290 | 30.9872 |
### Framework versions
- Transformers 4.51.1
- Pytorch 2.5.1+cu124
- Datasets 3.5.0
- Tokenizers 0.21.0
|