ridger wanglne commited on
Commit
3aaa222
·
1 Parent(s): 697afdd

Fix default RoPE init function reference in OuroRotaryEmbedding (#6)

Browse files

- Fix default RoPE init function reference in OuroRotaryEmbedding (934f16998719753da7602b303f9b1d6326fd8060)


Co-authored-by: WangYi <wanglne@users.noreply.huggingface.co>

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