Clean-up composite configs (#34603)
* remove manual assignment tie-word-embeddings * remove another unused attribute * fix tests * fix tests * remove unnecessary overwrites * fix * decoder=True * clean pix2struct * run-all * forgot `_tied_weights_keys` when adding Emu3 * also Aria + fix-copies * and clean aria
This commit is contained in:
committed by
GitHub
parent
c61fcde910
commit
09d5f76274
@@ -2283,7 +2283,7 @@ class ModelTesterMixin:
|
||||
|
||||
def test_tied_weights_keys(self):
|
||||
config, _ = self.model_tester.prepare_config_and_inputs_for_common()
|
||||
config.tie_word_embeddings = True
|
||||
config.get_text_config().tie_word_embeddings = True
|
||||
for model_class in self.all_model_classes:
|
||||
model_tied = model_class(config)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user