Downloads · 30 days
6.1K
1% of all-time downloads
grammarly/coedit-large
coedit-large is a machine learning model from grammarly. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
This model was obtained by fine-tuning the corresponding google/flan-t5-large model on the CoEdIT dataset. Details of the dataset can be found in our paper and repository.
Downloads · 30 days
6.1K
1% of all-time downloads
All-time downloads
1M
Public
Parameters
783M
13.1 GB on disk
Likes
161
Public
Click a slice to open those files.
.bin3.1 GB · 50%
From the Hugging Face model README
This model was obtained by fine-tuning the corresponding google/flan-t5-large model on the CoEdIT dataset. Details of the dataset can be found in our paper and repository.
Paper: CoEdIT: Text Editing by Task-Specific Instruction Tuning
Authors: Vipul Raheja, Dhruv Kumar, Ryan Koo, Dongyeop Kang
We make available the models presented in our paper.
<table> <tr> <th>Model</th> <th>Number of parameters</th> </tr> <tr> <td>CoEdIT-large</td> <td>770M</td> </tr> <tr> <td>CoEdIT-xl</td> <td>3B</td> </tr> <tr> <td>CoEdIT-xxl</td> <td>11B</td> </tr> </table>Given an edit instruction and an original text, our model can generate the edited version of the text.<br>

from transformers import AutoTokenizer, T5ForConditionalGeneration
tokenizer = AutoTokenizer.from_pretrained("grammarly/coedit-large")
model = T5ForConditionalGeneration.from_pretrained("grammarly/coedit-large")
input_text = 'Fix grammatical errors in this sentence: When I grow up, I start to understand what he said is quite right.'
input_ids = tokenizer(input_text, return_tensors="pt").input_ids
outputs = model.generate(input_ids, max_length=256)
edited_text = tokenizer.decode(outputs[0], skip_special_tokens=True)
https://github.com/vipulraheja/coedit
BibTeX:
@article{raheja2023coedit,
title={CoEdIT: Text Editing by Task-Specific Instruction Tuning},
author={Vipul Raheja and Dhruv Kumar and Ryan Koo and Dongyeop Kang},
year={2023},
eprint={2305.09857},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
APA: Raheja, V., Kumar, D., Koo, R., & Kang, D. (2023). CoEdIT: Text Editing by Task-Specific Instruction Tuning. ArXiv. /abs/2305.09857