File size: 1,495 Bytes
27c9beb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
library_name: onnx
tags:
  - text2text-generation
  - t5
  - coedit
  - grammar-correction
  - encoder-decoder
  - onnx
  - inference4j
license: apache-2.0
pipeline_tag: text2text-generation
---

# CoEdIT Large — ONNX

ONNX export of [CoEdIT Large](https://huggingface.co/grammarly/coedit-large) (780M parameters) with encoder-decoder architecture and KV cache support.

CoEdIT is a T5-based model fine-tuned for text editing tasks including grammar correction, simplification, coherence, and paraphrasing.

Converted for use with [inference4j](https://github.com/inference4j/inference4j), an inference-only AI library for Java.

## Original Source

- **Repository:** [grammarly/coedit-large](https://huggingface.co/grammarly/coedit-large)
- **License:** Apache 2.0

## Usage with inference4j

```java
try (var corrector = CoeditGrammarCorrector.coeditLarge().build()) {
    System.out.println(corrector.correct("She don't likes swimming."));
    // She doesn't like swimming.
}
```

## Model Details

| Property | Value |
|----------|-------|
| Architecture | T5 encoder-decoder (780M parameters) |
| Task | Grammar correction, text editing |
| Tokenizer | SentencePiece (32,128 tokens) |
| Original framework | PyTorch (transformers) |
| Export method | Hugging Face Optimum (encoder-decoder with KV cache) |

## License

This model is licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). Original model by [Grammarly](https://huggingface.co/grammarly).