Transformers
PyTorch
Safetensors
English
t5
text2text-generation
sentence correction
text-generation-inference
Run this model with HF Jobs
Run KES/T5-KES on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/KES/T5-KES. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/KES/T5-KES on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use KES/T5-KES with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KES/T5-KES with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("KES/T5-KES") model = AutoModelForSeq2SeqLM.from_pretrained("KES/T5-KES", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files16 unmodified lines1718192021222323 unmodified lines4748495016 unmodified lines---# ModelThis model utilises T5-base sentence correction pre-trained model. It was fine tuned using a modified version of the [JFLEG](https://arxiv.org/abs/1702.04066) dataset and [Happy Transformer framework](https://github.com/EricFillion/happy-transformer). This model was pre-trained for educational purposes only for correction on local caribbean dialect..___23 unmodified linesprint(correction.text) # Correction: "What is your name?".```16 unmodified lines1718192021222323 unmodified lines47484950515253545556575859606162636465666768697016 unmodified lines---# ModelThis model utilises T5-base sentence correction pre-trained model. It was fine tuned using a modified version of the [JFLEG](https://arxiv.org/abs/1702.04066) dataset and [Happy Transformer framework](https://github.com/EricFillion/happy-transformer). This model was pre-trained for educational purposes only for correction on local Caribbean dialect. For more on Caribbean dialect checkout the library [Caribe](https://pypi.org/project/Caribe/)..___23 unmodified linesprint(correction.text) # Correction: "What is your name?".```_# Usage with Transformers```pythonfrom transformers import AutoTokenizer, AutoModelForSeq2SeqLMtokenizer = AutoTokenizer.from_pretrained("KES/T5-KES")model = AutoModelForSeq2SeqLM.from_pretrained("KES/T5-KES")text = "I am lived with my parenmts "inputs = tokenizer("grammar:"+text, truncation=True, return_tensors='pt')output = model.generate(inputs['input_ids'], num_beams=4, max_length=512, early_stopping=True)correction=tokenizer.batch_decode(output, skip_special_tokens=True)print("".join(correction)) #Correction: I am living with my parents.```
README.md+22-2