Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
calpt committed Dec 23, 2024
1 parent f8972be commit 53f2800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def _rename_legacy_weights(self, k):

def _fix_backward_compat(self, config):
# Fix error in previous versions for LoRA/ (IA)^3
if config["version"].startswith("adapters.") and Version(config["version"][9:]) < Version("1.1.0"):
if config.get("version", "").startswith("adapters.") and Version(config["version"][9:]) < Version("1.1.0"):
if (
config["config"].get("architecture", None) == "lora"
and config["config"]["r"] != config["config"]["alpha"]
Expand Down

0 comments on commit 53f2800

Please sign in to comment.