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

IncompatibleTypeErrorImpl('invalid operands of type pointer<int64> and triton.language.int32') #1439

Open
wuyouliaoxi opened this issue Jan 11, 2025 · 0 comments

Comments

@wuyouliaoxi
Copy link

wuyouliaoxi commented Jan 11, 2025

Hello, I met this error when I used rotary positional encoding in flash attention.

The attribute rotary_emb_dim = int(embed_dim // num_heads // 2)

ncompatibleTypeErrorImpl('invalid operands of type pointer and triton.language.int32')
apply_rotary(
File "/home/woody/iwi5/iwi5070h/software/private/conda/envs/mmseg/lib/python3.8/site-packages/flash_attn/ops/triton/rotary.py", line 202, in apply_rotary
raise CompilationError(fn.src, node, repr(e)) from e
triton.compiler.errors.CompilationError: at 32:36: # Meta-parameters
BLOCK_K: tl.constexpr,
IS_SEQLEN_OFFSETS_TENSOR: tl.constexpr,
IS_VARLEN: tl.constexpr,
INTERLEAVED: tl.constexpr,
CONJUGATE: tl.constexpr,
BLOCK_M: tl.constexpr,
):
pid_m = tl.program_id(axis=0)
pid_batch = tl.program_id(axis=1)
pid_head = tl.program_id(axis=2)
rotary_dim_half = rotary_dim // 2
^

My package versions are :
Name: triton
Version: 2.1.0

Name: flash-attn
Version: 2.7.0.post2

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