MCPcopy Create free account

hub / github.com/Alibaba-NLP/VRAG / functions

Functions1,037 in github.com/Alibaba-NLP/VRAG

↓ 1 callersFunctionmake_map_fn_test
(split)
VRAG-RL/scripts/hf_dataset_convert.py:59
↓ 1 callersFunctionmasked_var
Compute variance of tensor with masked values.
VRAG-RL/verl/utils/torch_functional.py:123
↓ 1 callersFunctionmatch_answer
(response)
VRAG-RL/verl/utils/reward_score/prime_math/__init__.py:363
↓ 1 callersFunctionmean_pool
(last_hidden_state: torch.Tensor, attention_mask: torch.Tensor)
search_engine/models/GVE/model_utils.py:133
↓ 1 callersFunctionmerge_by_placement
(tensors: List[torch.Tensor], placement: Placement)
VRAG-RL/scripts/model_merger.py:25
↓ 1 callersFunctionndcg
计算归一化折扣累积增益(NDCG) :param sorted_docs: 一个列表,表示已经排好序的文档 :param golden_answer_list: 一个列表,表示所有相关文档(golden answers) :return: NDCG 值
VRAG-RL/verl/workers/reward_manager/rm.py:82
↓ 1 callersFunctionnormalize_model_name
Transform the model name in each model_chunk in each pp stage into the name in inference engine
VRAG-RL/verl/utils/model.py:209
↓ 1 callersFunctionoffload_megatron_param_and_grad
(module_list: nn.ModuleList, offload_grad=False, hybrid_engine=None)
VRAG-RL/verl/utils/megatron_utils.py:227
↓ 1 callersMethodoffload_params_to_cpu
offload params of models that are not of current pp rank to cpu
VRAG-RL/verl/workers/sharding_manager/megatron_vllm.py:173
↓ 1 callersFunctiononly_int_check
(val)
VRAG-RL/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.
VRAG-RL/verl/utils/torch_functional.py:228
↓ 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
VRAG-RL/verl/utils/megatron/sequence_parallel.py:29
↓ 1 callersFunctionparallel_compute_score_async
(evaluation_func, completions, r
VRAG-RL/verl/workers/reward_manager/prime.py:46
↓ 1 callersFunctionparse_judge_response
(response)
VRAG-RL/verl/workers/reward_manager/rm.py:53
↓ 1 callersFunctionparse_tool_call
从 content 中解析 tool call
demo/vimrag_app.py:685
↓ 1 callersMethodpool_sentence_embedding
(self, last_hidden_state: Tensor, attention_mask: Tensor)
search_engine/models/GVE/models.py:149
↓ 1 callersMethodpostprocess_predictions
Process (text-based) predictions from llm into actions and validity flags. Args: predictions: List of raw predic
VRAG-RL/vrag_agent/generation.py:639
↓ 1 callersFunctionprepare_fa2_from_position_ids
(query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, position_ids:
VRAG-RL/verl/models/transformers/qwen2_vl.py:134
↓ 1 callersFunctionprint_tree
(nid, prefix='', is_last=True)
demo/vimrag_agent.py:493
↓ 1 callersFunctionprocess_image
(image: dict, max_pixels: int = 2048 * 2048, min_pixels: int = 512 * 512)
VRAG-RL/verl/utils/dataset/rl_dataset.py:51
↓ 1 callersFunctionprocess_single_video
处理单个视频,提取帧并转换为 base64 格式的 OpenAI 消息内容。 Returns: base64_content 列表
demo/vimrag_utils.py:54
↓ 1 callersMethodre_encode_by_rm_tokenizer
(self, data: DataProto)
VRAG-RL/verl/workers/reward_model/megatron/reward_model.py:53
↓ 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
VRAG-RL/verl/utils/reward_score/prime_code/testing_util.py:644
↓ 1 callersMethodremove_previous_save_local_path
(self)
VRAG-RL/verl/utils/checkpoint/checkpoint_manager.py:63
↓ 1 callersFunctionrender_answer_card
渲染答案卡片
demo/vimrag_app.py:848
↓ 1 callersFunctionrender_file_tags
渲染文件标签列表
demo/vimrag_app.py:813
↓ 1 callersFunctionrender_graph_html
生成 vis.js 图的 HTML 代码 Args: nodes: [{"id": str, "label": str, "title": str, "color": dict, "shape": str, ...}] edges: [{"
demo/vimrag_app.py:435
↓ 1 callersFunctionrender_memory_card
渲染记忆卡片
demo/vimrag_app.py:833
↓ 1 callersFunctionrender_search_badge
渲染搜索徽章
demo/vimrag_app.py:797
↓ 1 callersFunctionrender_sidebar
渲染侧边栏
demo/vimrag_app.py:708
↓ 1 callersFunctionrender_thinking_block
渲染思考块
demo/vimrag_app.py:780
↓ 1 callersMethodreorder
Note that this operation is in-place
VRAG-RL/verl/protocol.py:660
↓ 1 callersFunctionreset_state
重置状态(新问题时调用)
demo/vimrag_app.py:590
↓ 1 callersMethodrm_score
(self,data_eval_item)
VRAG-RL/verl/workers/reward_manager/rm.py:137
↓ 1 callersMethodrun
(self, config)
VRAG-RL/verl/trainer/main_ppo.py:74
↓ 1 callersFunctionrun_generation
(config)
VRAG-RL/verl/trainer/main_generation.py:44
↓ 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.
VRAG-RL/verl/utils/reward_score/prime_code/testing_util.py:108
↓ 1 callersFunctionsample_frames
(frames: List[Union[str, Image.Image]], max_segments: int)
search_engine/models/Qwen3_VL_Embedding/qwen3_vl_embedding.py:119
↓ 1 callersMethodsave_checkpoint
(self, local_path, hdfs_path=None, global_step=0, remove_previous_ckpt=False)
VRAG-RL/verl/workers/fsdp_workers.py:868
↓ 1 callersMethodsearch
Call search service API.
demo/vimrag_agent.py:120
↓ 1 callersMethodsearch
(self, queries, top_k=3)
search_engine/search_engine.py:281
↓ 1 callersMethodselect_idxs
Select specific indices from the DataProto. Args: idxs (torch.Tensor or numpy.ndarray or list): Indices to selec
VRAG-RL/verl/protocol.py:406
↓ 1 callersFunctionselect_reward_fn
(data_source)
VRAG-RL/verl/trainer/main_eval.py:27
↓ 1 callersFunctionset_basic_config
This function sets the global logging format and level. It will be called when import verl
VRAG-RL/verl/utils/logging_utils.py:20
↓ 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
VRAG-RL/verl/models/llama/megatron/modeling_llama_megatron.py:463
↓ 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.
VRAG-RL/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
VRAG-RL/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:564
↓ 1 callersFunctionshould_allow_eval
(expr: str)
VRAG-RL/verl/utils/reward_score/prime_math/__init__.py:223
↓ 1 callersFunctionsingle_compute_score
(evaluation_func, completion, reference, task, task_extra_info, executor, timeout=300.)
VRAG-RL/verl/workers/reward_manager/prime.py:25
↓ 1 callersMethodslice
Slice the DataProto and return a new DataProto object. This is an improved version of direct slicing which returns a DataProtoItem.
VRAG-RL/verl/protocol.py:441
↓ 1 callersFunctionslice_input_tensor
(x: Tensor, dim: int, padding: bool = True, group: ProcessGroup = None)
VRAG-RL/verl/utils/ulysses.py:116
↓ 1 callersFunctionsmart_resize
Rescales the image so that the following conditions are met: 1. Both dimensions (height and width) are divisible by 'factor'. 2. The total num
VRAG-RL/scripts/cot_convert_sft.py:6
↓ 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
VRAG-RL/verl/single_controller/ray/base.py:49
↓ 1 callersMethodspawn
spawn to a dictionary of worker groups, each with a subset of method with prefix.
VRAG-RL/verl/single_controller/ray/base.py:312
↓ 1 callersFunctionstring_int_check
(val)
VRAG-RL/verl/utils/reward_score/prime_code/testing_util.py:93
↓ 1 callersFunctionsymbolic_equal
(a, b, tolerance, timeout=10.0)
VRAG-RL/verl/utils/reward_score/prime_math/grader.py:310
↓ 1 callersMethodtraining_step
(self, batch: TensorDict)
VRAG-RL/verl/trainer/fsdp_sft_trainer.py:385
↓ 1 callersFunctionunion_numpy_dict
(tensor_dict1: dict[str, np.ndarray], tensor_dict2: dict[str, np.ndarray])
VRAG-RL/verl/protocol.py:87
↓ 1 callersFunctionunion_tensor_dict
Union two tensordicts.
VRAG-RL/verl/protocol.py:73
↓ 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:
VRAG-RL/verl/utils/py_functional.py:22
↓ 1 callersFunctionunit_convert
(number, level)
VRAG-RL/verl/utils/flops_counter.py:23
↓ 1 callersMethodupdate_actor
(self, data: DataProto)
VRAG-RL/verl/workers/fsdp_workers.py:439
↓ 1 callersMethodupdate_critic
(self, data: DataProto)
VRAG-RL/verl/workers/fsdp_workers.py:832
↓ 1 callersFunctionupdate_node_summary
更新节点的 tooltip(摘要)
demo/vimrag_app.py:636
↓ 1 callersMethodupdate_sampling_params
(self, **kwargs)
VRAG-RL/verl/workers/rollout/sglang_rollout/sglang_rollout.py:184
↓ 1 callersMethodupdate_sampling_params
(self, **kwargs)
VRAG-RL/verl/workers/rollout/vllm_rollout/vllm_rollout.py:141
↓ 1 callersMethodupdate_sampling_params
(self, **kwargs)
VRAG-RL/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:143
↓ 1 callersMethodverify
verify the batch and save as ``acc`` tensor
VRAG-RL/verl/workers/reward_manager/prime.py:94
↓ 1 callersFunctionvocab_parallel_compute_entropy_loss
Compute Categorical entropy loss Args: logits: `(torch.Tensor)` shape: (bs, response_length, vocab_size) eos_mask: `(
VRAG-RL/verl/utils/megatron/tensor_parallel.py:173
↓ 1 callersFunctionvocab_parallel_entropy
Compute entropy when the logits are sharded in tp ranks Args: vocab_parallel_logits: (total_nnz, vocab_size // tp_size) Returns:
VRAG-RL/verl/utils/megatron/tensor_parallel.py:129
Function__call__
We will expand this function gradually based on the available datasets
VRAG-RL/verl/workers/reward_manager/rm.py:210
Method__call__
(self, placement_group, placement_group_bundle_idx, use_gpu
VRAG-RL/verl/single_controller/ray/base.py:162
Method__call__
(self)
VRAG-RL/verl/single_controller/base/worker_group.py:43
Method__call__
(self)
VRAG-RL/verl/single_controller/base/worker_group.py:78
Method__call__
(self, *inputs, **kwargs)
VRAG-RL/verl/workers/sharding_manager/megatron_vllm.py:162
Method__call__
We will expand this function gradually based on the available datasets
VRAG-RL/verl/workers/reward_manager/prime.py:123
Method__call__
We will expand this function gradually based on the available datasets
VRAG-RL/verl/workers/reward_manager/naive.py:65
Method__call__
(self, messages, padding=True, truncation=True, max_length=8192, return_tensors: str = 'pt')
search_engine/models/GVE/processor.py:18
Method__call__
Main method to prepare for the model one or several sequences(s) and image(s). This method forwards the `text` and `kwargs` arguments
search_engine/models/GVE/qwen25vl/qwen25vl_processor.py:57
Method__del__
(self)
VRAG-RL/verl/utils/tracking.py:97
Method__enter__
(self)
VRAG-RL/verl/utils/reward_score/prime_code/testing_util.py:76
Method__enter__
(self)
VRAG-RL/verl/workers/sharding_manager/fsdp_vllm.py:75
Method__enter__
(self)
VRAG-RL/verl/workers/sharding_manager/base.py:23
Method__enter__
(self)
VRAG-RL/verl/workers/sharding_manager/fsdp_sglang.py:82
Method__enter__
(self)
VRAG-RL/verl/workers/sharding_manager/fsdp_ulysses.py:42
Method__enter__
(self)
VRAG-RL/verl/workers/sharding_manager/megatron_vllm.py:361
Method__exit__
(self, *args)
VRAG-RL/verl/utils/reward_score/prime_code/testing_util.py:83
Method__exit__
(self, exc_type, exc_value, traceback)
VRAG-RL/verl/workers/sharding_manager/fsdp_vllm.py:117
Method__exit__
(self, exc_type, exc_value, traceback)
VRAG-RL/verl/workers/sharding_manager/base.py:26
Method__exit__
(self, exc_type, exc_value, traceback)
VRAG-RL/verl/workers/sharding_manager/fsdp_sglang.py:107
Method__exit__
(self, exc_type, exc_value, traceback)
VRAG-RL/verl/workers/sharding_manager/fsdp_ulysses.py:50
Method__exit__
(self, exc_type, exc_value, traceback)
VRAG-RL/verl/workers/sharding_manager/megatron_vllm.py:376
Method__getitem__
Enhanced indexing for DataProto objects. Args: item: Can be one of: - int: A single index
VRAG-RL/verl/protocol.py:200
Method__getitem__
(self, item)
VRAG-RL/verl/utils/dataset/rm_dataset.py:114
Method__getitem__
(self, item)
VRAG-RL/verl/utils/dataset/sft_dataset.py:110
Method__getitem__
Note that we also return the raw_input_ids so that it can be combined with other chat template
VRAG-RL/verl/utils/dataset/rl_dataset.py:156
Method__getstate__
(self)
VRAG-RL/verl/protocol.py:235
Method__getstate__
(self)
VRAG-RL/verl/utils/dataset/rl_dataset.py:224
Method__init__
(self,model_name)
VRAG-RL/scripts/data_construct_pipeline.py:116
Method__init__
(self, dataset='search_engine/coupus', query_file='rag_dataset.json',
VRAG-RL/scripts/data_construct_pipeline.py:163
← previousnext →501–600 of 1,037, ranked by callers