Spark NLP on Apple new M1 Chip #2282
Replies: 6 comments 12 replies
-
I am trying to run spark nlp on my m1. I installed the zulu jdk8 using sdkman. It is giving me the following error.
|
Beta Was this translation helpful? Give feedback.
-
Same problem here, any idea how to make it work? |
Beta Was this translation helpful? Give feedback.
-
Hey @maziyarpanahi, any idea about this? |
Beta Was this translation helpful? Give feedback.
-
Hi Everyone, seems like currently it's almost impossible to get Tensorflow working on M1 Macs (which is a requirement for Spark NLP): We might have better luck, once macOS Monterey is released (25th October). In that update, Tensorflow will be available as I will try again to get it running, once the new version is released. In the meantime we recommend using Spark NLP on Google Colab, that way the installation is simple and you can use the library without any hassle 👍 |
Beta Was this translation helpful? Give feedback.
-
I have been able to get SparkNLP 3.x.x working on an M1 Macbook. Initially, I tried with a Anaconda environment, but this didn't work. Then, I switched to Miniforge which got it working. |
Beta Was this translation helpful? Give feedback.
-
The Apple silicon M1/M2 chips should be supported in Spark NLP 4.0.0 release: https://github.com/JohnSnowLabs/spark-nlp/releases/tag/4.0.0 |
Beta Was this translation helpful? Give feedback.
-
I personally don't have a Macbook with M1 Chip, but from what I've read so far the issue with Apache Spark and Spark NLP comes from the JDK. I suggest the following link to download Java JDK that is compatible with M1 (must be 8 and must be arm-64):
https://www.azul.com/downloads/zulu-community/?version=java-8-lts&os=macos&architecture=arm-64-bit&package=jdk
Let me know if you have M1 Chip and facing any issue using Spark NLP :)
Beta Was this translation helpful? Give feedback.
All reactions