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

RuntimeError: cublas runtime error : unknown error at /tmp/pip-req-build-l1dtn3mo/aten/src/THC/THCBlas.cu:390 #8

Open
Jhaprince opened this issue May 25, 2022 · 0 comments

Comments

@Jhaprince
Copy link

Hi @HimariO , @nikhilbchilwant

First of thanks a lot for this great work and making this code open source.

I am trying to reproduce your results over the hatefulmemedataset provided, but getting stuck because of following error. Will you please help me out with this

Traceback (most recent call last):
File "train_meme_itm.py", line 802, in
run_main_train(args)
File "train_meme_itm.py", line 705, in run_main_train
main(args)
File "train_meme_itm.py", line 470, in main
loss = model(batch, compute_loss=True)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/apex/amp/_initialize.py", line 177, in new_fwd
**applier(kwargs, input_caster))
File "/src/model_villa/vqa.py", line 43, in forward
output_all_encoded_layers=False)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/src/model_villa/model.py", line 385, in forward
output_all_encoded_layers=output_all_encoded_layers)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/src/model_villa/model.py", line 295, in forward
hidden_states = layer_module(hidden_states, attention_mask)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/src/model_villa/layer.py", line 167, in forward
attention_output = self.attention(hidden_states, attention_mask)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/src/model_villa/layer.py", line 125, in forward
self_output = self.self(input_tensor, attention_mask)
File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/src/model_villa/layer.py", line 85, in forward
attention_scores = torch.matmul(query_layer, key_layer.transpose(-1, -2))
RuntimeError: cublas runtime error : unknown error at /tmp/pip-req-build-l1dtn3mo/aten/src/THC/THCBlas.cu:390

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

1 participant