This commit is contained in:
Artiprocher
2025-11-19 20:22:21 +08:00
parent 6ad8d73717
commit eeb55a0ce6
88 changed files with 3113 additions and 78 deletions

View File

@@ -0,0 +1,7 @@
def Qwen2ConnectorStateDictConverter(state_dict):
state_dict_ = {}
for name in state_dict:
if name.startswith("connector."):
name_ = name[len("connector."):]
state_dict_[name_] = state_dict[name]
return state_dict_