[fix] Modifying base in yarn embedding (#2212)
This commit is contained in:
parent
d789de329a
commit
c46eaf707b
|
@ -102,7 +102,7 @@ class PositionRotaryEmbedding(nn.Module):
|
||||||
max_position_embeddings=rope_scaling[
|
max_position_embeddings=rope_scaling[
|
||||||
"original_max_position_embeddings"
|
"original_max_position_embeddings"
|
||||||
],
|
],
|
||||||
base=10000.0,
|
base=base,
|
||||||
device=inv_freq.device,
|
device=inv_freq.device,
|
||||||
scaling_factor=scaling_factor,
|
scaling_factor=scaling_factor,
|
||||||
extrapolation_factor=1,
|
extrapolation_factor=1,
|
||||||
|
|
Loading…
Reference in New Issue