↓ 2 callersMethod_parse_exampler"""Parse eval example. input: a dict with keys {"question", "A", "B", "C", "D", "answer"} output: a tuple of (prompt, response).
LLaMA-Factory/src/llamafactory/eval/template.py:27
↓ 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],
LLaMA-Factory/src/llamafactory/model/model_utils/packing.py:55
↓ 1 callersMethod_encode_data_example(
self,
prompt: list[dict[str, str]],
response: list[dict[str, str]],
system:
LLaMA-Factory/src/llamafactory/data/processor/pairwise.py:31
↓ 1 callersMethod_encode_data_example(
self,
prompt: list[dict[str, str]],
response: list[dict[str, str]],
kl_respo
LLaMA-Factory/src/llamafactory/data/processor/feedback.py:31
↓ 1 callersMethod_encode_data_example(
self,
prompt: list[dict[str, str]],
response: list[dict[str, str]],
system:
LLaMA-Factory/src/llamafactory/data/processor/unsupervised.py:31