↓ 5 callersMethod_search_or_batch_search(self, query: Union[str, list], target_modal, num, return_score, method, retriever_list)
tool/FlashRAG/flashrag/retriever/retriever.py:659
↓ 4 callersFunctioncompute_reward(
r: Union[torch.Tensor, float],
kl_coef: float,
kl: Union[torch.Tensor, list[torch.Tensor]],
train/R3RAG_OpenRLHF/openrlhf/models/utils.py:37
↓ 4 callersMethodpacked_samples_forward(self, model, packed_input_ids, packed_attention_masks, packed_seq_lens, prompt_id_lens)
train/R3RAG_OpenRLHF/openrlhf/trainer/dpo_trainer.py:404