Skip to content

Commit

Permalink
attr fix
Browse files Browse the repository at this point in the history
  • Loading branch information
calpt committed Dec 24, 2024
1 parent 5334521 commit 62c1f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/model_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def init_adapters(self, model_config, adapters_config, add_prefix_tuning_pool=Tr
init_adapters_config(self, model_config, adapters_config)

# Initialize adapter types defined in interface
if self.base_model.adapter_interface is not None:
if getattr(self.base_model, "adapter_interface", None) is not None:
for adapter_type in self.base_model.adapter_interface.adapter_types:
init_func = METHOD_INIT_MAPPING[adapter_type]
init_func(self.base_model)
Expand Down

0 comments on commit 62c1f83

Please sign in to comment.