Skip to content

Commit

Permalink
adding eps to building norms
Browse files Browse the repository at this point in the history
  • Loading branch information
gupta-abhay committed Jul 26, 2024
1 parent 7de4969 commit b8d2f06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llmfoundry/models/layers/layer_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@
def build_norm(
name: str,
normalized_shape: Union[int, List[int], torch.Size],
eps: Optional[float] = 1e-5,
device: Optional[str] = None,
):
kwargs = {
'normalized_shape': normalized_shape,
'eps': eps,
'device': device,
}

Expand Down

0 comments on commit b8d2f06

Please sign in to comment.