Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions examples/models/llama/static_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
register_attention,
)
from executorch.examples.models.llama.model_args import ModelArgs
from executorch.examples.models.llama.norm import RMSNorm
from executorch.examples.models.llama.rope import Rope


Expand Down Expand Up @@ -847,8 +848,8 @@ def __init__(
self.layer_id = layer_id

if self.use_qk_norm:
self.q_norm = torch.nn.RMSNorm(self.head_dim, config.norm_eps)
self.k_norm = torch.nn.RMSNorm(self.head_dim, config.norm_eps)
self.q_norm = RMSNorm(self.head_dim, eps=config.norm_eps)
self.k_norm = RMSNorm(self.head_dim, eps=config.norm_eps)
else:
self.q_norm = torch.nn.Identity()
self.k_norm = torch.nn.Identity()
Expand Down
Loading