You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Executed the below code, it fails with the following error. Please advice.
Fail: [ONNXRuntimeError] : 1 : FAIL : Load model from /content/models/t5-small-decoder-quantized.onnx failed:This is an invalid model. Error: Duplicate definition of name (pkv_11).
fromfastT5import (OnnxT5, get_onnx_runtime_sessions,
generate_onnx_representation, quantize)
fromtransformersimportAutoTokenizermodel_or_model_path='t5-small'# Step 1. convert huggingfaces t5 model to onnxonnx_model_paths=generate_onnx_representation(model_or_model_path)
# Step 2. (recommended) quantize the converted model for fast inference and to reduce model size.quant_model_paths=quantize(onnx_model_paths)
# step 3. setup onnx runtimemodel_sessions=get_onnx_runtime_sessions(quant_model_paths)
# step 4. get the onnx modelmodel=OnnxT5(model_or_model_path, model_sessions)
The text was updated successfully, but these errors were encountered:
Executed the below code, it fails with the following error. Please advice.
Fail: [ONNXRuntimeError] : 1 : FAIL : Load model from /content/models/t5-small-decoder-quantized.onnx failed:This is an invalid model. Error: Duplicate definition of name (pkv_11).
The text was updated successfully, but these errors were encountered: