mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 06:54:39 +08:00
remove sanitize method
This commit is contained in:
parent
8b6beea3be
commit
d828bc0c2d
@ -198,11 +198,6 @@ class Model(nn.Module):
|
|||||||
else:
|
else:
|
||||||
out = self.lm_head(out)
|
out = self.lm_head(out)
|
||||||
return out
|
return out
|
||||||
|
|
||||||
def sanitize(self, weights):
|
|
||||||
return {
|
|
||||||
k: v for k, v in weights.items() if "self_attn.rotary_emb.inv_freq" not in k
|
|
||||||
}
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def layers(self):
|
def layers(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user