"example/01_gemm/gemm_dl_fp16.cpp" did not exist on "6260ced2f3a4d9a2a832563905135c01ba72b56b"
Unverified Commit 4c8ff915 authored by Katherine Crowson's avatar Katherine Crowson Committed by GitHub
Browse files

Fix NameError and typo in ApplyRotaryEmbQKV_ (#569)

parent 0a1d03c7
...@@ -193,16 +193,16 @@ class ApplyRotaryEmbQKV_(torch.autograd.Function): ...@@ -193,16 +193,16 @@ class ApplyRotaryEmbQKV_(torch.autograd.Function):
sin_k = sin if sin_k is None else sin_k sin_k = sin if sin_k is None else sin_k
dq, dk = dqkv[:, :, 0], dqkv[:, :, 1] dq, dk = dqkv[:, :, 0], dqkv[:, :, 1]
apply_rotary( apply_rotary(
dq, cos, sin, seqlen_offsets, interleaved=interleaved, inplace=True, conjugate=True dq, cos, sin, seqlen_offsets, interleaved=ctx.interleaved, inplace=True, conjugate=True
) )
apply_rotary( apply_rotary(
dk, dk,
cos_k, cos_k,
sin_k, sin_k,
seqlen_offsets, seqlen_offsets,
interleaved=interleaved, interleaved=ctx.interleaved,
inplace=True, inplace=True,
conjudate=True, conjugate=True,
) )
return dqkv, None, None, None, None, None, None return dqkv, None, None, None, None, None, None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment