Skip to content

Commit

Permalink
Update tasks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ShashankMosaicML authored Dec 17, 2024
1 parent 90569eb commit a6eae45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llmfoundry/data/finetuning/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ def shareGPT_format_preprocessor(inp: dict) -> ChatFormattedDict:
return {'messages': messages}


@dataset_constructor.register('abc/def')
@dataset_constructor.register('qa_format')
def QA_format_preprocessor(inp: dict) -> ChatFormattedDict:
"""Convert from QA format to our chat format."""
try:
Expand All @@ -1181,7 +1181,7 @@ def QA_format_preprocessor(inp: dict) -> ChatFormattedDict:
return {'messages': messages}


@dataset_constructor.register('abc/msg')
@dataset_constructor.register('messages_format')
def messages_format_preprocessor(inp: dict) -> ChatFormattedDict:
"""Convert from QA format to our chat format."""
try:
Expand Down

0 comments on commit a6eae45

Please sign in to comment.