Instructions to use obokkkk/mt5-base_2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use obokkkk/mt5-base_2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("obokkkk/mt5-base_2") model = AutoModelForSeq2SeqLM.from_pretrained("obokkkk/mt5-base_2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from obokkkk/mt5-base_2: direct link, hf CLI and curl.
- Browser
- Download file 1.67 kB
-
https://huggingface.co/obokkkk/mt5-base_2/resolve/main/README.md
- Command line
-
hf download hf://obokkkk/mt5-base_2/README.md
-
curl -L -o README.md https://huggingface.co/obokkkk/mt5-base_2/resolve/main/README.md
1.67 kB
| tags: | |
| - generated_from_trainer | |
| metrics: | |
| - bleu | |
| model-index: | |
| - name: mt5-base_2 | |
| 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. --> | |
| # mt5-base_2 | |
| This model is a fine-tuned version of [obokkkk/mt5-base](https://huggingface.co/obokkkk/mt5-base) on the None dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 1.1742 | |
| - Bleu: 9.479 | |
| - Gen Len: 16.9226 | |
| ## 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: 0.0001 | |
| - train_batch_size: 8 | |
| - eval_batch_size: 8 | |
| - seed: 42 | |
| - gradient_accumulation_steps: 256 | |
| - total_train_batch_size: 2048 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - num_epochs: 5 | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | Bleu | Gen Len | | |
| |:-------------:|:-----:|:----:|:---------------:|:------:|:-------:| | |
| | No log | 1.0 | 183 | 1.1834 | 9.3761 | 16.9129 | | |
| | No log | 2.0 | 366 | 1.1791 | 9.422 | 16.9334 | | |
| | 1.3969 | 3.0 | 549 | 1.1764 | 9.4432 | 16.9082 | | |
| | 1.3969 | 4.0 | 732 | 1.1749 | 9.461 | 16.9157 | | |
| | 1.3969 | 5.0 | 915 | 1.1742 | 9.479 | 16.9226 | | |
| ### Framework versions | |
| - Transformers 4.18.0 | |
| - Pytorch 1.11.0+cu113 | |
| - Datasets 2.1.0 | |
| - Tokenizers 0.12.1 | |