Downloads · 30 days
687
6% of all-time downloads
helenai/t5-small-ov
t5-small-ov is a machine learning model from helenai. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This is the t5-small model converted to OpenVINO, for accellerated inference.
Downloads · 30 days
687
6% of all-time downloads
All-time downloads
11.7K
Public
Repo size
232 MB
Likes
0
Public
Click a slice to open those files.
.bin231 MB · 98%
From the Hugging Face model README
This is the t5-small model converted to OpenVINO, for accellerated inference.
The model weights are compressed to FP16.
An example of how to do inference on this model, based on the T5 documentation:
from optimum.intel.openvino import OVModelForSeq2SeqLM
from transformers import AutoTokenizer, pipeline
model_id = "t5-small-ov"
model = OVModelForSeq2SeqLM.from_pretrained(model_id)
tokenizer = AutoTokenizer.from_pretrained(model_id)
input_ids = tokenizer("translate English to German: The house is wonderful.", return_tensors="pt").input_ids
outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))