Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Agent-RL/ReCall
/ functions
Functions
1,539 in github.com/Agent-RL/ReCall
⨍
Functions
1,539
◇
Types & classes
237
↳
Endpoints
28
Function
normalize_answer
(answer: Optional[str])
src/verl/utils/reward_score/prime_math/math_normalize.py:43
Method
output
(self)
src/flashrag/dataset/dataset.py:162
Function
pad_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
Method
pad_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
Function
parallel_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
Function
parallel_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
Function
parallel_put
(data_list, max_workers=None)
src/verl/utils/ray_utils.py:23
Method
parse_model_output
(triples_text: str)
src/flashrag/refiner/kg_refiner.py:184
Function
post_process_logits
(input_ids, logits, temperature, top_k, top_p)
src/verl/utils/torch_functional.py:395
Method
postprocess_data
Get chunk data of this tp rank since we do all gather in preprocess.
src/verl/workers/sharding_manager/fsdp_vllm.py:167
Method
postprocess_data
(self, data: DataProto)
src/verl/workers/sharding_manager/fsdp_sglang.py:140
Method
postprocess_data
Split the data to follow FSDP partition
src/verl/workers/sharding_manager/fsdp_ulysses.py:70
Method
postprocess_data
(self, data: DataProto)
src/verl/workers/sharding_manager/megatron_vllm.py:459
Method
pp_group
(self)
src/verl/workers/sharding_manager/megatron_vllm.py:225
Method
pp_models
(self)
src/verl/workers/sharding_manager/megatron_vllm.py:229
Method
pp_rank
(self)
src/verl/workers/sharding_manager/megatron_vllm.py:221
Method
pp_size
(self)
src/verl/single_controller/base/megatron/worker_group.py:46
Method
pp_size
(self)
src/verl/workers/sharding_manager/megatron_vllm.py:217
Function
prepare_decoder_attention_mask
(attention_mask, input_shape, inputs_embeds)
src/verl/utils/torch_functional.py:470
Method
preprocess_data
All gather across tp group to make each rank has identical input.
src/verl/workers/sharding_manager/fsdp_vllm.py:153
Method
preprocess_data
All gather across tp group to make each rank has identical input.
src/verl/workers/sharding_manager/fsdp_sglang.py:129
Method
preprocess_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
Method
preprocess_data
(self, data: DataProto)
src/verl/workers/sharding_manager/megatron_vllm.py:450
Method
print_size
(self, prefix="")
src/verl/protocol.py:263
Function
process
(iter)
src/verl/utils/debug/trajectory_tracker.py:94
Function
process_image
(content_dict)
src/flashrag/generator/utils.py:91
Function
process_item
(reward_fn, data_source, response_lst, reward_data)
src/verl/trainer/main_eval.py:63
Method
process_retriever
(retriever)
src/flashrag/retriever/retriever.py:660
Function
put_data
(index, data)
src/verl/utils/ray_utils.py:25
Method
question
(self)
src/flashrag/dataset/dataset.py:150
Function
qwen2_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
Function
qwen2_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
Function
re_call
(args, config_dict)
scripts/evaluation/run_eval.py:74
Function
read_jsonl
(file_path)
src/flashrag/retriever/utils.py:137
Method
recover
( self, original_prompt: str, compressed_prompt: str, response: str, )
src/flashrag/refiner/llmlingua_compressor.py:1743
Function
register
(dispatch_mode=Dispatch.ALL_TO_ALL, execute_mode=Execute.ALL, blocking=True, materialize_futures=True)
src/verl/single_controller/base/decorator.py:399
Function
register_empty_parameter
(module, name, param)
src/verl/utils/fsdp_utils.py:188
Function
remove_boxed
(s)
src/verl/utils/reward_score/prime_math/__init__.py:323
Function
remove_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
Method
rename
Note that this function only rename the key in the batch
src/verl/protocol.py:516
Function
rerank_manager
Decorator used for reranking retrieved documents.
src/flashrag/retriever/retriever.py:94
Method
resume_dataset_state
(self)
src/verl/utils/dataset/rl_dataset.py:160
Function
retry
(max: int=10, sleep: int=1)
src/flashrag/generator/generator.py:276
Function
retry
(max: int=10, sleep: int=1)
src/flashrag/retriever/retriever.py:432
Function
retry
(max: int=10, sleep: int=1)
src/re_call/inference/re_call.py:8
Function
retry
(max: int=10, sleep: int=1, logger: logging.Logger=None)
scripts/evaluation/utils.py:28
Method
run
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/branching_pipeline.py:34
Method
run
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/branching_pipeline.py:172
Method
run
The overall inference process of a RAG framework.
src/flashrag/pipeline/mm_pipeline.py:19
Method
run
(self, dataset, do_eval=True, perform_modality_dict=PERFORM_MODALITY_DICT, pred_process_func=None)
src/flashrag/pipeline/mm_pipeline.py:61
Method
run
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/pipeline.py:181
Method
run
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/pipeline.py:251
Method
run
(self, dataset, do_eval=True, pred_process_fun=None, long_form=False)
src/flashrag/pipeline/active_pipeline.py:728
Method
run
(self, dataset, do_eval=True, pred_process_fun=selfask_pred_parse)
src/flashrag/pipeline/active_pipeline.py:1034
Method
run
(self, dataset, do_eval = True)
src/flashrag/pipeline/active_pipeline.py:1364
Method
run_batch_pred
(self, dataset)
src/flashrag/pipeline/active_pipeline.py:742
Method
run_batch_pred_long_form
(self, dataset)
src/flashrag/pipeline/active_pipeline.py:697
Method
run_item
(self, item)
src/flashrag/pipeline/active_pipeline.py:94
Method
run_item
(self, item)
src/flashrag/pipeline/active_pipeline.py:862
Function
run_judge
(line)
scripts/evaluation/llm_judge.py:64
Method
save_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
Method
save_checkpoint
(self, local_path: str, hdfs_path: str = None,
src/verl/utils/checkpoint/checkpoint_manager.py:63
Method
save_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
Method
save_checkpoint
(self, checkpoint_path, hdfs_path=None, global_step=0, max_ckpt_to_keep=None)
src/verl/workers/megatron_workers.py:481
Method
save_checkpoint
(self, local_path, hdfs_path=None, global_step=0, max_ckpt_to_keep=None)
src/verl/workers/fsdp_workers.py:601
Method
save_to_disk
(self, filepath)
src/verl/protocol.py:253
Function
save_to_hdfs
(data: io.BytesIO, name, hdfs_dir, verbose)
src/verl/utils/debug/trajectory_tracker.py:33
Function
search
(request: QueryRequest)
scripts/serving/retriever_serving.py:57
Method
search
(self, *args, **kwargs)
src/flashrag/retriever/retriever.py:202
Method
search
(self, query, target_modal="text", num: Union[list, int, None] = None, return_score=False)
src/flashrag/retriever/retriever.py:826
Function
selfask_pred_parse
Parsing the prediction results of self-ask format.
src/flashrag/utils/pred_parse.py:3
Method
series_to_item
(ls)
src/verl/utils/dataset/sft_dataset.py:78
Method
series_to_item
(ls)
src/verl/utils/dataset/multiturn_sft_dataset.py:63
Method
set_additional_resource
(self, additional_resource)
src/verl/single_controller/ray/base.py:157
Method
set_checkpoint
Enable or disable checkpointing in the encoder. See https://pytorch.org/docs/stable/checkpoint.html
src/flashrag/generator/fid.py:80
Method
set_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
Method
set_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
Method
set_pooling_method
(method, model2pooling)
src/flashrag/config/config.py:122
Method
set_retrieval_keys
(model2path, model2pooling, method2index, config)
src/flashrag/config/config.py:128
Function
signal_handler
(signum, frame)
src/verl/utils/reward_score/prime_math/grader.py:347
Method
signature
Returns a signature for the tokenizer. :return: signature string
src/flashrag/evaluator/_bleu.py:23
Method
signature
(self)
src/flashrag/evaluator/_bleu.py:40
Method
split_string_to_words
(input_string)
src/flashrag/refiner/llmlingua_compressor.py:2237
Method
spread
(self)
src/verl/utils/seqlen_balancing.py:60
Function
squeeze
(x)
src/verl/utils/model.py:38
Method
start_worker_aliveness_check
(self, every_n_seconds=1)
src/verl/single_controller/base/worker_group.py:123
Method
store
(self)
src/verl/single_controller/base/worker_group.py:47
Method
supported_type
(precision: Union[str, int])
src/verl/utils/torch_dtypes.py:43
Method
supported_types
()
src/verl/utils/torch_dtypes.py:47
Method
sync_sentence
(sentences, text)
src/flashrag/refiner/llmlingua_compressor.py:1309
Method
this_rank_models
(self)
src/verl/workers/sharding_manager/megatron_vllm.py:213
Method
tie_weights
(self)
src/flashrag/generator/fid.py:88
Method
tie_weights
(self)
src/flashrag/generator/fid.py:184
Function
timeout
(timeout_seconds: int = 8)
src/verl/utils/reward_score/prime_math/__init__.py:38
Function
timeout_handler
(signum, frame)
src/verl/utils/reward_score/prime_code/testing_util.py:60
Method
to_str
(precision)
src/verl/utils/torch_dtypes.py:74
Function
tokenize_and_postprocess_data
input_data is the output from tokenizer.
src/verl/utils/torch_functional.py:261
Method
tp_size
(self)
src/verl/single_controller/base/megatron/worker_group.py:36
Function
ulysses_flash_attn_forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
src/verl/models/transformers/qwen2_vl.py:218
Function
unfold_batch_dim
Unfold the first n dims as new batch dim
src/verl/protocol.py:133
← previous
next →
1,401–1,500 of 1,539, ranked by callers