MCPcopy Create free account

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

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

↓ 1 callersFunctionget_args
()
src/eval/get_metrics_using_ance.py:302
↓ 1 callersFunctionget_args
()
src/eval/get_metrics_using_bm25.py:139
↓ 1 callersFunctionget_args
()
index/dense/dense_index.py:81
↓ 1 callersFunctionget_args
()
index/dense/distributed_dense_index.py:73
↓ 1 callersFunctionget_aux_metrics
(self, test_proto)
verl/tests/ray/test_driverfunc_to_worker.py:42
↓ 1 callersMethodget_availale_master_addr_port
(self)
verl/verl/single_controller/base/worker.py:61
↓ 1 callersFunctionget_checkpoint_tracker_filename
Tracker file rescords the latest chckpoint during training to restart from.
verl/verl/utils/checkpoint/checkpoint_manager.py:134
↓ 1 callersMethodget_collate_fn
(args)
src/eval/data_format.py:51
↓ 1 callersMethodget_config
(self)
verl/tests/e2e/envs/digit_completion/tokenizer.py:132
↓ 1 callersFunctionget_custom_reward_fn
(config)
verl/verl/trainer/main_ppo.py:24
↓ 1 callersFunctionget_default_model_parallel_config
()
verl/verl/utils/megatron/tensor_parallel.py:43
↓ 1 callersFunctionget_device_flops
(unit="T")
verl/verl/utils/flops_counter.py:21
↓ 1 callersFunctionget_gsm8k_data
()
verl/tests/verl/utils/dataset/test_rl_dataset.py:20
↓ 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:
verl/verl/utils/fs.py:40
↓ 1 callersMethodget_megatron_global_info
(self)
verl/verl/single_controller/base/megatron/worker.py:23
↓ 1 callersFunctionget_micro_data_parallel_rank
()
verl/verl/workers/sharding_manager/megatron_vllm.py:443
↓ 1 callersFunctionget_model_size
(model: nn.Module, scale='auto')
verl/verl/utils/model.py:119
↓ 1 callersMethodget_n_gpus
Get the number of gpus in this cluster.
verl/verl/trainer/ppo/ray_trainer.py:100
↓ 1 callersFunctionget_nccl_id_store_by_name
(name)
verl/verl/utils/rendezvous/ray_backend.py:34
↓ 1 callersMethodget_partitions
(self)
verl/verl/utils/seqlen_balancing.py:63
↓ 1 callersFunctionget_predefined_dispatch_fn
(dispatch_mode)
verl/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 '
verl/verl/single_controller/base/decorator.py:350
↓ 1 callersFunctionget_random_string
(length: int)
verl/verl/single_controller/ray/base.py:29
↓ 1 callersFunctionget_retriever
(config)
src/retrieval/server.py:292
↓ 1 callersFunctionget_rm_data
()
verl/tests/verl/utils/dataset/test_rm_dataset.py:21
↓ 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
verl/verl/models/transformers/qwen2_vl.py:32
↓ 1 callersMethodget_state
(self)
verl/tests/e2e/envs/digit_completion/task.py:61
↓ 1 callersMethodget_supported_archs
()
verl/verl/models/registry.py:74
↓ 1 callersFunctionget_test_query_embedding
(args)
src/eval/get_metrics_using_ance.py:106
↓ 1 callersFunctionget_ulysses_sequence_parallel_rank
Get ulysses sequence parallel rank.
verl/verl/utils/ulysses.py:53
↓ 1 callersFunctionget_weight_loader
(arch: str)
verl/verl/models/weight_loader_registry.py:16
↓ 1 callersFunctionget_weight_saver
(arch: str)
verl/verl/models/weight_loader_registry.py:30
↓ 1 callersFunctionhandle_base
(x)
verl/verl/utils/reward_score/prime_math/grader.py:138
↓ 1 callersFunctionhandle_pi
(string, pi)
verl/verl/utils/reward_score/prime_math/grader.py:147
↓ 1 callersFunctionhydra_entry
(cfg: DictConfig)
verl/tests/sft/test_sp_loss_match.py:125
↓ 1 callersMethodinit_megatron
(self, default_megatron_kwargs: Optional[Dict] = None)
verl/verl/single_controller/ray/megatron.py:58
↓ 1 callersMethodinit_model
(self)
verl/tests/ray/detached_worker/server.py:73
↓ 1 callersFunctioninitialize_global_process_group
(timeout_second=36000)
verl/tests/rollout/test_sglang_spmd.py:82
↓ 1 callersFunctionis_equiv
(str1, str2, verbose=False)
verl/verl/utils/reward_score/math.py:32
↓ 1 callersFunctionis_megatron_core_available
()
verl/verl/utils/import_utils.py:24
↓ 1 callersFunctionis_nl_query
(query)
index/dense/utils.py:223
↓ 1 callersFunctionjson_dumps_arguments
(output_path, args)
index/dense/utils.py:30
↓ 1 callersFunctionkarmarkar_karp
(seqlen_list: List[int], k_partitions: int, equal_size: bool)
verl/verl/utils/seqlen_balancing.py:25
↓ 1 callersFunctionlast_boxed_only_string
(string)
verl/verl/utils/reward_score/math.py:63
↓ 1 callersFunctionlevenshtein
(s1, s2)
verl/tests/rollout/test_vllm_hf_loader.py:30
↓ 1 callersFunctionlevenshtein
(s1, s2)
verl/tests/rollout/test_sglang_spmd.py:40
↓ 1 callersFunctionlevenshtein
(s1, s2)
verl/tests/rollout/test_vllm_spmd.py:28
↓ 1 callersMethodload_checkpoint
(self, path=None, del_local_after_load=False, *args, **kwargs)
verl/verl/utils/checkpoint/fsdp_checkpoint_manager.py:61
↓ 1 callersFunctionload_docid
(corpus_docid_path: str)
src/retrieval/server.py:111
↓ 1 callersMethodload_from_disk
(filepath)
verl/verl/protocol.py:228
↓ 1 callersFunctionload_megatron_param_and_grad
(module_list: nn.ModuleList, device_id, load_grad=False, hybrid_engine=None)
verl/verl/utils/megatron_utils.py:242
↓ 1 callersFunctionload_model
(model_path: str)
src/retrieval/server.py:64
↓ 1 callersMethodload_model_cls
(model_arch: str, value=False)
verl/verl/models/registry.py:58
↓ 1 callersMethodload_params_to_cuda
(self)
verl/verl/workers/reward_model/megatron/reward_model.py:262
↓ 1 callersMethodload_rng_state
(rng_state)
verl/verl/utils/checkpoint/checkpoint_manager.py:107
↓ 1 callersMethodlocal_mkdir
(path)
verl/verl/utils/checkpoint/checkpoint_manager.py:76
↓ 1 callersMethodlog_generations_to_swanlab
Log samples to swanlab as text
verl/verl/utils/tracking.py:206
↓ 1 callersMethodlog_generations_to_wandb
Log samples to wandb as a table
verl/verl/utils/tracking.py:179
↓ 1 callersFunctionlog_probs_from_logits_response
Compute the response log_probs from full logits. Note that logits = model(input_ids) Args: input_ids: [batch_size, seqlen] logits
verl/verl/utils/torch_functional.py:317
↓ 1 callersFunctionlog_probs_from_logits_response_rmpad
Compute the log_probs from logits with rmpad logits and pad input. Note that logits_rmpad = model(input_ids_rmpad). For each sentences, there is a
verl/verl/utils/torch_functional.py:333
↓ 1 callersFunctionlog_seqlen_unbalance
(seqlen_list: List[int], partitions: List[List[int]], prefix)
verl/verl/utils/seqlen_balancing.py:186
↓ 1 callersFunctionlogprobs_from_logits_flash_attn
(logits, labels)
verl/verl/utils/torch_functional.py:64
↓ 1 callersFunctionmain
()
src/eval/get_metrics_using_ance.py:293
↓ 1 callersFunctionmain
with open(wiki_file, 'r') as input: reader = csv.reader(input, delimiter="\t") with open(output_file, 'w') as output:
index/bm25/convert_to_pyserini_file.py:15
↓ 1 callersFunctionmain
(config)
verl/recipe/prime/main_prime.py:38
↓ 1 callersFunctionmain
(config)
verl/tests/checkpoint/test_megatron_ckpt.py:137
↓ 1 callersFunctionmain
Main function to run trainer tests. Args: config: Configuration object with training parameters
verl/tests/sft/test_sp_loss_match.py:110
↓ 1 callersFunctionmain
()
verl/tests/rollout/run_fsdp_vllm.py:30
↓ 1 callersFunctionmain
(config)
verl/tests/e2e/arithmetic_sequence/rl/main_trainer.py:86
↓ 1 callersFunctionmain
(config)
verl/verl/trainer/main_ppo.py:53
↓ 1 callersFunctionmain
(config)
verl/verl/trainer/main_generation.py:40
↓ 1 callersFunctionmain
(config)
verl/verl/trainer/main_eval.py:35
↓ 1 callersFunctionmain
(config)
verl/verl/trainer/fsdp_sft_trainer.py:521
↓ 1 callersFunctionmain
(config)
verl/examples/split_placement/main_ppo_split.py:93
↓ 1 callersFunctionmain
()
preprocess/topiocqa/download_data.py:446
↓ 1 callersFunctionmake_map_fn
(split)
verl/examples/data_preprocess/topiocqa_sft.py:44
↓ 1 callersFunctionmake_map_fn
(split)
verl/examples/data_preprocess/qrecc_sft.py:44
↓ 1 callersFunctionmake_reward_function
(tokenizer, num_examine)
verl/tests/checkpoint/test_megatron_ckpt.py:31
↓ 1 callersFunctionmake_reward_function
(tokenizer, num_examine)
verl/tests/e2e/arithmetic_sequence/rl/main_trainer.py:29
↓ 1 callersMethodmasked_mean
(self, t, mask)
src/retrieval/server.py:55
↓ 1 callersMethodmasked_mean
(self, t, mask)
index/dense/models.py:54
↓ 1 callersMethodmasked_mean_or_first
(self, emb_all, mask)
src/eval/models.py:43
↓ 1 callersMethodmasked_mean_or_first
(self, emb_all, mask)
src/retrieval/server.py:49
↓ 1 callersMethodmasked_mean_or_first
(self, emb_all, mask)
index/dense/models.py:48
↓ 1 callersFunctionmasked_var
Compute variance of tensor with masked values.
verl/verl/utils/torch_functional.py:123
↓ 1 callersFunctionmatch_answer
(response)
verl/verl/utils/reward_score/prime_math/__init__.py:363
↓ 1 callersFunctionmerge_by_placement
(tensors: List[torch.Tensor], placement: Placement)
verl/scripts/model_merger.py:25
↓ 1 callersFunctionmerge_resource_pool
(rp1: RayResourcePool, rp2: RayResourcePool)
verl/verl/single_controller/ray/base.py:134
↓ 1 callersMethodnb_docs
(self)
index/dense/libs.py:74
↓ 1 callersFunctionnormalize_model_name
Transform the model name in each model_chunk in each pp stage into the name in inference engine
verl/verl/utils/model.py:209
↓ 1 callersMethodnumba_score_float
(inverted_index_ids: numba.typed.Dict, inverted_index_floats: numba.typed.Dict,
index/dense/libs.py:169
↓ 1 callersFunctionoffload_megatron_param_and_grad
(module_list: nn.ModuleList, offload_grad=False, hybrid_engine=None)
verl/verl/utils/megatron_utils.py:227
↓ 1 callersMethodoffload_params_to_cpu
offload params of models that are not of current pp rank to cpu
verl/verl/workers/sharding_manager/megatron_vllm.py:173
↓ 1 callersFunctiononly_int_check
(val)
verl/verl/utils/reward_score/prime_code/testing_util.py:89
↓ 1 callersFunctionoutput_test_res
( alll_query_embedding2id: List[np.ndarray], all_retrieved_scores_mat: List[Any], # score_mat: score m
src/eval/get_metrics_using_ance.py:156
↓ 1 callersFunctionpad_2d_list_to_length
pad a 2D list (e.g. responses, logprobs) to a 2D tensor.
verl/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
verl/verl/utils/megatron/sequence_parallel.py:29
↓ 1 callersFunctionpadding_seq_to_same_length
(input_ids, max_pad_length, pad_token = 0)
src/eval/data_format.py:10
↓ 1 callersFunctionparallel_put
(data_list, max_workers=None)
verl/verl/utils/ray_utils.py:23
↓ 1 callersFunctionparse_args
()
src/infer/infer.py:31
← previousnext →501–600 of 1,207, ranked by callers