Fix default RoPE init function reference in OuroRotaryEmbedding

#6
Files changed (1) hide show
  1. modeling_ouro.py +1 -1
modeling_ouro.py CHANGED
@@ -479,7 +479,7 @@ class OuroRotaryEmbedding(nn.Module):
479
 
480
  self.config = config
481
 
482
- rope_init_fn: Callable = compute_default_rope_parameters
483
  if self.rope_type != "default":
484
  rope_init_fn = ROPE_INIT_FUNCTIONS[self.rope_type]
485
 
 
479
 
480
  self.config = config
481
 
482
+ rope_init_fn: Callable = self.compute_default_rope_parameters
483
  if self.rope_type != "default":
484
  rope_init_fn = ROPE_INIT_FUNCTIONS[self.rope_type]
485