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