Instructions to use MiVaCod/mbart-neutralization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MiVaCod/mbart-neutralization with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("MiVaCod/mbart-neutralization") model = AutoModelForSeq2SeqLM.from_pretrained("MiVaCod/mbart-neutralization", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| license: mit | |
| base_model: facebook/mbart-large-50 | |
| tags: | |
| - reformulation | |
| - generated_from_trainer | |
| metrics: | |
| - bleu | |
| model-index: | |
| - name: mbart-neutralization | |
| 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. --> | |
| # mbart-neutralization | |
| This model is a fine-tuned version of [facebook/mbart-large-50](https://huggingface.co/facebook/mbart-large-50) on an unknown dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 3.0459 | |
| - Bleu: 8.565 | |
| - Gen Len: 20.9268 | |
| ## 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: 5.6e-05 | |
| - train_batch_size: 8 | |
| - eval_batch_size: 8 | |
| - seed: 42 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - num_epochs: 2 | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | Bleu | Gen Len | | |
| |:-------------:|:-----:|:----:|:---------------:|:------:|:-------:| | |
| | No log | 1.0 | 16 | 3.7800 | 7.2466 | 18.8049 | | |
| | No log | 2.0 | 32 | 3.0459 | 8.565 | 20.9268 | | |
| ### Framework versions | |
| - Transformers 4.40.2 | |
| - Pytorch 2.2.1+cu121 | |
| - Datasets 2.19.1 | |
| - Tokenizers 0.19.1 | |