-
Notifications
You must be signed in to change notification settings - Fork 169
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
Installing Concordia on M1 Mac - TensorFlow-text does not seem to exist for M1 #37
Comments
I think that dep is needed for the embedder, so until that dep works Concordia doesn't work on M1 macs. If you can get by without an embedder, cb505d3 might help. |
See code snippet in #37 (comment). |
I assume that the embedder is needed to properly run the provided agent examples. Any chance for a gdm-concordia package release that can be PIP installed on M1 macs? |
There is a pull request under review right now which will solve this once it's fully incorporated. |
You can use the following snippet on M1 macs if you install sentence_transformers:
Thanks @wacunn for this workaround. |
Thank you @jagapiou. What do I need to do to properly install Concordia instead of "pip install gdm-concordia" as recommended in README? Do I follow the manual install instructions and patch a file (which one)? Thanks again. |
You can pip install directly from GitHub, or you can git clone it locally and pip install from there (the manual install instructions). |
Cloned the files and followed the manual install instructions. No installer complaints this time. But the code still blows up on "import tensorflow_text" in embedder_st5.py ("No module named tensorflow_text"). Not clear how to apply the suggested workaround. Should I use a different embedder? Which one? Thanks. |
This is the code that I am using on an M1 Mac. Setup sentence encoderfrom sentence_transformers import SentenceTransformer |
That worked. I installed sentence_transformers and did not import embedder_st5 from concordia.associative_memory. Used your code instead. Thank you very much. |
This will ensure the embedder works with M1-based macs (fixes #37). PiperOrigin-RevId: 625611229 Change-Id: I6591565e82774e23aa40bd7a33571f8fe6a9a0d5
Cannot install the gdm-concordia package on an M1 Mac either for Python3.11 or Python3.12. The PIP installer cannot find TensorFlow-text which, apparently, does not exist for M1 Macs. Is there any way around this?
The text was updated successfully, but these errors were encountered: