Skip to content

Commit

Permalink
Re-Include compacter/compacter++
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoImhof committed Oct 29, 2023
1 parent 4a88931 commit aec4eba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions back_comp/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def get_new_adapter_config_strings():
"double_seq_bn_inv",
"par_bn",
"scaled_par_bn",
#"compacter",
#"compacter++",
"compacter",
"compacter++",
"prefix_tuning",
"prefix_tuning_flat",
"lora",
Expand Down
2 changes: 1 addition & 1 deletion back_comp/create_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

# process & save output
model_output_n, last_hidden_state = convert_tensors_to_list(model_output)
save_to_jsonl(model_output_n, adapter_config, os.path.join(model_dir, "output.jsonl"))
save_to_jsonl(model_output_n, config, os.path.join(model_dir, "output.jsonl"))

# save adapter weights
adapter_save_dir = os.path.join(model_dir, adapter_name)
Expand Down

0 comments on commit aec4eba

Please sign in to comment.