Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing models into Spark NLP in TensorFlow and ONNX formats #14216

Open
maziyarpanahi opened this issue Mar 27, 2024 · 0 comments
Open

Importing models into Spark NLP in TensorFlow and ONNX formats #14216

maziyarpanahi opened this issue Mar 27, 2024 · 0 comments
Assignees
Labels

Comments

@maziyarpanahi
Copy link
Member

Assigning members to test importing models in TensorFlow and ONNX formats to Spark NLP. (please use the latest transformers and optimum libraries on Colab)

  • TensorFlow

  • ONNX

            > Hi @TerryLaw535
    

To import T5 models (fine-tuned or already on HF) you can use one of these 2 notebooks:

Depending on which one you have saved (exported) your T5 model, you can follow the instructions to import your model into Spark NLP. (I personally recommend first trying ONNX, it has a faster inference time)

hi maziyarpanahi, thanks for your resource, however, I tried different transformers, tensorflow versions but none of them worked, basically there are all kinds of errors. And the code doesn't work on colab correctly either. Could you please check it out? Thank you so much!

Originally posted by @Alexwangziyu in #14215 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants