-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn #2
Comments
BTW, I can't run the examples 'examples/train_comet_bart.py' directly, it will report the following error:
Here is the code that went wrong: train_graph = KnowledgeGraph.from_csv(
"data/atomic2020/train.tsv", header=None, sep="\t"
) It seems like |
It seems like kogito or source code of COMET use the old version of pytorch which is not support the Ampere architecture GPUs, the code can run on V100 which belongs to Volta architecture.
Replace
Still, it works. |
hi Zorn, Thanks for pointing this out. It indeed seems to be a bug and I pushed a bug to fix it. |
Regarding the other errors, unfortunately, since we do not actively maintain this repo, it might not support dependency updates. Please, try to use the original dependencies as much as possible and in case you can't and you find a solution, feel free to open a pull request. |
Very grateful for your reply, btw, may i ask for a requirements with specific python version and package version list? Use |
I see, in that case it seems like we need to resolve the issue so that new numpy version is supported on this architecture. Could you maybe share the full stack trace of the error you get with numpy==1.24.1? |
I try two versions of python on my device, and unfortunately, the subject of this issue is occurred, here is the problem of run the scripts
Here is the output when run
And here is the full stack trace:
And the problem is as same as the first situation Actually, I'm trying to reproduce PeaCoK, follow the guide I recreate an environment use
Then I replace the
Replace numpy==1.24.1 it with older version like numpy==1.21.2 can solve this error, but with another warnings like this:
It seems like the problem is about the conflict between The cuda versoon of torch which is automatically is |
Hi, thanks for the fantastic work. I have a problem here. I want to train COMET on my own dataset, and I follow the user guide from here docs. My codes are as follows:
However, i got following errors when i run the code:
Here is my environment:
I do not kown why, any reply will be appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: