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

关于跑bert时遇到的问题 #6

Open
2Fgithub opened this issue Apr 26, 2022 · 3 comments
Open

关于跑bert时遇到的问题 #6

2Fgithub opened this issue Apr 26, 2022 · 3 comments

Comments

@2Fgithub
Copy link

跑的时候遇到这个:RuntimeError: CUDA error: device-side assert triggered
报一大串这种:/pytorch/aten/src/ATen/native/cuda/Indexing.cu:658: indexSelectLargeIndex: block: [146,0,0], thread: [38,0,0] Assertion srcIndex < srcSelectDimSize failed.
然后最后指向 squeeze_embedding 中的 x = x[x_sort_idx]

网上搜是说输入长度比Bert规定要大,请问应该怎么解决?

@UACurry
Copy link

UACurry commented May 9, 2023

请问解决了吗

@WHU-ZQH
Copy link
Owner

WHU-ZQH commented May 9, 2023

之前的代码在is_bert=1时可能存在问题,论文投稿时代码有所更新。更新后的代码和训练超参数会在近两天内发布,请耐心等待:)

@zgzis
Copy link

zgzis commented Apr 1, 2024

请问你解决了不?bert效果问题?

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

4 participants