mirror of
https://github.com/vllm-project/vllm.git
synced 2025-10-20 14:53:52 +08:00
Fix lint (#3388)
This commit is contained in:
@ -143,8 +143,8 @@ class RotaryEmbedding(nn.Module):
|
||||
offsets: Optional[torch.Tensor] = None,
|
||||
) -> Tuple[torch.Tensor, torch.Tensor]:
|
||||
self.cos_sin_cache = self.cos_sin_cache.to(positions.get_device())
|
||||
# ops.rotary_embedding()/batched_rotary_embedding() are in-place operations that
|
||||
# update the query and key tensors.
|
||||
# ops.rotary_embedding()/batched_rotary_embedding()
|
||||
# are in-place operations that update the query and key tensors.
|
||||
if offsets is not None:
|
||||
ops.batched_rotary_embedding(positions, query, key, self.head_size,
|
||||
self.cos_sin_cache,
|
||||
|
Reference in New Issue
Block a user