Closed hortiprajwal closed 1 month ago
Hello @hortiprajwal , I have reuploaded this model and your issue should be resolved with the latest version of spark nlp (5.4.1)
Hello @hortiprajwal , I have reuploaded this model and your issue should be resolved with the latest version of spark nlp (5.4.1)
Hello @ahmedlone127, I tried this with the spark-nlp (5.4.1), but the issue still persists.
java.lang.IllegalArgumentException: No Operation named [missing_decoder_input_ids_init] in the Graph
at org.tensorflow.Graph.outputOrThrow(Graph.java:211)
at org.tensorflow.Session$Runner.feed(Session.java:248)
at com.johnsnowlabs.ml.ai.Bart.getModelOutput(Bart.scala:414)
at com.johnsnowlabs.ml.ai.util.Generation.Generate.$anonfun$beamSearch$7(Generate.scala:228)
at scala.util.control.Breaks.breakable(Breaks.scala:42)
at com.johnsnowlabs.ml.ai.util.Generation.Generate.beamSearch(Generate.scala:216)
at com.johnsnowlabs.ml.ai.util.Generation.Generate.beamSearch$(Generate.scala:184)
at com.johnsnowlabs.ml.ai.Bart.beamSearch(Bart.scala:40)
at com.johnsnowlabs.ml.ai.util.Generation.Generate.generate(Generate.scala:153)
at com.johnsnowlabs.ml.ai.util.Generation.Generate.generate$(Generate.scala:85)
at com.johnsnowlabs.ml.ai.Bart.generate(Bart.scala:40)
at com.johnsnowlabs.ml.ai.Bart.tag(Bart.scala:280)
at com.johnsnowlabs.ml.ai.Bart.$anonfun$predict$1(Bart.scala:124)
Is there an existing issue for this?
Who can help?
No response
What are you working on?
I am trying to run spark-nlp in databricks for summarization of text. I am using the bart_large_cnn model for the summarization.
Current Behavior
Expected Behavior
The code should print the summary and run without errors.
Steps To Reproduce
Spark NLP version and Apache Spark
Type of Spark Application
Python Application
Java Version
No response
Java Home Directory
No response
Setup and installation
Installed the dependency from Maven and PyPI under libraries in databricks.
These spark config are added in the cluster:
Operating System and Version
No response
Link to your project (if available)
No response
Additional Information