"save_model_without_heads" is redundant

#385
by madhavanvenkatesh - opened

perturber and emb-extractor works even when provided pytorch_model.bin with the classification weights/biases (no need to remove classification heads to do downstream tasks:
newly initialized: ['cls.predictions.bias', 'cls.predictions.decoder.bias', 'cls.predictions.transform.LayerNorm.bias', 'cls.predictions.transform.LayerNorm.weight', 'cls.predictions.transform.dense.bias', 'cls.predictions.transform.dense.weight'] treated correctly with BertForMaskedLM

ctheodoris changed pull request status to merged

Sign up or log in to comment