Giter VIP home page Giter VIP logo

Comments (11)

Ki6an avatar Ki6an commented on August 21, 2024 1

it looks like the issue is in onnxruntime itself, I suggest you to create an issue there.

from fastt5.

Ki6an avatar Ki6an commented on August 21, 2024

are you using it for GPU?

from fastt5.

OriAlpha avatar OriAlpha commented on August 21, 2024

yes, but i tried with CPU. Still it fails

from fastt5.

Ki6an avatar Ki6an commented on August 21, 2024

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.

OriAlpha avatar OriAlpha commented on August 21, 2024

Yes on cpu too same issue

from fastt5.

OriAlpha avatar OriAlpha commented on August 21, 2024

i found some more logs as,
onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: SystemError : 2

from fastt5.

Ki6an avatar Ki6an commented on August 21, 2024

could you please provide the reproducible code and full log of error

from fastt5.

OriAlpha avatar OriAlpha commented on August 21, 2024

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.

OriAlpha avatar OriAlpha commented on August 21, 2024

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.

OriAlpha avatar OriAlpha commented on August 21, 2024

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.

OriAlpha avatar OriAlpha commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.