↓ 2 callersFunctionallocate(grouped: Dict[float, List[Dict[str,Any]]], total: int,
share: Dict[float,float], caps: Optional[
src/training/qwen1p7b_rl/dataset/rl_model_ratio_v2/convert_data_to_verl.py:269
↓ 2 callersFunctionget_seqlens_in_batchr"""Get the sequnce lengths in the current batch. e.g. ```python # input [ [1, 1, 2, 2, 2, 0], [1, 2, 2, 3, 3, 3],
llamafactory/src/llamafactory/model/model_utils/packing.py:55