Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
ShashankMosaicML committed Oct 20, 2023
1 parent b179b07 commit 9afa082
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_rotary_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ def allclose_helper(t0: torch.Tensor,
def test_rotation_scaling_factor_1(device: str, dtype: torch.dtype,
rope_scaling_type: str, tensor_type: str):
"""Checks all the rotation embedding techniques (with scaling factor 1)
produce the expected rotation."""
Checks that the rotations produced by the techniques is correct, for
both query and key tensors.
"""
from llmfoundry.models.layers.rotary_embedding import (
DynamicNTKScalingRotaryEmbedding, LinearScalingRotaryEmbedding,
RotaryEmbedding, apply_rotary_pos_emb)
Expand Down

0 comments on commit 9afa082

Please sign in to comment.