Instructions to use imrahamed/coedit-large-litert-int8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use imrahamed/coedit-large-litert-int8 with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
CoEdIT Large LiteRT INT8
Split encoder/decoder LiteRT (.tflite) conversion of
grammarly/coedit-large,
intended for fully local, noncommercial text editing. This is an
independently produced conversion and is not an official Grammarly release.
Noncommercial restriction
This model is licensed under CC BY-NC 4.0 and may not be used for commercial
purposes unless separate permission is obtained from the relevant rights
holders. See LICENSE for the license terms.
Model details
| Property | Value |
|---|---|
| Source checkpoint | grammarly/coedit-large |
| Architecture | FLAN-T5 Large fine-tuned on CoEdIT |
| Format | Split LiteRT/TFLite encoder and decoder |
| Quantization | INT8 dynamic range |
| Maximum sequence length | 256 tokens |
| Maximum configured output | 64 tokens |
| Encoder size | 341,621,208 bytes |
| Decoder size | 479,726,296 bytes |
| Graph total | 821,347,504 bytes |
The encoder state is computed once and reused during autoregressive decoder
steps. Tensor names, task prefixes, sizes, and SHA-256 checksums are recorded
in manifest.json.
Files
encoder.tflite: quantized encoder graphdecoder.tflite: quantized autoregressive decoder graphtokenizer.jsonandspiece.model: tokenizer assetstokenizer_config.jsonandspecial_tokens_map.json: tokenizer metadatamanifest.json: runtime contract and integrity metadata
Instruction prefixes
Fix grammatical errors in this sentence: <text>
Make the sentence formal: <text>
Change the style to casual: <text>
Make the sentence simpler: <text>
Paraphrase the sentence: <text>
Runtime integration
Load the two graphs with LiteRT, tokenize to the fixed 256-token input shape,
run the encoder once, and feed its hidden states plus the decoder token buffer
to the decoder for each generated token. Consult manifest.json for the exact
tensor contract and EOS/padding IDs.
Limitations
- Browser CPU/WASM autoregressive decoding is computationally expensive. WebGPU or a native LiteRT runtime is strongly recommended.
- Dynamic-range quantization can change outputs relative to the source model.
- Output should be reviewed before use; the model may omit, add, or alter meaning.
- The graphs use fixed-size tensors and are not a Transformers checkpoint.
Attribution
- Source model: https://huggingface.co/grammarly/coedit-large
- Model authors: Vipul Raheja, Dhruv Kumar, Ryan Koo, and Dongyeop Kang
- CoEdIT paper: https://arxiv.org/abs/2305.09857
- Upstream base: https://huggingface.co/google/flan-t5-large
Changes made in this adaptation: conversion to fixed-shape split LiteRT encoder/decoder graphs and INT8 dynamic-range quantization.
- Downloads last month
- 15
Model tree for imrahamed/coedit-large-litert-int8
Base model
grammarly/coedit-large