Skip to content

Commit

Permalink
used older union operator for legacy support
Browse files Browse the repository at this point in the history
  • Loading branch information
milocress committed Jan 18, 2024
1 parent 5f5a144 commit 3ef2b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llmfoundry/data/finetuning/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def preprocessing_fn(example: Dict) -> Dict[str, str]:

PromptResponseDict = Dict[str, str]
ChatFormattedDict = Dict[str, List[Dict[str, str]]]
Conversation = PromptResponseDict | ChatFormattedDict
Conversation = Union[PromptResponseDict, ChatFormattedDict]
ConversationType = Literal['prompt_response', 'chat']
TokenizedConversation = Dict[str, List[int | str]]

Expand Down

0 comments on commit 3ef2b20

Please sign in to comment.