Closed luoqishuai closed 3 years ago
model=model.cuda()
had this issue too
the same issue
Try sudo pip install --editable ./ ?
sry @dendisuhubdy @haonan-li I solved the problem, but I didn't write out the solution. Your answer, Github didn't send me an email reminding me. It wasn't until Georgeliu tipped me off I ran this command after the normal installation of Fairseq, I do not know whether it is helpful to you
git clone https://github.com/pytorch/fairseq && cd fairseq && pip install --editable .
❓ Questions and Help
What is your question?
When i pip fairseq in build dockerfile.Raise error. dockerfile FROM pytorch/pytorch:1.3-cuda10.1-cudnn7-devel RUN pip install redis fairseq setuptools flask I see fairseq need torch>=1.4. Is it a version problem? It seems that this installation does not work properly with the GPU.
Code
but model use cpu , not use gpu and cuda
output:
What's your environment?
pip
, source):pip