microsoft / IRNet

An algorithm for cross-domain NL2SQL
MIT License
264 stars 81 forks source link

IRNet cannot run after update #24

Closed CindyTing closed 4 years ago

CindyTing commented 4 years ago

Hi, I downloaded IRNet's last version and ran it . However, it has a running error like this: image it seems caused by pytorch version, and i updated it to torch 1.4, and then it has another error: image how can we solve this error ?

thank you for your help

shubhamk16 commented 4 years ago

try to install it from following conda command:

conda install pytorch torchvision cudatoolkit=9.2 -c pytorch -c defaults -c numba/label/dev

jaydeepb-inexture commented 4 years ago

try to install it from following conda command:

conda install pytorch torchvision cudatoolkit=9.2 -c pytorch -c defaults -c numba/label/dev

i was also facing the above error but using same command mention above it was solved.

shantanu-kumar242 commented 4 years ago

Thanks a lot. I went through output.log file and got this error even after running "conda install pytorch torchvision cudatoolkit=9.2 -c pytorch -c defaults -c numba/label/dev" command. I am running this model on cpu as my system doesn't have gpu. : issue1

jaydeepb-inexture commented 4 years ago

@shantanu-kumar242 are using linux or windows?

489597448 commented 4 years ago

remove all boo()

anshudaur commented 4 years ago

HI, I am trying to run the code on colab. But i am not able to because of pytorch 1.0.0 deprecation warning : Prior to PyTorch 1.1.0, the learning rate scheduler was expected to be called before the optimizer’s update; 1.1.0 changed this behavior in a BC-breaking way. If you use the learning rate scheduler (calling scheduler.step()) before the optimizer’s update (calling optimizer.step()), this will skip the first value of the learning rate schedule. If you are unable to reproduce results after upgrading to PyTorch 1.1.0, please check if you are calling scheduler.step() at the wrong time.

I was able to run the IRNET+bert on colab but not this one. I tried dowgrading the torch version to : 0.4.1 but that also didn't make it work. Thanks Anshu