MCPcopy Create free account

hub / github.com/Agent-RL/ReCall / functions

Functions1,539 in github.com/Agent-RL/ReCall

↓ 1 callersFunctionmatch_answer
(response)
src/verl/utils/reward_score/prime_math/__init__.py:363
↓ 1 callersFunctionnormalize_model_name
Transform the model name in each model_chunk in each pp stage into the name in inference engine
src/verl/utils/model.py:209
↓ 1 callersFunctionnormalize_pp_vpp_params
Normalize the pp vpp params into a complete named parameters. This is useful when gather parameters from pp ranks and passed to a model witho
src/verl/utils/model.py:198
↓ 1 callersFunctionoffload_megatron_param_and_grad
(module_list: nn.ModuleList, offload_grad=False, hybrid_engine=None)
src/verl/utils/megatron_utils.py:233
↓ 1 callersMethodoffload_params_to_cpu
offload params of models that are not of current pp rank to cpu
src/verl/workers/sharding_manager/megatron_vllm.py:179
↓ 1 callersFunctiononly_int_check
(val)
src/verl/utils/reward_score/prime_code/testing_util.py:89
↓ 1 callersFunctionpad_2d_list_to_length
pad a 2D list (e.g. responses, logprobs) to a 2D tensor.
src/verl/utils/torch_functional.py:231
↓ 1 callersFunctionpad_dataproto_to_divisor
Pad a DataProto to size divisible by size_divisor Args: size_divisor (int): size divisor Returns: data: (DataProto): the pad
src/verl/protocol.py:42
↓ 1 callersFunctionpad_to_sequence_parallel
pad the tokens such that the total length is a multiple of sp world size Args: unpad_tokens: (total_nnz, ...). Tokens after removing padd
src/verl/utils/megatron/sequence_parallel.py:29
↓ 1 callersFunctionparallel_compute_score_async
(evaluation_func, completions, r
src/verl/workers/reward_manager/prime.py:47
↓ 1 callersMethodparse_candidates
Parse candidates from model response
src/flashrag/pipeline/branching_pipeline.py:141
↓ 1 callersFunctionparse_image
(image)
src/flashrag/retriever/utils.py:154
↓ 1 callersMethodparse_ranking
Parse model's pair ranking result into score
src/flashrag/pipeline/branching_pipeline.py:161
↓ 1 callersMethodparse_triple_output
(self, doc_list, output_list)
src/flashrag/refiner/kg_refiner.py:183
↓ 1 callersMethodparse_validation
Parse model's validation result into score based on the paper formula
src/flashrag/pipeline/branching_pipeline.py:152
↓ 1 callersFunctionpatched_ds_v3_load_weights
(model: nn.Module, weights: Iterable[Tuple[str, torch.Tensor]])
src/verl/workers/sharding_manager/patch/fsdp_vllm_patch.py:24
↓ 1 callersMethodpost_process_result
(self, query: Union[str, list], result_list, score_list, num)
src/flashrag/retriever/retriever.py:725
↓ 1 callersMethodpostprocess_long_form
(self, pred, intermediate)
src/flashrag/pipeline/active_pipeline.py:665
↓ 1 callersFunctionpostprocess_packed_seqs
Postprocess packed sequences
src/verl/models/mcore/gpt_model.py:130
↓ 1 callersFunctionprecess_jsonKVpair
(k, v, value_type, rate)
src/flashrag/refiner/llmlingua_compressor.py:136
↓ 1 callersFunctionprepare_fa2_from_position_ids
(query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, position_ids:
src/verl/models/transformers/qwen2_vl.py:135
↓ 1 callersMethodpreprocess_eval_data
(self, items: List)
src/flashrag/pipeline/active_pipeline.py:1224
↓ 1 callersFunctionpreprocess_packed_seqs
Preprocess packed sequences CP splits sequence into CP*2 chunks, and each GPU gets 2 chunks (GPU0 gets first and last chunks, GPU1 gets secon
src/verl/models/mcore/gpt_model.py:66
↓ 1 callersFunctionprocess_image
(image: dict, max_pixels: int = 2048 * 2048, min_pixels: int = 512 * 512)
src/verl/utils/dataset/rl_dataset.py:52
↓ 1 callersFunctionprocess_image_pil
(image)
src/flashrag/generator/utils.py:82
↓ 1 callersFunctionprocess_structured_json_data
(json_data, json_config)
src/flashrag/refiner/llmlingua_compressor.py:109
↓ 1 callersFunctionprocess_validation_metrics
Process validation metrics into a structured format. Args: data_sources: Array of data source identifiers for each sample sam
src/verl/trainer/ppo/metric_utils.py:205
↓ 1 callersMethodre_encode_by_rm_tokenizer
(self, data: DataProto)
src/verl/workers/reward_model/megatron/reward_model.py:53
↓ 1 callersFunctionread_lines
(args)
scripts/evaluation/llm_judge.py:34
↓ 1 callersFunctionrecover_left_padding
Recover left padding from result return result
src/verl/models/mcore/gpt_model.py:221
↓ 1 callersFunctionreliability_guard
This disables various destructive functions and prevents the generated code from interfering with the test (e.g. fork bomb, killing other pro
src/verl/utils/reward_score/prime_code/testing_util.py:644
↓ 1 callersFunctionremove_articles
(text)
src/flashrag/evaluator/utils.py:6
↓ 1 callersFunctionremove_articles
(text)
src/verl/utils/reward_score/re_call.py:49
↓ 1 callersFunctionremove_boxed
(s)
src/verl/utils/reward_score/math.py:49
↓ 1 callersFunctionremove_consecutive_commas
(text)
src/flashrag/refiner/llmlingua_compressor.py:194
↓ 1 callersFunctionremove_left_padding
Remove left padding from input_ids, attention_mask and position_ids return new_input_ids, new_attention_mask, new_position_ids
src/verl/models/mcore/gpt_model.py:181
↓ 1 callersFunctionremove_punc
(text)
src/flashrag/evaluator/utils.py:12
↓ 1 callersFunctionremove_punc
(text)
src/verl/utils/reward_score/re_call.py:55
↓ 1 callersFunctionremove_right_units
(string)
src/verl/utils/reward_score/math.py:140
↓ 1 callersMethodreorder
batch_search: original result like: [[bm25-q1-d1, bm25-q1-d2],[bm25-q2-d1, bm25-q2-d2], [e5-q1-d1, e5-q1-d2], [e5-q2-d1, e5-q2-d2]]
src/flashrag/retriever/retriever.py:699
↓ 1 callersMethodreorder
Note that this operation is in-place
src/verl/protocol.py:657
↓ 1 callersFunctionreplace_added_token
(token, token_map)
src/flashrag/refiner/llmlingua_compressor.py:94
↓ 1 callersFunctionrun
(args)
scripts/evaluation/llm_judge.py:53
↓ 1 callersMethodrun
Get judgement result. Args: item: dataset item, contains question, retrieval result... Returns: judgement: b
src/flashrag/judger/judger.py:22
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/pipeline.py:91
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/active_pipeline.py:108
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/active_pipeline.py:129
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/active_pipeline.py:909
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=ircot_pred_parse)
src/flashrag/pipeline/active_pipeline.py:1163
↓ 1 callersMethodrun
(self, config)
src/verl/trainer/main_ppo.py:83
↓ 1 callersMethodrun_batch
(self, items)
src/flashrag/pipeline/active_pipeline.py:1065
↓ 1 callersFunctionrun_generation
(config)
src/verl/trainer/main_generation.py:44
↓ 1 callersMethodrun_item
(self, item)
src/flashrag/pipeline/active_pipeline.py:962
↓ 1 callersFunctionrun_ppo
(config)
src/verl/trainer/main_ppo.py:62
↓ 1 callersMethodrun_single_beam
(self, prompt, item_retrieval_result=None)
src/flashrag/pipeline/active_pipeline.py:503
↓ 1 callersFunctionrun_test
if test(generated_code) is not None it'll try to run the code. otherwise it'll just return an input and output pair.
src/verl/utils/reward_score/prime_code/testing_util.py:108
↓ 1 callersMethodsample
( self, input_ids: torch.LongTensor, logits_processor: Optional[LogitsProcessorList] =
src/flashrag/pipeline/replug_utils.py:29
↓ 1 callersMethodsave_checkpoint
(self, checkpoint_path, hdfs_path=None, global_steps=0, max_ckpt_to_keep=None)
src/verl/workers/megatron_workers.py:684
↓ 1 callersMethodsave_checkpoint
(self, local_path, hdfs_path=None, global_step=0, max_ckpt_to_keep=None)
src/verl/workers/fsdp_workers.py:891
↓ 1 callersMethodsave_data
Save the evaluated data, including the raw data and the score of each data sample on each metric.
src/flashrag/evaluator/evaluator.py:75
↓ 1 callersMethodsave_metric_score
(self, result_dict, file_name="metric_score.txt")
src/flashrag/evaluator/evaluator.py:69
↓ 1 callersMethodsegment_structured_context
( self, context: List[str], global_rate: float, )
src/flashrag/refiner/llmlingua_compressor.py:2030
↓ 1 callersMethodselect_best_path_single_turn
(self, final_outputs)
src/flashrag/pipeline/active_pipeline.py:1348
↓ 1 callersMethodselect_best_prediction
(self, results)
src/flashrag/pipeline/active_pipeline.py:486
↓ 1 callersMethodselect_idxs
Select specific indices from the DataProto. Args: idxs (torch.Tensor or numpy.ndarray or list): Indices to selec
src/verl/protocol.py:403
↓ 1 callersMethodself_info_mask
(self, sents: List[str], self_info: List[float], mask_level)
src/flashrag/refiner/selective_context_compressor.py:243
↓ 1 callersFunctionset_basic_config
This function sets the global logging format and level. It will be called when import verl
src/verl/utils/logging_utils.py:20
↓ 1 callersFunctionset_default_instruction
(model_name, is_query=True, is_zh=False)
src/flashrag/retriever/utils.py:82
↓ 1 callersMethodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
src/verl/models/llama/megatron/modeling_llama_megatron.py:462
↓ 1 callersFunctionset_pad_token_id
Set pad_token_id to eos_token_id if it is None. Args: tokenizer (transformers.PreTrainedTokenizer): The tokenizer to be set.
src/verl/utils/tokenizer.py:20
↓ 1 callersMethodsetup_embeddings_and_output_layer
Sets up embedding layer in first stage and output layer in last stage. This function initalizes word embeddings in the final stage when we ar
src/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:563
↓ 1 callersFunctionshould_allow_eval
(expr: str)
src/verl/utils/reward_score/prime_math/__init__.py:223
↓ 1 callersMethodsignature
(self)
src/flashrag/evaluator/_bleu.py:74
↓ 1 callersMethodsingle_batch_encode
(self, query_list: Union[List[str], str], is_query=True)
src/flashrag/retriever/encoder.py:38
↓ 1 callersMethodsingle_batch_encode
(self, query_list: Union[List[str], str], modal="image")
src/flashrag/retriever/encoder.py:185
↓ 1 callersFunctionsingle_compute_score
(evaluation_func, completion, reference, task, task_extra_info, executor, timeout=300.)
src/verl/workers/reward_manager/prime.py:26
↓ 1 callersMethodslice
Slice the DataProto and return a new DataProto object. This is an improved version of direct slicing which returns a DataProtoItem.
src/verl/protocol.py:438
↓ 1 callersFunctionsort_placement_group_by_node_ip
Sort the placement groups by node ip, all bundles in a single placement group should be on the same node. FSDPCheckpointManager saves sharde
src/verl/single_controller/ray/base.py:50
↓ 1 callersMethodspawn
spawn to a dictionary of worker groups, each with a subset of method with prefix.
src/verl/single_controller/ray/base.py:332
↓ 1 callersMethodsplit_model
(self)
src/flashrag/generator/multimodal_generator.py:134
↓ 1 callersFunctionstring_int_check
(val)
src/verl/utils/reward_score/prime_code/testing_util.py:93
↓ 1 callersMethodstructured_compress_prompt
Compresses the given prompt context based on a specified structure. Each element of context should be segmented using one or more no
src/flashrag/refiner/llmlingua_compressor.py:408
↓ 1 callersFunctionsymbolic_equal
(a, b, tolerance, timeout=10.0)
src/verl/utils/reward_score/prime_math/grader.py:310
↓ 1 callersMethodtoken_segment
( self, text_input_ids: List[int], iterative_size: int, segments: List[str],
src/flashrag/refiner/llmlingua_compressor.py:1171
↓ 1 callersMethodtraining_step
(self, batch: TensorDict)
src/verl/trainer/fsdp_sft_trainer.py:387
↓ 1 callersFunctionunion_numpy_dict
(tensor_dict1: dict[str, np.ndarray], tensor_dict2: dict[str, np.ndarray])
src/verl/protocol.py:88
↓ 1 callersFunctionunion_tensor_dict
Union two tensordicts.
src/verl/protocol.py:74
↓ 1 callersFunctionunion_two_dict
Union two dict. Will throw an error if there is an item not the same object with the same key. Args: dict1: dict2: Returns:
src/verl/utils/py_functional.py:22
↓ 1 callersFunctionunit_convert
(number, level)
src/verl/utils/flops_counter.py:23
↓ 1 callersFunctionunpad_dataproto
(data: 'DataProto', pad_size)
src/verl/protocol.py:68
↓ 1 callersMethodunwrap_encoder
Unwrap Fusion-in-Decoder encoder, useful to load T5 weights.
src/flashrag/generator/fid.py:64
↓ 1 callersMethodunwrap_encoder
Unwrap Fusion-in-Decoder encoder, useful to load bart weights.
src/flashrag/generator/fid.py:169
↓ 1 callersMethodupdate_actor
(self, data: DataProto)
src/verl/workers/fsdp_workers.py:454
↓ 1 callersMethodupdate_additional_setting
(self)
src/flashrag/generator/openai_generator.py:63
↓ 1 callersMethodupdate_additional_setting
(self)
src/flashrag/generator/generator.py:48
↓ 1 callersMethodupdate_additional_setting
(self)
src/flashrag/retriever/retriever.py:159
↓ 1 callersMethodupdate_base_setting
(self)
src/flashrag/generator/openai_generator.py:54
↓ 1 callersMethodupdate_base_setting
(self)
src/flashrag/generator/generator.py:38
↓ 1 callersMethodupdate_base_setting
(self)
src/flashrag/retriever/retriever.py:135
↓ 1 callersMethodupdate_critic
(self, data: DataProto)
src/verl/workers/fsdp_workers.py:855
← previousnext →701–800 of 1,539, ranked by callers