Unverified Commit 38094584 authored by Liangfu Chen's avatar Liangfu Chen Committed by GitHub
Browse files

[Bugfix] Fix invalid rotary embedding unit test (#13431)


Signed-off-by: default avatarLiangfu Chen <liangfc@amazon.com>
parent d3231cb4
...@@ -41,7 +41,7 @@ def test_rotary_embedding_opcheck(dist_init, device, max_position, ...@@ -41,7 +41,7 @@ def test_rotary_embedding_opcheck(dist_init, device, max_position,
is_neox_style, rotary_dim, head_size, is_neox_style, rotary_dim, head_size,
seq_len): seq_len):
batch_size = 1 batch_size = 1
base = 0 base = 10000
num_heads = 7 num_heads = 7
rot = RotaryEmbedding(head_size, rotary_dim, max_position, base, rot = RotaryEmbedding(head_size, rotary_dim, max_position, base,
is_neox_style, torch.float32) is_neox_style, torch.float32)
......
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