1 parent 54388dc commit 02239b3Copy full SHA for 02239b3
1 file changed
src/heretic/main.py
@@ -738,6 +738,8 @@ def count_completed_trials() -> int:
738
for name, value in get_trial_parameters(trial).items():
739
print(f" * {name} = [bold]{value}[/]")
740
741
+ # Per https://github.com/huggingface/peft/issues/868#issuecomment-1820642893 once a LoRA is merged it's
742
+ # expected to be empty. Provide a utility function to restore the previous LoRA-ified state.
743
def reset_trial_model() -> None:
744
print("* Resetting model...")
745
model.reset_model()
0 commit comments