Skip to content

Commit 5ad5ef1

Browse files
committed
Allow both ROME and MEMIT to use cache
1 parent e96980e commit 5ad5ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

experiments/evaluate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def main(
140140
if conserve_memory
141141
else dict()
142142
)
143-
etc_args = dict(cache_template=cache_template) if "ROME" in alg_name else dict()
143+
etc_args = dict(cache_template=cache_template) if any(alg in alg_name for alg in ["ROME", "MEMIT"]) else dict()
144144

145145
start = time()
146146
edited_model, weights_copy = apply_algo(

0 commit comments

Comments
 (0)