Skip to content

Commit

Permalink
fix #95
Browse files Browse the repository at this point in the history
 * fixed mistake
  • Loading branch information
wkpark committed Dec 28, 2023
1 parent 73db45e commit 13e4b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/rebasin/weight_matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,8 +829,8 @@ def scipylap(cost):


def _valid_key(key):
if "cond_stage_model.transformer.text_model." in key:
return True
if "cond_stage_model." in key and "transformer.text_model." not in key:
return False
return "model_" not in key


Expand Down

0 comments on commit 13e4b15

Please sign in to comment.