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

Installation Fixes - arm-based Mac (M1, M2, M3); faiss-cpu; Werkzeug (Flask), spacy #34

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

ai-nikolai
Copy link
Contributor

Overview

This is a fix for arm-based mac & potentially other platforms as well in terms of installation. This solves: #33

Description of Changes

Please look at second README file to follow the fixed installation.

Screenshots

N/A

Checklist

  • [ ? ] My code follows the style guidelines of this project
  • [ Y ] I have performed a self-review of my code
  • [ Y ] I have commented my code + updated documentation (if necessary)
  • [ n/a ] I have added tests to define the behavior of the feature(s) and verify it is working
  • [ n/a ] New + existing unit tests pass

@ai-nikolai
Copy link
Contributor Author

Main Problems were:

nmslib fix:
pip3 install Cython
pip3 install CFLAGS="-mavx -DWARN(a)=(a)" pip install nmslib
[https:/nmslib/nmslib/issues/476]

lightgbm fix:
[https:/microsoft/LightGBM/issues/5328]
brew install libomp
pip3 install lightgbm

transformers fix:
pip3 install transformers==4.23.1 works

PyYAML fix:
pip3 install PyYAML==6.0.1 works

Spacy fix:
conda install spacy (instead of pip install)
also changed:
download en_core_web_lg -> download en_core_web_sm

Bumped up version of numpy to 1.24
(for FAISS)

Downgraded Werkzeug to 2.2.2 for Flask

@ai-nikolai ai-nikolai mentioned this pull request May 25, 2024
1 task
@ai-nikolai ai-nikolai changed the title Small Fixes and now working on Apple Mac Installation Fixes - arm-based Mac (M1, M2, M3); faiss-cpu; Werkzeug (Flask), spacy May 26, 2024
@ysymyth ysymyth merged commit 17dbef5 into princeton-nlp:master Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants