Skip to content

Commit

Permalink
Rename lora to peft config
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Velichkevich <[email protected]>
  • Loading branch information
andreyvelich committed Nov 26, 2024
1 parent b8a22c3 commit cc3be21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sdk_v2/kubeflow/training/api/training_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ def train(
if (
trainer
and trainer.fine_tuning_config
and trainer.fine_tuning_config.lora_config
and trainer.fine_tuning_config.peft_config
):
trainer_crd.env = utils.get_lora_config(
trainer.fine_tuning_config.lora_config
trainer.fine_tuning_config.peft_config
)

train_job = models.KubeflowOrgV2alpha1TrainJob(
Expand Down
3 changes: 2 additions & 1 deletion sdk_v2/kubeflow/training/types/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ class LoraConfig:

@dataclass
class FineTuningConfig:
lora_config: Optional[LoraConfig] = None
# TODO (andreyvelich): Add more configs once we support them, e.g. QLoRA.
peft_config: Optional[LoraConfig] = None


# Configuration for the Trainer.
Expand Down

0 comments on commit cc3be21

Please sign in to comment.