remove sanitize method

This commit is contained in:
Goekdeniz-Guelmez 2025-03-04 22:42:49 +01:00
parent 8b6beea3be
commit d828bc0c2d

View File

@ -199,11 +199,6 @@ class Model(nn.Module):
out = self.lm_head(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
def layers(self):
return self.model.layers