Sparknlp 1035 test all notebooks to import tensor flow models to spark nlp #14238
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updating transformers and tensorflow versions for all notebooks
Description
This PR upgrades transformers version to 4.39.3 and tensorflow version to 2.11.0 for all tensorflow export notebooks
It also fixes various minor bugs, colab links, typos and other small improvements.
Known issues:
HuggingFace in Spark NLP - XlmRoBertaForQuestionAnswering.ipynb (Missing spp file when trying to import )
HuggingFace in Spark NLP - XlmRoBertaForTokenClassification.ipynb (Missing spp file when trying to import )
HuggingFace in Spark NLP - XlmRoBertaForSequenceClassification.ipynb (Missing spp file when trying to import )
HuggingFace in Spark NLP - XLNet.ipynb( int 32/64 tensorflow error )
HuggingFace in Spark NLP - SwinForImageClassification.ipynb(Py4JJavaError: An error occurred while calling z:com.johnsnowlabs.nlp.annotators.cv.SwinForImageClassification.loadSavedModel.)
HuggingFace in Spark NLP - LongformerForQuestionAnswering.ipynb( Kept running then RAM error, try chanigng model )
HuggingFace in Spark NLP - Longformer.ipynb( Kept running then RAM error, try chanigng model )
CamemBertForTokenClassification( int 32/64 tensorflow error )
HuggingFace in Spark NLP - BERT Sentence.ipynb( int 32/64 tensorflow error )
Fine_Tuned_Sentence_Bert_in_Spark_NLP.ipynb