princeton-nlp / WebShop

[NeurIPS 2022] 🛒WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agents
https://webshop-pnlp.github.io
MIT License
255 stars 53 forks source link

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

Closed ai-nikolai closed 2 weeks ago

ai-nikolai commented 3 months ago

Overview

This is a fix for arm-based mac & potentially other platforms as well in terms of installation. This solves: https://github.com/princeton-nlp/WebShop/issues/33

Description of Changes

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

Screenshots

N/A

Checklist

ai-nikolai commented 3 months ago

Main Problems were:

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

lightgbm fix: [https://github.com/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