#215 · Primary category: Inference & Local Deploy
fastT5
⚡ boost inference speed of T5 models by 5x & reduce the model size by 3x.
Project last updated:04/24/23
GitHub Stars
587
Forks
75
Contributors
5
License
Apache-2.0
Why we included this project
T5 models handle a lot of NLP work, but their sequential text generation gets slow, and the bigger the model the worse it gets. fastT5 goes after that directly: it converts a pretrained Hugging Face T5 model to ONNX, quantizes it, and runs it through onnxruntime, all from a single function call. The returned model still supports the familiar generate() method, so you keep your existing code. The payoff is a model about 3x smaller and inference up to roughly 5x faster on CPU, with beam search also seeing solid gains. The pipeline is customizable too, so you can run the export, quantization, and runtime steps separately if you want more control. It's a focused tool rather than a full serving platform, which makes sense for teams that want a quick, measurable speedup on modest hardware without retraining.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
ollama
Get up and running with Kimi-K2.6, GLM-5.2, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
llama.cpp
LLM inference in C/C++
vllm
A high-throughput and memory-efficient inference and serving engine for LLMs
gpt4all
GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
LocalAI
LocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.