You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sorted code lacks a sorting function and should be changed to sorted_length =sorted([(idx, len(x)) for idx, x in enumerate(text_encoding.input_ids)], key=lambda x: x[1])
, is that correct?
The text was updated successfully, but these errors were encountered:
https://github.com/huggingface/transformers/blob/514de24abfd4416aeba6a6455ad5920f57f3567d/src/transformers/models/kosmos2/processing_kosmos2.py#L214C17-L214C17
The sorted code lacks a sorting function and should be changed to
sorted_length =sorted([(idx, len(x)) for idx, x in enumerate(text_encoding.input_ids)], key=lambda x: x[1])
, is that correct?
The text was updated successfully, but these errors were encountered: