Instructions to use MOTU01/gwishy-deep-pro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use MOTU01/gwishy-deep-pro with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'MOTU01/gwishy-deep-pro');
metadata
license: apache-2.0
base_model: pszemraj/flan-t5-large-grammar-synthesis
pipeline_tag: text2text-generation
library_name: transformers.js
tags:
- grammar
- grammar-correction
- onnx
- transformers.js
- gwishy
Gwishy Deep Check Pro — flan-t5-large-grammar-synthesis (ONNX, 4-bit)
ONNX conversion of pszemraj/flan-t5-large-grammar-synthesis (783M parameters) packaged for transformers.js, built for the Deep check Pro tier of the Gwishy writing assistant.
onnx/*_q4.onnx— MatMul 4-bit weight-only (block 64, symmetric). Activations stay fp32, so correction quality holds where naive dynamic int8 quantization of this model family hallucinates. ~688 MB total. This is what Gwishy loads (dtype: "q4").onnx/*_int8.onnx— dynamic int8, included for comparison (~819 MB).
Conversion pipeline: optimum-cli export onnx (task
text2text-generation-with-past), decoder merge via optimum.onnx.merge_decoders,
quantization via onnxruntime MatMulNBitsQuantizer — see
scripts/convert-pro-model.py.
Usage (transformers.js)
import { pipeline } from '@huggingface/transformers';
const fix = await pipeline('text2text-generation', 'MOTU01/gwishy-deep-pro', { dtype: 'q4' });
const out = await fix('Furthermore, the teams research proposal was deferred.', { max_new_tokens: 192 });
// -> "Furthermore, the team's research proposal was deferred."
License
The base model is dual-licensed by its author (Apache-2.0 / CC-BY-NC-SA-4.0); this conversion is distributed under the Apache-2.0 option. All credit for the model itself to @pszemraj.