Instructions to use gwoo123/grammar-corrector-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gwoo123/grammar-corrector-en with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("gwoo123/grammar-corrector-en") model = AutoModelForSeq2SeqLM.from_pretrained("gwoo123/grammar-corrector-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
grammar-corrector-en
This model is a fine-tuned version of t5-base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.4468
- Gleu: 0.6663
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0003
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 32
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 500
- num_epochs: 3
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Gleu |
|---|---|---|---|---|
| 1.2260 | 0.3119 | 2000 | 0.5382 | 0.6293 |
| 1.0407 | 0.6238 | 4000 | 0.4580 | 0.6547 |
| 0.9399 | 0.9357 | 6000 | 0.4017 | 0.6725 |
| 1.0348 | 1.2477 | 8000 | 0.4422 | 0.6658 |
| 1.0345 | 1.5596 | 10000 | 0.4472 | 0.6662 |
| 1.0406 | 1.8715 | 12000 | 0.4468 | 0.6663 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 7
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for gwoo123/grammar-corrector-en
Base model
google-t5/t5-base