Last active
June 20, 2023 03:00
-
-
Save xiaoli/7c77d2998ea746c0998075f81d931203 to your computer and use it in GitHub Desktop.
Installation of Huggingface Transformers on Macbook Air M1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```sh | |
conda create --name transformers python=3.11 | |
conda activate transformers | |
conda install pytorch::pytorch torchvision torchaudio -c pytorch | |
pip install git+https://github.com/huggingface/accelerate | |
pip install git+https://github.com/huggingface/transformers | |
git clone https://github.com/huggingface/transformers.git | |
cd transformers/examples/pytorch/token-classification | |
pip install -r requirements.txt | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment