MCPcopy Create free account

hub / github.com/BeastyZ/ConvSearch-R1 / functions

Functions1,207 in github.com/BeastyZ/ConvSearch-R1

↓ 1 callersMethod_read_files_and_tokenize
(self)
verl/verl/utils/dataset/rm_dataset.py:85
↓ 1 callersMethod_read_files_and_tokenize
(self)
verl/verl/utils/dataset/sft_dataset.py:73
↓ 1 callersFunction_remove_right_units
(string)
verl/verl/utils/reward_score/prime_math/math_normalize.py:104
↓ 1 callersFunction_select_rm_score_fn
(data_source)
verl/examples/split_placement/main_ppo_split.py:24
↓ 1 callersFunction_str_to_int
(x: str)
verl/verl/utils/reward_score/prime_math/__init__.py:120
↓ 1 callersFunction_strip_string
(string)
verl/verl/utils/reward_score/prime_math/math_normalize.py:129
↓ 1 callersMethod_switch_chat_template
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:1082
↓ 1 callersFunction_sympy_parse
Parses an expression with sympy.
verl/verl/utils/reward_score/prime_math/__init__.py:65
↓ 1 callersFunction_transform_params_to_json_serializable
(x, convert_list_to_dict: bool)
verl/verl/utils/tracking.py:143
↓ 1 callersMethod_validate_config
(self)
verl/verl/trainer/ppo/ray_trainer.py:312
↓ 1 callersMethod_validate_config
Validate config options not implemented for Megatron backend
verl/verl/workers/critic/megatron_critic.py:79
↓ 1 callersMethod_validate_config
Validate config options not implemented for Megatron backend
verl/verl/workers/actor/megatron_actor.py:138
↓ 1 callersFunctionacc_reward
(predict_str: str, ground_truth: str)
verl/verl/utils/reward_score/geo3k.py:25
↓ 1 callersFunctionall_gather_tensor
(local_tensor: Tensor, group: Optional[dist.ProcessGroup] = None, async_op: bool = False)
verl/verl/utils/ulysses.py:154
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids)
verl/verl/models/llama/megatron/layers/parallel_attention.py:123
↓ 1 callersFunctionapply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
verl/verl/models/qwen2/megatron/layers/parallel_attention.py:304
↓ 1 callersFunctionapply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
verl/verl/models/llama/megatron/layers/parallel_attention.py:320
↓ 1 callersFunctionare_equal_under_sympy
(ground_truth_normalized: str, given_normalized: str)
verl/verl/utils/reward_score/prime_math/__init__.py:240
↓ 1 callersFunctionare_lists_similar
(a, b)
verl/tests/rollout/test_vllm_hf_loader.py:51
↓ 1 callersFunctionare_lists_similar
(a, b)
verl/tests/rollout/test_sglang_spmd.py:61
↓ 1 callersFunctionare_lists_similar
(a, b)
verl/tests/rollout/test_vllm_spmd.py:49
↓ 1 callersFunctionbroadcast_params
(module)
verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:69
↓ 1 callersFunctionbroadcast_params
(module)
verl/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:73
↓ 1 callersFunctionbuild_faiss_index
(args)
src/eval/get_metrics_using_ance.py:39
↓ 1 callersFunctionbuild_faiss_index
(index_path: str, n_gpu: int, faiss_gpu: bool=True)
src/retrieval/server.py:76
↓ 1 callersFunctionbuild_memory_reference
Build the memory references. The memory buffers are built using the build_memory_buffer API. This API will allocate a weight buffer pointer to the
verl/verl/utils/memory_buffer.py:116
↓ 1 callersFunctioncal_reward
(rank: int)
verl/verl/utils/reward_score/rewrite_r1.py:29
↓ 1 callersFunctioncall_method
(method, inputs)
verl/verl/utils/reward_score/prime_code/testing_util.py:617
↓ 1 callersFunctionceildiv
(a, b)
verl/verl/utils/seqlen_balancing.py:220
↓ 1 callersFunctioncheck_congratulations_in_file
(output_file)
verl/tests/e2e/check_custom_rwd_fn.py:18
↓ 1 callersMethodcheck_consistency
Check the consistency of the DataProto. Mainly for batch and non_tensor_batch We expose this function as a public one so that user can call th
verl/verl/protocol.py:250
↓ 1 callersFunctioncheck_dir_exist_or_build
(dir_list, force_emptying:bool = False)
index/dense/utils.py:16
↓ 1 callersFunctioncheck_result
(origin_path, megatron_path, input_text)
verl/tests/checkpoint/test_megatron_ckpt.py:106
↓ 1 callersFunctioncollect_dp_compute
(worker_group, output)
verl/verl/single_controller/base/decorator.py:265
↓ 1 callersFunctioncollect_megatron_compute
Only collect the data from the tp=0 and pp=last and every dp ranks
verl/verl/single_controller/base/decorator.py:103
↓ 1 callersFunctioncollect_megatron_pp_as_dp
treat pp as dp. Only collect data on tp=0
verl/verl/single_controller/base/decorator.py:209
↓ 1 callersFunctioncompute_advantage
(data: DataProto, adv_estimator, config)
verl/recipe/prime/prime_ray_trainer.py:39
↓ 1 callersFunctioncompute_ce_dpo_loss_rm
(token_level_scores, acc, eos_mask, beta)
verl/recipe/prime/prime_core_algos.py:78
↓ 1 callersFunctioncompute_data_metrics
(batch: DataProto, use_critic: bool = True)
verl/verl/trainer/ppo/metric_utils.py:46
↓ 1 callersMethodcompute_log_prob
(self, data: DataProto)
verl/verl/workers/megatron_workers.py:425
↓ 1 callersMethodcompute_log_prob
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:535
↓ 1 callersFunctioncompute_position_id_with_mask
(mask)
verl/tests/ray/detached_worker/client.py:30
↓ 1 callersMethodcompute_reward
Computing reward given input_ids. The transformers should output a tensor with shape [batch_size, sequence_length], and the value at [EOS]
verl/verl/workers/reward_model/base.py:29
↓ 1 callersFunctioncompute_throughout_metrics
(batch: DataProto, timing_raw: Dict[str, float], n_gpus: int)
verl/verl/trainer/ppo/metric_utils.py:158
↓ 1 callersFunctioncompute_timing_metrics
(batch: DataProto, timing_raw: Dict[str, float])
verl/verl/trainer/ppo/metric_utils.py:134
↓ 1 callersFunctionconcat_dict_to_str
(dict: Dict, step)
verl/verl/utils/logger/aggregate_logger.py:21
↓ 1 callersFunctionconvert_collection
(collection_tsv, collection_json)
preprocess/topiocqa/preprocess.py:11
↓ 1 callersFunctionconvert_to_regular_types
Convert Hydra configs and other special types to regular Python types.
verl/verl/trainer/fsdp_sft_trainer.py:66
↓ 1 callersFunctioncount_unknown_letters_in_expr
(expr: str)
verl/verl/utils/reward_score/prime_math/__init__.py:216
↓ 1 callersFunctioncreate_huggingface_actor
Args: model_name: override_config_kwargs: Returns:
verl/verl/utils/model.py:75
↓ 1 callersFunctioncreate_nccl_communicator_in_ray
(rank: int, world_size: int, group_nam
verl/verl/utils/rendezvous/ray_backend.py:47
↓ 1 callersMethodcreate_resource_pool
(self)
verl/verl/trainer/ppo/ray_trainer.py:83
↓ 1 callersFunctioncreate_trainer
Create and initialize a trainer instance with the given config. Args: config: Configuration object with training parameters
verl/tests/sft/test_sp_loss_match.py:89
↓ 1 callersFunctioncreate_worker_group_register_center
(name, info)
verl/verl/single_controller/base/register_center/ray.py:28
↓ 1 callersFunctioncur_cal_reward
(rank: int, step: int, total_steps: int)
verl/verl/utils/reward_score/rewrite_r1.py:79
↓ 1 callersFunctioncur_rewrite_reward
(response_strs: List[str], query_ids: List[str], retriever_url: str, topk: int=100, step: int=None, total_step
verl/verl/utils/reward_score/rewrite_r1.py:94
↓ 1 callersFunctioncustom_compare_
(output, ground_truth)
verl/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
verl/verl/workers/sharding_manager/megatron_vllm.py:283
↓ 1 callersFunctiondense_indexing
(args)
index/dense/dense_index.py:17
↓ 1 callersFunctiondense_indexing
(args, local_rank, world_size)
index/dense/distributed_dense_index.py:28
↓ 1 callersMethoddispatch_fn
(x, i, chunks)
verl/verl/protocol.py:630
↓ 1 callersFunctiondispatch_megatron_compute
User passes in dp data. The data is dispatched to all tp/pp ranks with the same dp
verl/verl/single_controller/base/decorator.py:74
↓ 1 callersFunctiondispatch_megatron_pp_as_dp
treat pp as dp.
verl/verl/single_controller/base/decorator.py:161
↓ 1 callersFunctiondistributed_index_dataset_generator
(collection_path, num_doc_per_block)
index/dense/distributed_dense_index.py:17
↓ 1 callersMethoddo_nothing
(self, data)
verl/tests/ray/test_data_transfer.py:44
↓ 1 callersFunctiondownload
(resource_key: str, out_dir: str = None)
preprocess/topiocqa/download_data.py:409
↓ 1 callersFunctiondownload_files_distributed
(download_fn)
verl/verl/utils/dataset/rm_dataset.py:27
↓ 1 callersFunctiondump_data
(data, name)
verl/verl/utils/debug/trajectory_tracker.py:69
↓ 1 callersMethodexecute_func_rank_zero
(self, func, *args, **kwargs)
verl/verl/single_controller/base/worker.py:215
↓ 1 callersMethodexecute_with_func_generator
(self, func, *args, **kwargs)
verl/verl/single_controller/base/worker.py:210
↓ 1 callersFunctionextract_install_requires
Extracts the install_requires list from setup.py using AST parsing.
verl/tests/distro/requirements.py:24
↓ 1 callersFunctionextract_reasoning_content
for deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
src/infer/infer.py:58
↓ 1 callersFunctionextract_reward_from_line
(line)
verl/tests/e2e/check_results.py:20
↓ 1 callersFunctionextract_solution
(solution_str, method='strict')
verl/verl/utils/reward_score/gsm8k.py:18
↓ 1 callersMethodfilter_and_downsample
downsample the batch according to oversample_factor samples passing the filters will be prioritized
verl/recipe/prime/prime_ray_trainer.py:499
↓ 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
verl/recipe/prime/prime_ray_trainer.py:320
↓ 1 callersMethodfit
(self)
verl/verl/trainer/fsdp_sft_trainer.py:445
↓ 1 callersFunctionfix_a_slash_b
(string)
verl/verl/utils/reward_score/math.py:125
↓ 1 callersFunctionfix_fracs
(string)
verl/verl/utils/reward_score/math.py:93
↓ 1 callersFunctionfix_sqrt
(string)
verl/verl/utils/reward_score/math.py:150
↓ 1 callersFunctionflash_attention_forward
Patches flash attention forward to handle 3D position ids in mrope. (3, batch_size, seq_length)
verl/verl/models/transformers/qwen2_vl.py:150
↓ 1 callersFunctionfold_batch_dim
Fold a batch dim from [bsz, xxx] into [new_bsz, bsz // new_bsz, xxx]
verl/verl/protocol.py:112
↓ 1 callersMethodfoo
(self, wait_time)
verl/tests/ray/check_worker_alive/main.py:33
↓ 1 callersMethodfoo_all_to_all
(self, x, y)
verl/tests/ray/test_worker_group_basics.py:60
↓ 1 callersMethodfoo_custom
(self, x, y)
verl/tests/ray/test_worker_group_basics.py:64
↓ 1 callersMethodfoo_one_to_all
(self, x, y)
verl/tests/ray/test_worker_group_basics.py:56
↓ 1 callersMethodfoo_rank_zero
(self, x, y)
verl/tests/ray/test_worker_group_basics.py:52
↓ 1 callersFunctionformat_intervals
(prediction)
verl/verl/utils/reward_score/prime_math/grader.py:358
↓ 1 callersFunctionformat_reward
(predict_str: str)
verl/verl/utils/reward_score/geo3k.py:19
↓ 1 callersMethodforward
(self, *inputs, **kwargs)
verl/verl/workers/sharding_manager/megatron_vllm.py:143
↓ 1 callersMethodforward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
verl/verl/workers/reward_model/megatron/reward_model.py:180
↓ 1 callersFunctionfunc_generator
(self, method_name, dispatch_fn, collect_fn, execute_fn, blocking)
verl/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) :
verl/verl/utils/torch_functional.py:33
↓ 1 callersFunctiongen_metric_score_and_save
(args, index, query_embeddings: List[np.ndarray], query_embedding2id: List[List[List[str]]])
src/eval/get_metrics_using_ance.py:273
↓ 1 callersFunctiongen_qrecc_passage_collection
structure of qrecc passages.zip: - passages.zip - collection-paragraph - wayback - *.jsonl -
preprocess/qrecc/preprocess_v3.py:23
↓ 1 callersFunctiongen_qrecc_qrel
(train_inputfile, test_inputfile, train_qrel_file, test_qrel_file, pid2rawpid_path)
preprocess/qrecc/preprocess_v3.py:84
↓ 1 callersFunctiongen_qrecc_train_test_files
(train_inputfile, test_inputfile, train_outputf
preprocess/qrecc/preprocess_v3.py:116
↓ 1 callersFunctiongen_train_test_files
(train_gold_path, dev_gold_path, train_path, dev_path, output_train, output_dev)
preprocess/topiocqa/preprocess.py:24
↓ 1 callersFunctiongenerate_function
(name)
verl/verl/single_controller/ray/base.py:415
↓ 1 callersFunctiongenerate_ground_truth_response
Generate ground truth response given a prompt.
verl/tests/e2e/envs/digit_completion/task.py:117
← previousnext →401–500 of 1,207, ranked by callers