Skip to content

Latest commit

 

History

History
82 lines (56 loc) · 2.01 KB

README_INSTALL_ARM-MAC.md

File metadata and controls

82 lines (56 loc) · 2.01 KB

Getting started on arm-based Mac

This README support the installation on the arm based mac.

🚀 Setup on arm based mac.

Our code is implemented in Python. To setup, do the following:

  1. Install Python 3.8.13
  2. Install Java
  3. Download the source code:
> git clone https://github.com/princeton-nlp/webshop.git webshop
  1. Create a virtual environment using Anaconda and activate it
> conda create -n webshop python=3.8.13
> conda activate webshop
  1. Install requirements into the webshop virtual environment via the setup.sh script
> ./setup_arm.sh [-d small|all]

Default Installation (Failures):

  1. pip3 install -r requirements.txt

Fails at:

  • tokenizers
  • nmslib
  • lightgbm
  • transformers==4.19.2
  • PyYAML==6.0.0

Fails, because wrong versions installed

tokenizers fix: pip3 install tokenizers

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

lightgbm fix: [microsoft/LightGBM#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

Running setup.sh

Fails at:

  • python -m spacy download en_core_web_lg

Spacy Fix: Interestingly:

  • pip install -U 'spacy[apple]'

Does NOT work.

So, first installing spacy with conda works.

Remove: spacy==3.3.0 from requirements.txt