def split_list(lst, n):
    """Split a list into n (roughly) equal-sized chunks"""
    chunk_size = math.ceil(len(lst) / n)  # integer division
    return [lst[i:i+chunk_size] for i in range(0, len(lst), chunk_size)]
Split a list into n (roughly) equal-sized chunks
internvl_chat_llava/llava/eval/model_vqa.py