ONNX Model Zoo

Meyssa/coedit-large

By Meyssa · ↓ 0 · ♥ 0 · Updated 2025-12-29

What's in this repo

This page lists the files in Meyssa/coedit-large, including decoder_model_merged_quantized.onnx, encoder_model_quantized.onnx.

  • 2 ONNX models (.onnx files)
  • 11 files, including 7 .json, 2 .onnx, 1 .md
  • Last updated 2025-12-29

ONNX files

File Size Download
onnx/decoder_model_merged_quantized.onnx — Download
onnx/encoder_model_quantized.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

CoEdIT Large (ONNX)

ONNX quantized version of Grammarly's CoEdIT-Large model for browser-based text editing and grammatical error correction with Transformers.js.

Original Model

Conversion Details

  • Format: ONNX
  • Quantization: INT8 (dynamic quantization)
  • Size: ~780MB
  • Converted by: Optimum CLI

How It Works

CoEdIT is a text-to-text model fine-tuned for various editing tasks. For grammar correction, use the prompt format:

Fix grammatical errors: <input text>

The model generates the corrected text directly.

Usage with Transformers.js

import { pipeline } from '@huggingface/transformers';

const corrector = await pipeline(
  'text2text-generation',
  'YOUR_USERNAME/coedit-large',
  { dtype: 'q8' }
);

const result = await corrector('Fix grammatical errors: He go to school yesterday.');
console.log(result[0].generated_text);
// "He went to school yesterday."

Supported Tasks

CoEdIT supports multiple editing tasks via different prompts:

  • Fix grammatical errors: ... - Grammar correction
  • Paraphrase: ... - Paraphrasing
  • Simplify: ... - Text simplification
  • Make this more formal: ... - Formality transfer
  • Make this more coherent: ... - Coherence improvement

Performance

More flexible than GECToR (can rewrite sentences), but slower due to autoregressive generation.

License

Apache 2.0 (following original model license)

Model info

text-generation transformers.js
transformers.js onnx t5 text2text-generation grammatical-error-correction text-editing flan-t5 en arxiv:2305.09857 license:apache-2.0 region:us
↓ 0 ♥ 0

Created: 2025-12-29

Updated: 2025-12-29

View on Hugging Face

Files (11)

.gitattributes
README.md
config.json
generation_config.json
onnx/config.json
onnx/encoder_model_quantized.onnx ONNX
onnx/ort_config.json
special_tokens_map.json
tokenizer.json
tokenizer_config.json

Related models