Downloads · 30 days
19
26% of all-time downloads
inference4j/flan-t5-base
flan-t5-base is a text generation model from inference4j. Use it when you need the model to write or continue text. It is set up for onnx. The card lists the license as apache-2.0.
ONNX export of Flan-T5 Base (250M parameters) with encoder-decoder architecture and KV cache support.
Downloads · 30 days
19
26% of all-time downloads
All-time downloads
73
Public
Repo size
1.7 GB
Likes
0
Public
Click a slice to open those files.
.onnx1.7 GB · 100%
From the Hugging Face model README
ONNX export of Flan-T5 Base (250M parameters) with encoder-decoder architecture and KV cache support.
Converted for use with inference4j, an inference-only AI library for Java.
// Summarization
try (var gen = FlanT5TextGenerator.flanT5Base().build()) {
System.out.println(gen.summarize("Long article text..."));
}
// Translation
try (var gen = FlanT5TextGenerator.flanT5Base().build()) {
System.out.println(gen.translate("Hello!", Language.EN, Language.FR));
}
| Property | Value |
|---|---|
| Architecture | T5 encoder-decoder (250M parameters) |
| Tasks | Summarization, translation, grammar correction, text-to-SQL |
| Tokenizer | SentencePiece (32,128 tokens) |
| Original framework | PyTorch (transformers) |
| Export method | Hugging Face Optimum (encoder-decoder with KV cache) |
This model is licensed under the Apache License 2.0. Original model by Google.