MCPcopy Create free account

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

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

Functionnormalize_answer
(answer: Optional[str])
src/verl/utils/reward_score/prime_math/math_normalize.py:43
Methodoutput
(self)
src/flashrag/dataset/dataset.py:162
Functionpad_packed_inputs
pad the tokens such that the total length is a multiple of size. This function is useful when applying sequence parallel and context parallel
src/verl/utils/model.py:331
Methodpad_token_id
`Optional[int]`: Id of the padding token in the vocabulary. Returns `None` if the token has not been set.
src/verl/workers/rollout/tokenizer.py:36
Functionparallel_init_module_fn
Generate a function to initialize sub-modules in the `module` with `shard_states` from huggingface checkpoint. Args: module (tor
src/verl/utils/fsdp_utils.py:263
Functionparallel_load_safetensors
Parallel load safetensors from huggingface checkpoint Huggingface checkpoint contains: - config.json: a json file for model configurati
src/verl/utils/fsdp_utils.py:207
Functionparallel_put
(data_list, max_workers=None)
src/verl/utils/ray_utils.py:23
Methodparse_model_output
(triples_text: str)
src/flashrag/refiner/kg_refiner.py:184
Functionpost_process_logits
(input_ids, logits, temperature, top_k, top_p)
src/verl/utils/torch_functional.py:395
Methodpostprocess_data
Get chunk data of this tp rank since we do all gather in preprocess.
src/verl/workers/sharding_manager/fsdp_vllm.py:167
Methodpostprocess_data
(self, data: DataProto)
src/verl/workers/sharding_manager/fsdp_sglang.py:140
Methodpostprocess_data
Split the data to follow FSDP partition
src/verl/workers/sharding_manager/fsdp_ulysses.py:70
Methodpostprocess_data
(self, data: DataProto)
src/verl/workers/sharding_manager/megatron_vllm.py:459
Methodpp_group
(self)
src/verl/workers/sharding_manager/megatron_vllm.py:225
Methodpp_models
(self)
src/verl/workers/sharding_manager/megatron_vllm.py:229
Methodpp_rank
(self)
src/verl/workers/sharding_manager/megatron_vllm.py:221
Methodpp_size
(self)
src/verl/single_controller/base/megatron/worker_group.py:46
Methodpp_size
(self)
src/verl/workers/sharding_manager/megatron_vllm.py:217
Functionprepare_decoder_attention_mask
(attention_mask, input_shape, inputs_embeds)
src/verl/utils/torch_functional.py:470
Methodpreprocess_data
All gather across tp group to make each rank has identical input.
src/verl/workers/sharding_manager/fsdp_vllm.py:153
Methodpreprocess_data
All gather across tp group to make each rank has identical input.
src/verl/workers/sharding_manager/fsdp_sglang.py:129
Methodpreprocess_data
AllGather data from sp region This is because the data is first sharded along the FSDP dimension as we utilize the DP_COMPUTE
src/verl/workers/sharding_manager/fsdp_ulysses.py:57
Methodpreprocess_data
(self, data: DataProto)
src/verl/workers/sharding_manager/megatron_vllm.py:450
Methodprint_size
(self, prefix="")
src/verl/protocol.py:263
Functionprocess
(iter)
src/verl/utils/debug/trajectory_tracker.py:94
Functionprocess_image
(content_dict)
src/flashrag/generator/utils.py:91
Functionprocess_item
(reward_fn, data_source, response_lst, reward_data)
src/verl/trainer/main_eval.py:63
Methodprocess_retriever
(retriever)
src/flashrag/retriever/retriever.py:660
Functionput_data
(index, data)
src/verl/utils/ray_utils.py:25
Methodquestion
(self)
src/flashrag/dataset/dataset.py:150
Functionqwen2_attn_forward
Adapted from transformers 4.49.0 to support Ulysses sequence parallelism for transformers >= 4.48.0. NOTE: This function has been tested onl
src/verl/models/transformers/qwen2.py:148
Functionqwen2_flash_attn_forward
Adapted from transformers 4.47.1 to support Ulysses sequence parallelism. NOTE: This function is only tested on transformers versions betwee
src/verl/models/transformers/qwen2.py:29
Functionre_call
(args, config_dict)
scripts/evaluation/run_eval.py:74
Functionread_jsonl
(file_path)
src/flashrag/retriever/utils.py:137
Methodrecover
( self, original_prompt: str, compressed_prompt: str, response: str, )
src/flashrag/refiner/llmlingua_compressor.py:1743
Functionregister
(dispatch_mode=Dispatch.ALL_TO_ALL, execute_mode=Execute.ALL, blocking=True, materialize_futures=True)
src/verl/single_controller/base/decorator.py:399
Functionregister_empty_parameter
(module, name, param)
src/verl/utils/fsdp_utils.py:188
Functionremove_boxed
(s)
src/verl/utils/reward_score/prime_math/__init__.py:323
Functionremove_pad_token
Remove the pad token. Args: input_ids shape: [bs, seq_length] attention_mask shape: [bs, seq_length] Returns: no_pad
src/verl/utils/torch_functional.py:305
Methodrename
Note that this function only rename the key in the batch
src/verl/protocol.py:516
Functionrerank_manager
Decorator used for reranking retrieved documents.
src/flashrag/retriever/retriever.py:94
Methodresume_dataset_state
(self)
src/verl/utils/dataset/rl_dataset.py:160
Functionretry
(max: int=10, sleep: int=1)
src/flashrag/generator/generator.py:276
Functionretry
(max: int=10, sleep: int=1)
src/flashrag/retriever/retriever.py:432
Functionretry
(max: int=10, sleep: int=1)
src/re_call/inference/re_call.py:8
Functionretry
(max: int=10, sleep: int=1, logger: logging.Logger=None)
scripts/evaluation/utils.py:28
Methodrun
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/branching_pipeline.py:34
Methodrun
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/branching_pipeline.py:172
Methodrun
The overall inference process of a RAG framework.
src/flashrag/pipeline/mm_pipeline.py:19
Methodrun
(self, dataset, do_eval=True, perform_modality_dict=PERFORM_MODALITY_DICT, pred_process_func=None)
src/flashrag/pipeline/mm_pipeline.py:61
Methodrun
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/pipeline.py:181
Methodrun
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/pipeline.py:251
Methodrun
(self, dataset, do_eval=True, pred_process_fun=None, long_form=False)
src/flashrag/pipeline/active_pipeline.py:728
Methodrun
(self, dataset, do_eval=True, pred_process_fun=selfask_pred_parse)
src/flashrag/pipeline/active_pipeline.py:1034
Methodrun
(self, dataset, do_eval = True)
src/flashrag/pipeline/active_pipeline.py:1364
Methodrun_batch_pred
(self, dataset)
src/flashrag/pipeline/active_pipeline.py:742
Methodrun_batch_pred_long_form
(self, dataset)
src/flashrag/pipeline/active_pipeline.py:697
Methodrun_item
(self, item)
src/flashrag/pipeline/active_pipeline.py:94
Methodrun_item
(self, item)
src/flashrag/pipeline/active_pipeline.py:862
Functionrun_judge
(line)
scripts/evaluation/llm_judge.py:64
Methodsave_checkpoint
(self, local_path: str, hdfs_path: str = None, global_step: int = 0, max_ckpt_to_keep=None)
src/verl/utils/checkpoint/fsdp_checkpoint_manager.py:113
Methodsave_checkpoint
(self, local_path: str, hdfs_path: str = None,
src/verl/utils/checkpoint/checkpoint_manager.py:63
Methodsave_checkpoint
(self, local_path: str, hdfs_path: str = None, global_step: int = 0, max_ckpt_to_keep=None)
src/verl/utils/checkpoint/megatron_checkpoint_manager.py:222
Methodsave_checkpoint
(self, checkpoint_path, hdfs_path=None, global_step=0, max_ckpt_to_keep=None)
src/verl/workers/megatron_workers.py:481
Methodsave_checkpoint
(self, local_path, hdfs_path=None, global_step=0, max_ckpt_to_keep=None)
src/verl/workers/fsdp_workers.py:601
Methodsave_to_disk
(self, filepath)
src/verl/protocol.py:253
Functionsave_to_hdfs
(data: io.BytesIO, name, hdfs_dir, verbose)
src/verl/utils/debug/trajectory_tracker.py:33
Functionsearch
(request: QueryRequest)
scripts/serving/retriever_serving.py:57
Methodsearch
(self, *args, **kwargs)
src/flashrag/retriever/retriever.py:202
Methodsearch
(self, query, target_modal="text", num: Union[list, int, None] = None, return_score=False)
src/flashrag/retriever/retriever.py:826
Functionselfask_pred_parse
Parsing the prediction results of self-ask format.
src/flashrag/utils/pred_parse.py:3
Methodseries_to_item
(ls)
src/verl/utils/dataset/sft_dataset.py:78
Methodseries_to_item
(ls)
src/verl/utils/dataset/multiturn_sft_dataset.py:63
Methodset_additional_resource
(self, additional_resource)
src/verl/single_controller/ray/base.py:157
Methodset_checkpoint
Enable or disable checkpointing in the encoder. See https://pytorch.org/docs/stable/checkpoint.html
src/flashrag/generator/fid.py:80
Methodset_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/qwen2/megatron/modeling_qwen2_megatron.py:538
Methodset_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:542
Methodset_pooling_method
(method, model2pooling)
src/flashrag/config/config.py:122
Methodset_retrieval_keys
(model2path, model2pooling, method2index, config)
src/flashrag/config/config.py:128
Functionsignal_handler
(signum, frame)
src/verl/utils/reward_score/prime_math/grader.py:347
Methodsignature
Returns a signature for the tokenizer. :return: signature string
src/flashrag/evaluator/_bleu.py:23
Methodsignature
(self)
src/flashrag/evaluator/_bleu.py:40
Methodsplit_string_to_words
(input_string)
src/flashrag/refiner/llmlingua_compressor.py:2237
Methodspread
(self)
src/verl/utils/seqlen_balancing.py:60
Functionsqueeze
(x)
src/verl/utils/model.py:38
Methodstart_worker_aliveness_check
(self, every_n_seconds=1)
src/verl/single_controller/base/worker_group.py:123
Methodstore
(self)
src/verl/single_controller/base/worker_group.py:47
Methodsupported_type
(precision: Union[str, int])
src/verl/utils/torch_dtypes.py:43
Methodsupported_types
()
src/verl/utils/torch_dtypes.py:47
Methodsync_sentence
(sentences, text)
src/flashrag/refiner/llmlingua_compressor.py:1309
Methodthis_rank_models
(self)
src/verl/workers/sharding_manager/megatron_vllm.py:213
Methodtie_weights
(self)
src/flashrag/generator/fid.py:88
Methodtie_weights
(self)
src/flashrag/generator/fid.py:184
Functiontimeout
(timeout_seconds: int = 8)
src/verl/utils/reward_score/prime_math/__init__.py:38
Functiontimeout_handler
(signum, frame)
src/verl/utils/reward_score/prime_code/testing_util.py:60
Methodto_str
(precision)
src/verl/utils/torch_dtypes.py:74
Functiontokenize_and_postprocess_data
input_data is the output from tokenizer.
src/verl/utils/torch_functional.py:261
Methodtp_size
(self)
src/verl/single_controller/base/megatron/worker_group.py:36
Functionulysses_flash_attn_forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
src/verl/models/transformers/qwen2_vl.py:218
Functionunfold_batch_dim
Unfold the first n dims as new batch dim
src/verl/protocol.py:133
← previousnext →1,401–1,500 of 1,539, ranked by callers