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
File size: 888 Bytes
24dfbbd | 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 | {
"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>"
}
|