Comments (5)
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.
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.
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.
Hi @DevinTDHa
Is this a limitation on Java or we hard-coded a dimension somewhere?
from spark-nlp.
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)
- Onnx models fail when saving transformer
- Hardcoded column name in DocumentSimilarityRanker annotator
- ERROR TorrentBroadcast: Store broadcast broadcast_5 fail, remove all pieces of the broadcast HOT 7
- Scala 2.13 support HOT 1
- org.apache.spark.SparkException: [FAILED_EXECUTE_UDF] HOT 3
- DependencyParserApproach throws "IllegalArgumentException: For input string: "_"" when training with CONLLU dataset HOT 5
- When Attempting to loadSavedModel, I Encountered 'java.lang.Exception: Could Not Retrieve the SavedModelBundle + () HOT 16
- Importing models into Spark NLP in TensorFlow and ONNX formats
- MultiClassifierDLApproach not transforming every row of my dataset HOT 1
- An error occurred while calling z:com.johnsnowlabs.nlp.pretrained.PythonResourceDownloader.downloadModel. : java.lang.UnsatisfiedLinkError: no jnitensorflow in java.library.path: /Users/alexc./Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:. HOT 1
- KMeans throws “Column features must be of type equal to one of the following types” HOT 1
- Cache mechanism is not working related to metadata.json in s3 HOT 3
- XLMRoberta embeddings not differentiating between different sentences
- It seems the model is downloaded every time the program starts - any way to cache? HOT 1
- NerDLModel don't load a pretrained NerDLAproach HOT 2
- BartTransformer - Import to SparkNLP HOT 1
- Can not find the model to download bge-m3 HOT 1
- java.util.NoSuchElementException: Param doSample does not exist
- It's too slow to download a model HOT 1
- allow configurable M2Resolvers 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 spark-nlp.