Instructions to use Ro551/opus-mt-es-en-GEC-spanish-LORA-cowsl2h with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Ro551/opus-mt-es-en-GEC-spanish-LORA-cowsl2h with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-es-en") model = PeftModel.from_pretrained(base_model, "Ro551/opus-mt-es-en-GEC-spanish-LORA-cowsl2h") - Transformers
How to use Ro551/opus-mt-es-en-GEC-spanish-LORA-cowsl2h with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Ro551/opus-mt-es-en-GEC-spanish-LORA-cowsl2h", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "65000": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": null, | |
| "backend": "custom", | |
| "eos_token": "</s>", | |
| "extra_special_tokens": [], | |
| "is_local": true, | |
| "model_max_length": 512, | |
| "pad_token": "<pad>", | |
| "separate_vocabs": false, | |
| "source_lang": "spa", | |
| "sp_model_kwargs": {}, | |
| "target_lang": "eng", | |
| "tokenizer_class": "MarianTokenizer", | |
| "unk_token": "<unk>" | |
| } | |