Update gemma.py

This commit is contained in:
Daniel Han-Chen 2024-02-25 03:39:40 +11:00
commit 096a4192fb

View file

@ -113,8 +113,8 @@ class FastGemmaRotaryEmbedding(torch.nn.Module):
new_cos = emb.cos().to(dtype=x.dtype)[:,:seq_len]
new_sin = emb.sin().to(dtype=x.dtype)[:,:seq_len]
print(new_cos)
print(old_cos)
print(new_cos, new_cos.shape)
print(old_cos, old_cos.shape)
raise 1
return new_cos, new_sin
pass