Skip to content

Commit

Permalink
fix: Add name and description classmethods to IA3Config (#3844)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkinnison authored Dec 20, 2023
1 parent 8f9b546 commit e1edcbc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ludwig/schema/llms/peft.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,14 @@ def to_config(self, task_type: str = None, **kwargs) -> "PeftConfig":
task_type=task_type,
)

@classmethod
def name(cls) -> str:
return "IA3"

@classmethod
def description(cls) -> str:
return LLM_METADATA["adapter"]["ia3"]["type"].long_description


@DeveloperAPI
def get_adapter_conds():
Expand Down

0 comments on commit e1edcbc

Please sign in to comment.