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

Caught an unknown exception! #94

Open
PANFEI-CHENG opened this issue Aug 27, 2023 · 0 comments
Open

Caught an unknown exception! #94

PANFEI-CHENG opened this issue Aug 27, 2023 · 0 comments

Comments

@PANFEI-CHENG
Copy link

当我令stratified_transformer.channels = [256],stratified_transformer.num_heads = [4]时,我遇到了Caught an unknown exception!这个错误。我发现在pontops2中仅提供了
switch (C / h) {
case 16:
attention_step1_forward_cuda_kernel_v2<16><<<blocks, n_threads, 0>>>(N, M, h, q, k, index0_offsets, index1, attn);
break;
case 32:
attention_step1_forward_cuda_kernel_v2<32><<<blocks, n_threads, 0>>>(N, M, h, q, k, index0_offsets, index1, attn);
break;
default:
throw "d != 16 and d != 32";
}
我能否简单的修改这里的16为256/4=64来解决该bug?

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