File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def build_peft_model(
3434
3535def load_peft_model_for_inference (
3636 base_model : BartForConditionalGeneration ,
37- adapter_path : str = "outputs/bart-base-korea-travel-guide -lora" ,
37+ adapter_path : str = "outputs/bart-base-reddit -lora" ,
3838) -> PeftModel :
3939 inference_model = PeftModel .from_pretrained (base_model , adapter_path ).eval ()
4040 return inference_model
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class DataArgs:
4343class CustomTrainingArgs (Seq2SeqTrainingArguments ):
4444 # overriding the hf defaults
4545 output_dir : str = field (
46- default = "outputs/bart-base-korea-travel-guide -lora" ,
46+ default = "outputs/bart-base-reddit -lora" ,
4747 metadata = {"help" : "Prefix folder for all checkpoints/run logs." },
4848 )
4949 num_train_epochs : int = 6
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def print_trainable_parameters(model: PreTrainedModel) -> None:
2626 return f"trainable params: { trainable_params } || all params: { all_param } || trainable%: { 100 * trainable_params / all_param :.2f} "
2727
2828
29- def load_environ_vars (wandb_project : str = "bart-base-korea-travel-guide -lora" ):
29+ def load_environ_vars (wandb_project : str = "bart-base-reddit -lora" ):
3030 # hf hub
3131 token = os .getenv ("HUGGINGFACE_TOKEN" )
3232 if token :
Original file line number Diff line number Diff line change 1- # sweep spec for Korea-Travel-Guide BART
1+ # sweep spec for bart-base-reddit-lora
22program : scripts/train.py
33
4- project : bart-base-korea-travel-guide -lora
4+ project : bart-base-reddit -lora
55entity : codinglabsong-keio-jp
66
77method : bayes # {grid | random | bayes}
You can’t perform that action at this time.
0 commit comments