Instructions to use Ro551/mt5-small-GEC-spanish-cowsl2h with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ro551/mt5-small-GEC-spanish-cowsl2h with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Ro551/mt5-small-GEC-spanish-cowsl2h") model = AutoModelForSeq2SeqLM.from_pretrained("Ro551/mt5-small-GEC-spanish-cowsl2h", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from Ro551/mt5-small-GEC-spanish-cowsl2h: direct link, hf CLI and curl.
- Browser
- Download file 907 Bytes
-
https://huggingface.co/Ro551/mt5-small-GEC-spanish-cowsl2h/resolve/36a66a6b8cdb644f24a6184f6f22631b03fba005/generation_config.json
- Command line
-
hf download hf://Ro551/mt5-small-GEC-spanish-cowsl2h@36a66a6b8cdb644f24a6184f6f22631b03fba005/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/Ro551/mt5-small-GEC-spanish-cowsl2h/resolve/36a66a6b8cdb644f24a6184f6f22631b03fba005/generation_config.json
907 Bytes
| { | |
| "_from_model_config": false, | |
| "assistant_confidence_threshold": 0.4, | |
| "assistant_lookbehind": 10, | |
| "decoder_start_token_id": 0, | |
| "diversity_penalty": 0.0, | |
| "do_sample": false, | |
| "early_stopping": false, | |
| "encoder_no_repeat_ngram_size": 0, | |
| "encoder_repetition_penalty": 1.0, | |
| "eos_token_id": [ | |
| 1 | |
| ], | |
| "epsilon_cutoff": 0.0, | |
| "eta_cutoff": 0.0, | |
| "length_penalty": 1.0, | |
| "max_length": 20, | |
| "min_length": 0, | |
| "no_repeat_ngram_size": 0, | |
| "num_assistant_tokens": 20, | |
| "num_assistant_tokens_schedule": "constant", | |
| "num_beam_groups": 1, | |
| "num_beams": 1, | |
| "num_return_sequences": 1, | |
| "output_scores": false, | |
| "pad_token_id": 0, | |
| "remove_invalid_values": false, | |
| "repetition_penalty": 1.0, | |
| "return_dict_in_generate": false, | |
| "target_lookbehind": 10, | |
| "temperature": 1.0, | |
| "top_k": 50, | |
| "top_p": 1.0, | |
| "transformers_version": "5.0.0", | |
| "typical_p": 1.0, | |
| "use_cache": true | |
| } | |