BAAI
/

Update modeling_aquila.py

#2
by yxaenbal - opened
Files changed (1) hide show
  1. modeling_aquila.py +1 -1
modeling_aquila.py CHANGED
@@ -145,7 +145,7 @@ class AquilaLinearScalingRotaryEmbedding(AquilaRotaryEmbedding):
145
  self.register_buffer("sin_cached", emb.sin()[None, None, :, :].to(dtype), persistent=False)
146
 
147
  # Copied from transformers.models.llama.modeling_llama.LlamaDynamicNTKScalingRotaryEmbedding with Llama->Aquila
148
- class AquilaDynamicNTKScalingRotaryEmbedding(LlamaRotaryEmbedding):
149
  """LlamaRotaryEmbedding extended with Dynamic NTK scaling. Credits to the Reddit users /u/bloc97 and /u/emozilla"""
150
 
151
  def __init__(self, dim, max_position_embeddings=2048, base=10000, device=None, scaling_factor=1.0):
 
145
  self.register_buffer("sin_cached", emb.sin()[None, None, :, :].to(dtype), persistent=False)
146
 
147
  # Copied from transformers.models.llama.modeling_llama.LlamaDynamicNTKScalingRotaryEmbedding with Llama->Aquila
148
+ class AquilaDynamicNTKScalingRotaryEmbedding(AquilaRotaryEmbedding):
149
  """LlamaRotaryEmbedding extended with Dynamic NTK scaling. Credits to the Reddit users /u/bloc97 and /u/emozilla"""
150
 
151
  def __init__(self, dim, max_position_embeddings=2048, base=10000, device=None, scaling_factor=1.0):