mgf's People
Forkers
hitsz-hltmgf's Issues
cuda gpu不可用
where is code?
could you please release your code?
请教为什么运行过程中出现如下的错误?
[80,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [81,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [82,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [83,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [84,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [85,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [86,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [87,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [88,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [89,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [90,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [91,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [92,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [93,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [94,0,0] Assertion srcIndex < srcSelectDimSize
failed.
/opt/conda/conda-bld/pytorch_1659484809535/work/aten/src/ATen/native/cuda/Indexing.cu:975: indexSelectLargeIndex: block: [424,0,0], thread: [95,0,0] Assertion srcIndex < srcSelectDimSize
failed.
0%| | 0/1816 [08:18<?, ?it/s]
Traceback (most recent call last):
File "/home/bfs/.pycharm_helpers/pydev/pydevd.py", line 1438, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "/home/bfs/.pycharm_helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/bfs/MGF/run.py", line 331, in
reply_para_tokens_list, reply_tags_list, train_graph_batch)
File "/home/bfs/miniconda3/envs/MGF/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "./utils/models.py", line 115, in forward
= self.am_tagging(review_para_tokens_list, review_tags_list, mode='train')
File "./utils/models.py", line 80, in am_tagging
sent_emb = self.bert_emb(para_tokens_list)
File "./utils/models.py", line 66, in bert_emb
bert_outputs = self.bert(ids_padding_tensor, attention_mask = mask_tensor)
File "/home/bfs/miniconda3/envs/MGF/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/home/bfs/miniconda3/envs/MGF/lib/python3.7/site-packages/transformers/models/bert/modeling_bert.py", line 1016, in forward
past_key_values_length=past_key_values_length,
File "/home/bfs/miniconda3/envs/MGF/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/home/bfs/miniconda3/envs/MGF/lib/python3.7/site-packages/transformers/models/bert/modeling_bert.py", line 236, in forward
token_type_embeddings = self.token_type_embeddings(token_type_ids)
File "/home/bfs/miniconda3/envs/MGF/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
return forward_call(*input, **kwargs)
File "/home/bfs/miniconda3/envs/MGF/lib/python3.7/site-packages/torch/nn/modules/sparse.py", line 160, in forward
self.norm_type, self.scale_grad_by_freq, self.sparse)
File "/home/bfs/miniconda3/envs/MGF/lib/python3.7/site-packages/torch/nn/functional.py", line 2199, in embedding
return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Process finished with exit code 1
缺文件诶
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.