Instructions to use aaurelions/t5-grammar-corrector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aaurelions/t5-grammar-corrector with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("aaurelions/t5-grammar-corrector") model = AutoModelForSeq2SeqLM.from_pretrained("aaurelions/t5-grammar-corrector", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| # Configuration for Cog ⚙️ | |
| # Reference: https://cog.run/yaml | |
| build: | |
| # Set to true if your model requires a GPU | |
| gpu: false | |
| # Python version in the form '3.11' or '3.11.4' | |
| python_version: "3.11" | |
| # A list of packages in the format <package-name>==<version> | |
| python_packages: | |
| - "transformers==4.48.2" | |
| - "datasets==3.2.0" | |
| - "torch==2.5.1" | |
| - "accelerate==1.3.0" | |
| - "sentencepiece==0.2.0" | |
| # predict.py defines how predictions are run on your model | |
| predict: "predict.py:Predictor" | |