Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Onnx for flan-t5
#4
by
p-christ
- opened
Hey,
Does anyone know how to get Onnx to work for flan-t5?
There's no class T5ForConditionalGeneration
in optimum.onnxruntime
like there is in transformers so it doesn't seem to work.
Hi
@p-christ
, flan-t5 reuses the architecture from t5. Thus you can use ORTModelForSeq2SeqLM
: https://huggingface.co/docs/optimum/main/en/onnxruntime/package_reference/modeling_ort#optimum.onnxruntime.ORTModelForSeq2SeqLM
fxmarty
changed discussion status to
closed