Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified



Setup

Regular setup

Follow the Quick Start guide to install required software.

Apple Silicon (emulated x86_64)

Note: Steps for Apple Silicon is constantly changing and may not be accurate. Since January 2021 when these steps were written Apple Silicon support has improved significantly across the board and these steps may no longer be necessary.

  1. install i386 Homebrew:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  1. install nvm using i386 Homebrew:
arch -x86_64 /usr/local/bin/brew install nvm

This is critical! If nvm is installed using ARM64 Homebrew, installed Node versions will also be the ARM64 variant and there will be problems!

  1. using nvm, install the current version of NodeJS used in wp-calypso:
nvm install <node_version>
  1. instruct nvm to use the version of NodeJS installed in previous step:
nvm use <node_version>
  1. update npm version:
arch -x86_64 npm install -g npm@latest
  1. install yarn:
arch -x86_64 npm install yarn
  1. install all dependencies from repo root:
arch -x86_64 yarn install --immutable

At any point, run arch to verify whether shell is running with Rosetta 2 emulation.

Apple Silicon (arm64)

Steps in the Setup should be enough to get the user up and running.