Closed nizish closed 2 years ago
hmm which version of PyTorch are you using? I wonder if this is version-dependent - the README states that the code uses PyTorch 1.0.1.post2
torch 1.10.0+cu111
Hmm, yeah, I'm guessing it's a version-dependent thing. If you're able to get this code to run on modern PyTorch, I'd welcome a PR :)
hello, I have issue in loading these model files in parlai.When i have to load these models to parlai it shows errors to read mdl file docreadertagent is used in some codes but this is used in old versions Please can you help me with it
I run the code given belowthe models with retrival file in the end it save .txt model file how can we load it to parlai chatbot
Hi @ramish987 ! Unfortunately these model files cannot be loaded natively in ParlAI without mapping the weights into a ParlAI-friendly format, since it was not trained in ParlAI.
So what I have to do for that I have tried to load the code you have given below in the link but it save txt file .So what I should do? what you suggest?
On Fri, Dec 10, 2021, 1:52 AM Eric Smith @.***> wrote:
Hi @ramish987 https://github.com/ramish987 ! Unfortunately these model files cannot be loaded natively in ParlAI without mapping the weights into a ParlAI-friendly format, since it was not trained in ParlAI.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/facebookresearch/EmpatheticDialogues/issues/46#issuecomment-990241981, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVLGYKJHFHIIVIRZN2IHHA3UQEJJBANCNFSM5HYN6FJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
@ramish987 Is your goal to load the retrieval model in ParlAI? If so, I'd take a look at parlai/core/torch_ranker_agent.py
to see how weights there map onto the ones in the model in this repo in order to get this model to work in ParlAI.
thanks
On Tue, Dec 14, 2021, 1:33 AM Eric Smith @.***> wrote:
@ramish987 https://github.com/ramish987 Is your goal to load the retrieval model in ParlAI? If so, I'd take a look at parlai/core/torch_ranker_agent.py to see how weights there map onto the ones in the model in this repo in order to get this model to work in ParlAI.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/facebookresearch/EmpatheticDialogues/issues/46#issuecomment-992871132, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVLGYKIOSBMPRO6ZJC4KNE3UQZKBXANCNFSM5HYN6FJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
In google colab this command raises exception.
Found fix at https://stackoverflow.com/questions/49161652/how-to-get-around-in-place-operation-error-if-index-leaf-variable-for-gradient-u
Notebook is here gist