Skip to content
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

cuda issue #12

Open
DivyaWadehra opened this issue Nov 28, 2019 · 9 comments
Open

cuda issue #12

DivyaWadehra opened this issue Nov 28, 2019 · 9 comments

Comments

@DivyaWadehra
Copy link

will it not work without cuda, on cpu?

@DivyaWadehra
Copy link
Author

AttributeError: module 'config' has no attribute 'max_seq_len'

@seanie12
Copy link
Owner

It will work both on cpu and cuda.
Maybe there is typo. Change config.max_seq_len into config.max_len

@DivyaWadehra
Copy link
Author

It is not working on cpu since there is a statement which is gpu specificl "line 20 trainer.py"

@DivyaWadehra
Copy link
Author

TypeError: expected Byte (got Bool)

@seanie12
Copy link
Owner

seanie12 commented Nov 29, 2019

@DivyaWadehra
If you want to run the model on cpu, change it to device = "cpu"
For the type error, check this link

@DivyaWadehra
Copy link
Author

segmentation fault while training and the torch_scatter is installed

@seanie12
Copy link
Owner

Please describe your python and pytorch version.

@pzxbjx
Copy link

pzxbjx commented Apr 8, 2020

My python version is 3.7 and torch version is 1.4.0, when i installed torch-scatter, i got an error "command 'gcc' failed with exit status 1", and i can't fix it , is there a substitude for torch-scatter?

I can train the model with use_pointer=False, the val loss didn't drop until it reached around 4.42, is it normal? What should the val loss be with pointer network?

Thank you!

@seanie12
Copy link
Owner

seanie12 commented Apr 10, 2020

@pzxbjx Regarding the installation of torch-scatter, please refer to this repo.
The pointer network is an important component for quality question generation. There are several variants of how to copy words from source sequences. Try out this. You can efficiently implement the copy mechanism with scatter_add from native pytorch library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants