mirror of
https://github.com/wassname/peft.git
synced 2026-09-10 12:20:21 +08:00
add examples and update readme
This commit is contained in:
@@ -107,7 +107,9 @@ def main():
|
||||
pet_config = LoRAConfig(
|
||||
task_type=TaskType.SEQ_2_SEQ_LM, inference_mode=False, r=8, lora_alpha=32, lora_dropout=0.1
|
||||
)
|
||||
checkpoint_name = f"{dataset_name}_{pet_config.pet_type}_{pet_config.task_type}_v1.pt".replace("/", "_")
|
||||
checkpoint_name = (
|
||||
f"{dataset_name}_{model_name_or_path}_{pet_config.pet_type}_{pet_config.task_type}_v1.pt".replace("/", "_")
|
||||
)
|
||||
text_column = "Tweet text"
|
||||
label_column = "text_label"
|
||||
lr = 3e-3
|
||||
|
||||
Reference in New Issue
Block a user