MCPcopy Create free account

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

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

↓ 1 callersFunctioncompute_throughout_metrics
(batch: DataProto, timing_raw: Dict[str, float], n_gpus: int)
VRAG-RL/verl/trainer/ppo/metric_utils.py:158
↓ 1 callersFunctioncompute_timing_metrics
(batch: DataProto, timing_raw: Dict[str, float])
VRAG-RL/verl/trainer/ppo/metric_utils.py:134
↓ 1 callersMethodcompute_values
(self, data: DataProto)
VRAG-RL/verl/workers/fsdp_workers.py:808
↓ 1 callersFunctionconcat_dict_to_str
(dict: Dict, step)
VRAG-RL/verl/utils/logger/aggregate_logger.py:21
↓ 1 callersFunctionconvert
(prompt,file_name,output_name='search_sft_w_crop')
VRAG-RL/scripts/cot_convert_sft.py:52
↓ 1 callersMethodconvert_pad_structure
Convert padding structure and return sorted tensor with indices.
VRAG-RL/vrag_agent/tensor_helper.py:26
↓ 1 callersFunctionconvert_to_qwen25vl_format
(bbox, orig_height, orig_width, factor=28, min_pixels=56*56, max_pixels=14*14*4*1280)
VRAG-RL/scripts/cot_convert_sft.py:33
↓ 1 callersFunctionconvert_to_regular_types
Convert Hydra configs and other special types to regular Python types.
VRAG-RL/verl/trainer/fsdp_sft_trainer.py:66
↓ 1 callersFunctioncopy_local_path_from_hdfs
Deprecated. Please use copy_to_local instead.
VRAG-RL/verl/utils/fs.py:72
↓ 1 callersFunctioncount_unknown_letters_in_expr
(expr: str)
VRAG-RL/verl/utils/reward_score/prime_math/__init__.py:216
↓ 1 callersFunctioncreate_colocated_worker_cls
This function should return a class instance that delegates the calls to every cls in cls_dict
VRAG-RL/verl/single_controller/ray/base.py:440
↓ 1 callersFunctioncreate_huggingface_actor
Args: model_name: override_config_kwargs: Returns:
VRAG-RL/verl/utils/model.py:75
↓ 1 callersMethodcreate_resource_pool
(self)
VRAG-RL/verl/trainer/ppo/ray_trainer.py:84
↓ 1 callersFunctioncreate_worker_group_register_center
(name, info)
VRAG-RL/verl/single_controller/base/register_center/ray.py:28
↓ 1 callersFunctioncrop_and_dump
(image_path, bbox, output_folder=image_output_dir)
VRAG-RL/scripts/data_construct_pipeline.py:82
↓ 1 callersFunctioncustom_compare_
(output, ground_truth)
VRAG-RL/verl/utils/reward_score/prime_code/testing_util.py:595
↓ 1 callersMethoddefault_tp_concat_fn
name: name of the parameter param: training parameters infer_params (List[torch.Tensor]): a list of parameters all-gathered f
VRAG-RL/verl/workers/sharding_manager/megatron_vllm.py:283
↓ 1 callersMethoddispatch_fn
(x, i, chunks)
VRAG-RL/verl/protocol.py:792
↓ 1 callersFunctiondispatch_megatron_compute
User passes in dp data. The data is dispatched to all tp/pp ranks with the same dp
VRAG-RL/verl/single_controller/base/decorator.py:74
↓ 1 callersFunctiondispatch_megatron_pp_as_dp
treat pp as dp.
VRAG-RL/verl/single_controller/base/decorator.py:161
↓ 1 callersFunctiondownload_files_distributed
(download_fn)
VRAG-RL/verl/utils/dataset/rm_dataset.py:27
↓ 1 callersFunctiondump_data
(data, name)
VRAG-RL/verl/utils/debug/trajectory_tracker.py:69
↓ 1 callersMethodeval_dataset
(self)
VRAG-RL/scripts/data_construct_pipeline.py:313
↓ 1 callersFunctionextract_json
(response)
VRAG-RL/scripts/data_construct_pipeline.py:76
↓ 1 callersFunctionextract_solution
(solution_str, method='strict')
VRAG-RL/verl/utils/reward_score/gsm8k.py:18
↓ 1 callersFunctionfast_process_messages
处理消息列表,将视频和图片转换为 base64 格式。 Returns: 处理后的消息列表(base64 格式)
demo/vimrag_utils.py:92
↓ 1 callersFunctionfind_latest_ckpt_path
(path, directory_format="global_step_{}")
VRAG-RL/verl/utils/checkpoint/checkpoint_manager.py:114
↓ 1 callersMethodfit
(self)
VRAG-RL/verl/trainer/fsdp_sft_trainer.py:445
↓ 1 callersMethodfit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to construct the
VRAG-RL/verl/trainer/ppo/ray_trainer.py:675
↓ 1 callersFunctionflash_attention_forward
Patches flash attention forward to handle 3D position ids in mrope. (3, batch_size, seq_length)
VRAG-RL/verl/models/transformers/qwen2_vl.py:149
↓ 1 callersFunctionformat_intervals
(prediction)
VRAG-RL/verl/utils/reward_score/prime_math/grader.py:358
↓ 1 callersMethodformat_model_input
( self, text: Optional[Union[List[str], str]] = None, image: Optional[Union[List[Unio
search_engine/models/Qwen3_VL_Embedding/qwen3_vl_embedding.py:220
↓ 1 callersFunctionformat_reward
(predict_str: str)
VRAG-RL/verl/utils/reward_score/geo3k.py:19
↓ 1 callersMethodformat_search_results
Format search results to OpenAI message format.
demo/vimrag_agent.py:129
↓ 1 callersMethodforward
(self, *inputs, **kwargs)
VRAG-RL/verl/workers/sharding_manager/megatron_vllm.py:143
↓ 1 callersMethodforward
(self, inputs: Dict[str, Any])
search_engine/models/Qwen3_VL_Embedding/qwen3_vl_embedding.py:193
↓ 1 callersMethodforward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
VRAG-RL/verl/workers/reward_model/megatron/reward_model.py:180
↓ 1 callersMethodfrom_detached
(cls, worker_names=None, ray_cls_with_init=None)
VRAG-RL/verl/single_controller/ray/base.py:305
↓ 1 callersFunctionfunc_generator
(self, method_name, dispatch_fn, collect_fn, execute_fn, blocking)
VRAG-RL/verl/single_controller/ray/base.py:36
↓ 1 callersFunctiongather_from_labels
Gather the label from data. The value in label should be [0, vocab_size) Args: data: (..., vocab_size) label (torch.IntTensor) :
VRAG-RL/verl/utils/torch_functional.py:33
↓ 1 callersFunctiongenerate_function
(name)
VRAG-RL/verl/single_controller/ray/base.py:415
↓ 1 callersMethodgenerate_llm
(self,messages)
VRAG-RL/scripts/data_construct_pipeline.py:123
↓ 1 callersFunctiongenerate_multimodal_messages
生成多模态消息内容。 1. 以 Item (整个视频或图片) 为单位进行 Top-K 筛选 2. 保留视频的所有帧 3. 视频内的所有帧共享该视频分到的总像素额度
demo/vimrag_utils.py:216
↓ 1 callersMethodgenerate_vlm
(self,messages)
VRAG-RL/scripts/data_construct_pipeline.py:143
↓ 1 callersFunctionget_answer_from_predict_str
(text)
VRAG-RL/verl/utils/reward_score/vrag.py:16
↓ 1 callersFunctionget_answer_from_predict_str
(text)
VRAG-RL/verl/workers/reward_manager/rm.py:107
↓ 1 callersMethodget_availale_master_addr_port
(self)
VRAG-RL/verl/single_controller/base/worker.py:61
↓ 1 callersFunctionget_checkpoint_tracker_filename
Tracker file rescords the latest chckpoint during training to restart from.
VRAG-RL/verl/utils/checkpoint/checkpoint_manager.py:134
↓ 1 callersFunctionget_cosine_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
VRAG-RL/verl/utils/torch_functional.py:412
↓ 1 callersFunctionget_custom_reward_fn
(config)
VRAG-RL/verl/trainer/main_ppo.py:24
↓ 1 callersFunctionget_default_model_parallel_config
()
VRAG-RL/verl/utils/megatron/tensor_parallel.py:43
↓ 1 callersFunctionget_device_flops
(unit="T")
VRAG-RL/verl/utils/flops_counter.py:21
↓ 1 callersFunctionget_file_type_icon
获取文件类型图标
demo/vimrag_app.py:697
↓ 1 callersFunctionget_local_temp_path
Return a local temp path that joins cache_dir and basename of hdfs_path Args: hdfs_path: cache_dir: Returns:
VRAG-RL/verl/utils/fs.py:40
↓ 1 callersMethodget_megatron_global_info
(self)
VRAG-RL/verl/single_controller/base/megatron/worker.py:23
↓ 1 callersFunctionget_micro_data_parallel_rank
()
VRAG-RL/verl/workers/sharding_manager/megatron_vllm.py:443
↓ 1 callersFunctionget_model_size
(model: nn.Module, scale='auto')
VRAG-RL/verl/utils/model.py:119
↓ 1 callersMethodget_n_gpus
Get the number of gpus in this cluster.
VRAG-RL/verl/trainer/ppo/ray_trainer.py:101
↓ 1 callersFunctionget_nccl_id_store_by_name
(name)
VRAG-RL/verl/utils/rendezvous/ray_backend.py:34
↓ 1 callersFunctionget_num_images
(inputs_ids, image_token_id)
search_engine/models/GVE/model_utils.py:111
↓ 1 callersFunctionget_num_videos
(inputs_ids, video_token_id)
search_engine/models/GVE/model_utils.py:120
↓ 1 callersMethodget_partitions
(self)
VRAG-RL/verl/utils/seqlen_balancing.py:63
↓ 1 callersFunctionget_predefined_dispatch_fn
(dispatch_mode)
VRAG-RL/verl/single_controller/base/decorator.py:300
↓ 1 callersFunctionget_predefined_execute_fn
Note that here we only asks execute_all and execute_rank_zero to be implemented Leave the choice of how these two functions handle argument '
VRAG-RL/verl/single_controller/base/decorator.py:350
↓ 1 callersFunctionget_random_string
(length: int)
VRAG-RL/verl/single_controller/ray/base.py:29
↓ 1 callersFunctionget_rope_index
Gets the position ids for Qwen2-VL, it should be generated before sharding the sequence. The batch dim has been removed and the input_ids sho
VRAG-RL/verl/models/transformers/qwen2_vl.py:31
↓ 1 callersMethodget_supported_archs
()
VRAG-RL/verl/models/registry.py:74
↓ 1 callersFunctionget_ulysses_sequence_parallel_rank
Get ulysses sequence parallel rank.
VRAG-RL/verl/utils/ulysses.py:53
↓ 1 callersFunctionget_weight_loader
(arch: str)
VRAG-RL/verl/models/weight_loader_registry.py:16
↓ 1 callersFunctionget_weight_saver
(arch: str)
VRAG-RL/verl/models/weight_loader_registry.py:30
↓ 1 callersFunctionhandle_base
(x)
VRAG-RL/verl/utils/reward_score/prime_math/grader.py:138
↓ 1 callersFunctionhandle_pi
(string, pi)
VRAG-RL/verl/utils/reward_score/prime_math/grader.py:147
↓ 1 callersMethodinit_megatron
(self, default_megatron_kwargs: Optional[Dict] = None)
VRAG-RL/verl/single_controller/ray/megatron.py:58
↓ 1 callersFunctioninit_session_state
初始化 session state
demo/vimrag_app.py:574
↓ 1 callersMethodinit_workers
Init resource pool and worker group
VRAG-RL/verl/trainer/ppo/ray_trainer.py:505
↓ 1 callersFunctioninitialize_global_process_group
(timeout_second=36000)
VRAG-RL/verl/utils/distributed.py:18
↓ 1 callersFunctioninject_custom_css
注入自定义 CSS 样式 - Kimi 风格明亮浅色主题
demo/vimrag_app.py:26
↓ 1 callersFunctionis_image_path
(path: str)
search_engine/models/Qwen3_VL_Embedding/qwen3_vl_embedding.py:129
↓ 1 callersFunctionis_megatron_core_available
()
VRAG-RL/verl/utils/import_utils.py:24
↓ 1 callersFunctionis_video_input
(video)
search_engine/models/Qwen3_VL_Embedding/qwen3_vl_embedding.py:143
↓ 1 callersFunctionkarmarkar_karp
(seqlen_list: List[int], k_partitions: int, equal_size: bool)
VRAG-RL/verl/utils/seqlen_balancing.py:25
↓ 1 callersFunctionlast_pool
(last_hidden_state: torch.Tensor, attention_mask: torch.Tensor)
search_engine/models/GVE/model_utils.py:139
↓ 1 callersMethodload_index
(self, input_dir)
search_engine/search_engine.py:46
↓ 1 callersFunctionload_megatron_param_and_grad
(module_list: nn.ModuleList, device_id, load_grad=False, hybrid_engine=None)
VRAG-RL/verl/utils/megatron_utils.py:242
↓ 1 callersMethodload_model_cls
(model_arch: str, value=False)
VRAG-RL/verl/models/registry.py:58
↓ 1 callersMethodload_multi_index_corpus_together
(self, input_dir_list)
search_engine/search_engine.py:60
↓ 1 callersMethodload_params_to_cuda
(self)
VRAG-RL/verl/workers/reward_model/megatron/reward_model.py:262
↓ 1 callersMethodload_rng_state
(rng_state)
VRAG-RL/verl/utils/checkpoint/checkpoint_manager.py:107
↓ 1 callersMethodlocal_mkdir
(path)
VRAG-RL/verl/utils/checkpoint/checkpoint_manager.py:76
↓ 1 callersMethodlog_generations_to_swanlab
Log samples to swanlab as text
VRAG-RL/verl/utils/tracking.py:203
↓ 1 callersMethodlog_generations_to_wandb
Log samples to wandb as a table
VRAG-RL/verl/utils/tracking.py:176
↓ 1 callersFunctionlog_seqlen_unbalance
(seqlen_list: List[int], partitions: List[List[int]], prefix)
VRAG-RL/verl/utils/seqlen_balancing.py:186
↓ 1 callersFunctionlogprobs_from_logits_flash_attn
(logits, labels)
VRAG-RL/verl/utils/torch_functional.py:64
↓ 1 callersFunctionlogprobs_from_logits_v2
A memory efficient implementation of logprobs_from_logits
VRAG-RL/verl/utils/torch_functional.py:77
↓ 1 callersFunctionmain
(config)
VRAG-RL/verl/trainer/main_ppo.py:53
↓ 1 callersFunctionmain
(config)
VRAG-RL/verl/trainer/main_generation.py:40
↓ 1 callersFunctionmain
(config)
VRAG-RL/verl/trainer/main_eval.py:35
↓ 1 callersFunctionmain
(config)
VRAG-RL/verl/trainer/fsdp_sft_trainer.py:521
↓ 1 callersFunctionmain
()
demo/vimrag_app.py:926
↓ 1 callersFunctionmain
()
demo/app.py:29
← previousnext →401–500 of 1,037, ranked by callers