Comments (11)
it looks like the issue is in onnxruntime itself, I suggest you to create an issue there.
from fastt5.
are you using it for GPU?
from fastt5.
yes, but i tried with CPU. Still it fails
from fastt5.
sorry, the library does not support GPU yet, but the issue is similar to microsoft/onnxruntime#3113
for CPU are you facing the same issue?
from fastt5.
Yes on cpu too same issue
from fastt5.
i found some more logs as,
onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: SystemError : 2
from fastt5.
could you please provide the reproducible code and full log of error
from fastt5.
I am not sure about code but you can use following model, i am using example mentioned in main readme page
https://huggingface.co/google/mt5-large
from fastt5.
Also i was able to get soultion for this by onnx github, there is new tool for converting model from mt5 models
https://github.com/microsoft/onnxruntime/tree/master/onnxruntime/python/tools/transformers/models/t5.
just to give more idea, fastt5 exporter creates file size of 8.5 GB for https://huggingface.co/google/mt5-large model. But onnx tool creates around 9.2 GB so i think some additional files may be missing while exporting the model hence it was failing to create seesion
from fastt5.
I am facing input name issue as
[ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Invalid Feed Input Name:pkv_95
, is there any way to pass original name of inputs.
I could see in encoder module the inputs are passed as pkv_0 to pkv_95, which doesnt match with original input names
from fastt5.
i tried different approch, now it gives out
onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Deserialize tensor onnx::MatMul_4622 failed.tensorprotoutils.cc:637 TensorProtoToTensor External initializer: onnx::MatMul_4622 offset: 0 size to read: 11534336 given file_length: 4194304 are out of bounds or can not be read in full.
from fastt5.
Related Issues (20)
- Fails to convert T0-3B HOT 2
- Is it suit for other translation model like "Helsinki-NLP / opus-mt-en-de"? HOT 1
- Decoder's encoder_attention_mask input should be called decoder_attention_mask HOT 1
- Thank You and Demo Running in the Browser HOT 2
- M2M100 to ONNX
- Upgrade ONNX runtime HOT 1
- fastt5 not working with FastAPI gunicorn and docker HOT 1
- No such file or directory: '/content/encoder.embed_tokens.weight' HOT 3
- In the source code, the use of attention_mask is contradictory HOT 1
- Issue with onnxruntime HOT 4
- flan-t5 support HOT 5
- GPU support
- Segmentation fault (core dumped) HOT 5
- Is fastT5 qunatization slower than pytorch dynamic quantization?
- TypeError: quantize_dynamic() got an unexpected keyword argument 'activation_type' HOT 1
- Dead kernel
- TypeError: quantize_dynamic() got an unexpected keyword argument 'activation_type' HOT 4
- Does UMT5 Supports? HOT 2
- transformers.generation_utils import GenerationMixin HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastt5.