mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 18:26:37 +08:00
fix
This commit is contained in:
parent
189be53988
commit
0e8b7339af
@ -269,7 +269,7 @@ class Model(nn.Module):
|
||||
cache=None,
|
||||
):
|
||||
out = self.model(inputs, cache)
|
||||
return self.embed_tokens.as_linear(out)
|
||||
return self.model.embed_tokens.as_linear(out)
|
||||
|
||||
def sanitize(self, weights):
|
||||
if "model.layers.0.mlp.experts.0.up_proj.weight" not in weights:
|
||||
|
Loading…
Reference in New Issue
Block a user