Open sataketatsuya opened 2 years ago
I was able to install on MAC with this hint: https://github.com/facebookresearch/fairseq#requirements-and-installation Basically building from source by:
git clone https://github.com/pytorch/fairseq
cd fairseq
CFLAGS="-stdlib=libc++" pip install --editable ./
Installation successful but unable to import after the above steps mentioned by @JuanuMusic.
----> [1](vscode-notebook-cell:?execution_count=16&line=1) from fairseq import checkpoint_utils
ModuleNotFoundError: No module named 'fairseq'
I had issues installing fairseq2 on a MacBook Pro M1. Here's a solution that worked for me. Hope it helps.
@M2LabOrg Thanks for the suggestion, but I am looking forward to use fairseq, and hoping to use mps with it.
Hey, has it been solved? I can't install fairseq either
❓ Questions and Help
I want to use fairseq on Apple M1 chip for BART model. I checked the document and optional arguments but I could not figure out the solution or setting about mps. So I need your help. Please give me some advice, thank you.
What's your environment?
pip
):