Update gemma.py
This commit is contained in:
parent
765e54fe55
commit
f270f377ab
1 changed files with 3 additions and 1 deletions
|
|
@ -113,7 +113,9 @@ 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]
|
||||
|
||||
logger.warning_once(str(torch.dist(new_cos, old_cos)))
|
||||
print(new_cos)
|
||||
print(old_cos)
|
||||
raise 1
|
||||
return new_cos, new_sin
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue