MCPcopy Create free account
hub / github.com/SafeAILab/EAGLE / __init__

Method __init__

eagle/modeling_eagle.py:496–504  ·  view source on GitHub ↗
(self, config, index)

Source from the content-addressed store, hash-verified

494
495class EAGLEDecoderLayer(nn.Module):
496 def __init__(self, config, index):
497 super().__init__()
498 self.hidden_size = config.hidden_size
499 self.self_attn = EAGLEAttention(config=config)
500 self.mlp = EAGLEMLP(config)
501 self.index = index
502 if self.index != 0:
503 self.input_layernorm = EAGLERMSNorm(config.hidden_size, eps=config.rms_norm_eps)
504 self.post_attention_layernorm = EAGLERMSNorm(config.hidden_size, eps=config.rms_norm_eps)
505
506 def forward(
507 self,

Callers

nothing calls this directly

Calls 4

EAGLEAttentionClass · 0.85
EAGLEMLPClass · 0.85
EAGLERMSNormClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected