add olmo2

This commit is contained in:
Awni Hannun 2024-11-27 12:15:45 -08:00
parent b0ef3a4c9e
commit fde4b4dc42
2 changed files with 3 additions and 2 deletions

View File

@ -231,7 +231,9 @@ class TransformerBlock(nn.Module):
self.post_attention_layernorm = nn.RMSNorm(
args.hidden_size, eps=args.rms_norm_eps
)
self.post_feedforward_layernorm = nn.RMSNorm(args.hidden_size, eps=args.rms_norm_eps)
self.post_feedforward_layernorm = nn.RMSNorm(
args.hidden_size, eps=args.rms_norm_eps
)
self.args = args
def __call__(

View File

@ -813,6 +813,5 @@ class TestModels(unittest.TestCase):
)
if __name__ == "__main__":
unittest.main()