diff --git a/llmfoundry/data/finetuning/tasks.py b/llmfoundry/data/finetuning/tasks.py index 86a8724103..dc8f57e571 100644 --- a/llmfoundry/data/finetuning/tasks.py +++ b/llmfoundry/data/finetuning/tasks.py @@ -62,7 +62,7 @@ def preprocessing_fn(example: Dict) -> Dict[str, str]: ChatFormattedDict = Dict[str, List[Dict[str, str]]] Conversation = Union[PromptResponseDict, ChatFormattedDict] ConversationType = Literal['prompt_response', 'chat'] -TokenizedConversation = Dict[str, List[int | str]] +TokenizedConversation = Dict[str, List[Union[int, str]]] def _get_conversation_type(conversation_example: Conversation):