diff --git a/opendelta/basemodel.py b/opendelta/basemodel.py index f060d88..7a9ad0d 100644 --- a/opendelta/basemodel.py +++ b/opendelta/basemodel.py @@ -643,7 +643,7 @@ class DeltaBase(nn.Module, SaveLoadMixin): """ def _caller(_org_func, includes, *args, **kwargs): state_dict = _org_func(*args, **kwargs) - keys = list(state_dict.keys())3 + keys = list(state_dict.keys()) for n in keys: if n not in includes: state_dict.pop(n)