Find answers from the community

Updated 6 months ago

Span marker

At a glance

The post discusses an issue with the entity extractor, where a ValueError: too many values to unpack (expected 2) is encountered. A community member suggests that the issue could be related to the input length being too long or some kind of issue with PyTorch or Hugging Face.

Plain Text
    437             The target length or query length the created mask shall have.
    438     """
--> 439     _, key_value_length = mask.shape
    440     tgt_len = tgt_len if tgt_len is not None else key_value_length
    441 

ValueError: too many values to unpack (expected 2)
Having trouble with the entity extractor
L
1 comment
Hmmm either the input length was too long, of some kind of issue with pytorch or hughingface
Add a reply
Sign up and join the conversation on Discord