Skip to content

TypeError: TextEncodeInput must be Union[TextInputSequence, Tuple[InputSequence, InputSequence]] #48

@bo-jpg

Description

@bo-jpg

Thank you for your contribution. I encountered the following error when training with toy data:

TypeError: TextEncodeInput must be Union[TextInputSequence, Tuple[InputSequence, InputSequence]]

I read online that the following reasons may be the cause:

  1. The maximum length of the tokenizer is not set;
  2. There are blank lines in the jsonl file;
  3. The higher version transformer library is incompatible;
  4. There are Nan values ​​in the data.
    However, I tried the solutions corresponding to the above 4 reasons, and this error is still reported. I want to know why. Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions