Skip to content

Commit

Permalink
Update ChatTemplate enum to include alpaca and gemma (#1396)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragjn authored Mar 13, 2024
1 parent adab6c5 commit 5d2b88e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/axolotl/utils/config/models/input/v0_4_1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ class RLType(str, Enum):
class ChatTemplate(str, Enum):
"""Chat templates configuration subset"""

alpaca = "alpaca" # pylint: disable=invalid-name
chatml = "chatml" # pylint: disable=invalid-name
inst = "inst" # pylint: disable=invalid-name
gemma = "gemma" # pylint: disable=invalid-name


class LoftQConfig(BaseModel):
Expand Down Expand Up @@ -518,7 +520,7 @@ class Config:
] = None
gpu_memory_limit: Optional[Union[int, str]] = None

chat_template: Optional[Union[Literal["chatml", "inst"], ChatTemplate]] = None
chat_template: Optional[ChatTemplate] = None
default_system_message: Optional[str] = None

# INTERNALS - document for now, generally not set externally
Expand Down

0 comments on commit 5d2b88e

Please sign in to comment.