Git Product home page Git Product logo

Comments (5)

DevinTDHa avatar DevinTDHa commented on June 7, 2024 1

Hmm this is a very curious error, I don't think anything is hard coded that would cause this. I will update this thread, once I have found the underlying issue!

from spark-nlp.

maziyarpanahi avatar maziyarpanahi commented on June 7, 2024 1

It seems ONNX models above 2G will be exported into *model.onnx and *model.onnx_data files. Similar to other models we have, we should also adapt Whisper to use that feature since it can go above 2G and not assume there will be 1 file. (we support model.onnx_data)

from spark-nlp.

minhduc210196 avatar minhduc210196 commented on June 7, 2024

from sparknlp.annotator import *

whisper = (
WhisperForCTC.loadSavedModel(f"/content/export_onnx/openai/whisper-large", spark)
.setInputCols("audio_assembler")
.setOutputCol("text")

IllegalArgumentException: Size cannot be greater than Integer max value: 2547138560

from spark-nlp.

maziyarpanahi avatar maziyarpanahi commented on June 7, 2024

Hi @DevinTDHa
Is this a limitation on Java or we hard-coded a dimension somewhere?

from spark-nlp.

DevinTDHa avatar DevinTDHa commented on June 7, 2024

Hi @minhduc210196,

I am trying to reproduce it, but I don't get quite the same error. It also fails on my side, because the large model is split into a graph file (*model.onnx) and a file with the weights (*model.onnx_data).

If it differs from the default notebook, could you share your environment, so I could try to reproduce it? Namely the version of transformers and optimum. Perhaps you could share a file with the output of pip freeze > pip_env.txt. Thanks!

PS: I was able to reproduce it, by renaming the encoder.onnx_data file to encoder.onnx. Is this what you did?

from spark-nlp.

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.