mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 16:58:45 +08:00
add olmo2
This commit is contained in:
parent
b0ef3a4c9e
commit
fde4b4dc42
@ -231,7 +231,9 @@ class TransformerBlock(nn.Module):
|
|||||||
self.post_attention_layernorm = nn.RMSNorm(
|
self.post_attention_layernorm = nn.RMSNorm(
|
||||||
args.hidden_size, eps=args.rms_norm_eps
|
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
|
self.args = args
|
||||||
|
|
||||||
def __call__(
|
def __call__(
|
||||||
|
@ -813,6 +813,5 @@ class TestModels(unittest.TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
Loading…
Reference in New Issue
Block a user