Downloads · 30 days
0
smkrv/sage-fredt5-onnx
sage-fredt5-onnx is a text generation model from smkrv. Use it when you need the model to write or continue text. It is set up for onnxruntime. The card lists the license as apache-2.0.
ONNX INT8-quantized version of ai-forever/FRED-T5-large-spell (SAGE spelling correction) for on-device Russian text correction in macOS apps.
Downloads · 30 days
0
Access
Public
Updated Feb 27, 2026
Repo size
1.6 GB
Likes
0
Public
Click a slice to open those files.
.onnx1.6 GB · 99%
From the Hugging Face model README
ONNX INT8-quantized version of ai-forever/FRED-T5-large-spell (SAGE spelling correction) for on-device Russian text correction in macOS apps.
"Исправьте: " prepended to input textint8/encoder_model_int8.onnx — Encoder (43 MB)int8/decoder_with_past_model_int8.onnx — Decoder with KV-cache (71 MB)int8/decoder_model_int8.onnx — Decoder without cache (74 MB)int8/decoder_model_merged_int8.onnx — Merged decoder (293 MB)int8/vocab.json, int8/merges.txt — BPE tokenizerint8/config.json, int8/tokenizer.json, etc.fp32/encoder_model.onnx — Encoder (171 MB)fp32/decoder_with_past_model.onnx — Decoder with KV-cache (281 MB)fp32/decoder_model.onnx — Decoder without cache (293 MB)On-device Russian text correction of speech transcripts. Runs via ONNX Runtime C API with greedy decoding.
// Swift — Seq2Seq inference
let engine = Seq2SeqOnnxEngine()
try engine.loadModels(from: "/path/to/sage-fredt5/int8/")
let corrected = try engine.generate(inputIDs: tokenizer.encode("Исправьте: " + text))
Base model FRED-T5-large and spelling fine-tune FRED-T5-large-spell by AI Forever / Sber AI. Part of the SAGE spelling correction framework. ONNX conversion and INT8 quantization by @smkrv.