From b525eb7a7a1659c5a3e7dd4ae65c9a08c31b60c1 Mon Sep 17 00:00:00 2001 From: William Date: Tue, 16 May 2023 17:34:31 +0800 Subject: [PATCH] Update basemodel.py fix typo --- opendelta/basemodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)