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):
sin_k = sin if sin_k is None else sin_k
dq, dk = dqkv[:, :, 0], dqkv[:, :, 1]
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(
dk,
cos_k,
sin_k,
seqlen_offsets,
interleaved=interleaved,
interleaved=ctx.interleaved,
inplace=True,
conjudate=True,
conjugate=True,
)
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