[Roformer] Fixing a bug in RoFormerEncoder where it was ignoring the length of...
[Roformer] Fixing a bug in RoFormerEncoder where it was ignoring the length of past_key_values when generating as a decoder (#22416) * fix RoFormerEncoder postion embedding when generate as decoder * make fixup * add test case for check generate with past key values * remove duplicating code
Showing
Please register or sign in to comment