def grouper_ignore_last(iterable, n):
    "Collect data into fixed-length chunks or blocks"
    # grouper('ABCDEFG', 3) --> ABC DEF
    args = [iter(iterable)] * n
    return zip(*args)
Collect data into fixed-length chunks or blocks
vlmeval/dataset/utils/megabench/scoring/constrained_generation.py