MCPcopy Create free account

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

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

Functionprocess_fn
(example, idx)
verl/examples/data_preprocess/qrecc_sft.py:46
Functionprocess_one_shard
(rank)
verl/scripts/model_merger.py:85
Methodprompt_length
(self)
verl/tests/e2e/envs/digit_completion/task.py:69
Functionput_data
(index, data)
verl/verl/utils/ray_utils.py:25
Functionqwen2_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
verl/verl/models/transformers/qwen2.py:148
Functionqwen2_flash_attn_forward
Adapted from transformers 4.47.1 to support Ulysses sequence parallelism. NOTE: This function is only tested on transformers versions betwee
verl/verl/models/transformers/qwen2.py:29
Functionregister
(dispatch_mode=Dispatch.ALL_TO_ALL, execute_mode=Execute.ALL, blocking=True, materialize_futures=True)
verl/verl/single_controller/base/decorator.py:394
Functionregister_empty_parameter
(module, name, param)
verl/verl/utils/fsdp_utils.py:188
Functionremote_call_wg
(worker_names)
verl/tests/ray/test_worker_group_basics.py:69
Functionremove_boxed
(s)
verl/verl/utils/reward_score/prime_math/__init__.py:323
Functionremove_pad_token
Remove the pad token. Args: input_ids shape: [bs, seq_length] attention_mask shape: [bs, seq_length] Returns: no_pad
verl/verl/utils/torch_functional.py:302
Methodrename
Note that this function only rename the key in the batch
verl/verl/protocol.py:405
Methodresponse_length
(self)
verl/tests/e2e/envs/digit_completion/task.py:73
Methodretrieve
(self, qid2emb)
index/dense/libs.py:203
Functionretrieve_endpoint
Endpoint that accepts queries and performs retrieval. Input format: { "queries": ["What is Python?", "Tell me about neural networks
src/retrieval/server.py:301
Methodsample_batch_str_prompts
(self, batch_size)
verl/tests/e2e/envs/digit_completion/task.py:100
Methodsave_checkpoint
(self, *args, **kwargs)
verl/verl/utils/checkpoint/checkpoint_manager.py:60
Methodsave_checkpoint
(self, checkpoint_path, hdfs_path=None, **kwargs)
verl/verl/workers/megatron_workers.py:449
Methodsave_checkpoint
(self, checkpoint_path, hdfs_path=None, **kwargs)
verl/verl/workers/megatron_workers.py:658
Methodsave_checkpoint
(self, local_path, hdfs_path=None, global_step=0, remove_previous_ckpt=False)
verl/verl/workers/fsdp_workers.py:596
Functionsave_to_hdfs
(data: io.BytesIO, name, hdfs_dir, verbose)
verl/verl/utils/debug/trajectory_tracker.py:33
Methodseries_to_item
(ls)
verl/verl/utils/dataset/sft_dataset.py:75
Methodset_additional_resource
(self, additional_resource)
verl/verl/single_controller/ray/base.py:156
Methodset_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
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:539
Methodset_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
verl/verl/models/llama/megatron/modeling_llama_megatron.py:538
Functionsignal_handler
(signum, frame)
verl/verl/utils/reward_score/prime_math/grader.py:347
Functionsplit_and_padding_neighbor
(batch_tensor, batch_len)
index/dense/utils.py:38
Methodspread
(self)
verl/verl/utils/seqlen_balancing.py:60
Functionsqueeze
(x)
verl/verl/utils/model.py:38
Methodstore
(self)
verl/verl/single_controller/base/worker_group.py:47
Methodsupported_type
(precision: Union[str, int])
verl/verl/utils/torch_dtypes.py:43
Methodsupported_types
()
verl/verl/utils/torch_dtypes.py:47
Functiontest
()
verl/tests/ray/test_high_level_scheduling_api.py:33
Functiontest
()
verl/tests/ray/test_driverfunc_to_worker.py:55
Methodtest
(self)
verl/tests/ray/test_rvdz.py:31
Functiontest_all_gather_torch
In this test, we instantiate 4 GPUs in a group and test the all_gather
verl/tests/ray/test_worker_group_torch.py:69
Functiontest_all_gather_torch_v2
In this test, we instantiate 4 GPUs in a group and test the all_gather
verl/tests/ray/test_worker_group_torch.py:93
Functiontest_check_correctness
()
verl/tests/sandbox/test_sandbox.py:127
Functiontest_chunk_concat
()
verl/tests/utility/test_tensor_dict_utilities.py:110
Functiontest_colocated_workers
()
verl/tests/ray/test_colocated_workers.py:49
Functiontest_data_transfer
()
verl/tests/ray/test_data_transfer.py:52
Functiontest_dataproto_fold_unfold
()
verl/tests/utility/test_tensor_dict_utilities.py:224
Functiontest_dataproto_pad_unpad
()
verl/tests/utility/test_tensor_dict_utilities.py:172
Functiontest_dependencies_consistent
()
verl/tests/distro/requirements.py:71
Functiontest_flash_attn_cross_entropy
()
verl/tests/gpu_utility/test_ops.py:16
Functiontest_import
()
verl/tests/sanity/test_import.py:16
Functiontest_len
()
verl/tests/utility/test_tensor_dict_utilities.py:263
Functiontest_log_probs_from_logits_response_rmpad
()
verl/tests/gpu_utility/test_torch_functional.py:21
Functiontest_logprobs_from_logits_v2
(dtype)
verl/tests/gpu_utility/test_torch_functional.py:54
Functiontest_lr_scheduler
()
verl/tests/gpu_utility/test_torch_functional.py:72
Functiontest_parallelism
Test if process pool works properly
verl/tests/sandbox/test_sandbox.py:92
Functiontest_pop
()
verl/tests/utility/test_tensor_dict_utilities.py:134
Functiontest_prime_code
Test PRIME code sandbox.
verl/tests/sandbox/test_sandbox.py:117
Functiontest_prime_math
()
verl/tests/sandbox/test_sandbox.py:135
Functiontest_reorder
()
verl/tests/utility/test_tensor_dict_utilities.py:99
Functiontest_repeat
()
verl/tests/utility/test_tensor_dict_utilities.py:147
Functiontest_rl_dataset
()
verl/tests/verl/utils/dataset/test_rl_dataset.py:29
Functiontest_rm_dataset
()
verl/tests/verl/utils/dataset/test_rm_dataset.py:30
Functiontest_rvdz
()
verl/tests/ray/test_rvdz.py:37
Functiontest_seqlen_balancing
()
verl/tests/utility/test_tensor_dict_utilities.py:283
Functiontest_sft_cot_dataset
()
verl/tests/verl/utils/dataset/test_sft_dataset.py:29
Functiontest_sft_dataset
()
verl/tests/verl/utils/dataset/test_sft_dataset.py:46
Functiontest_sglang_spmd
()
verl/tests/rollout/test_sglang_spmd.py:100
Functiontest_single_controller_import
()
verl/tests/sanity/test_import.py:21
Functiontest_tensor_dict_constructor
()
verl/tests/utility/test_tensor_dict_utilities.py:56
Functiontest_tensor_dict_make_iterator
()
verl/tests/utility/test_tensor_dict_utilities.py:70
Functiontest_torch_save_data_proto
()
verl/tests/utility/test_tensor_dict_utilities.py:247
Functiontest_union_tensor_dict
()
verl/tests/utility/test_tensor_dict_utilities.py:26
Functiontest_vllm_spmd
()
verl/tests/rollout/test_vllm_spmd.py:70
Functiontest_vllm_with_hf
()
verl/tests/rollout/test_vllm_hf_loader.py:72
Methodthis_rank_models
(self)
verl/verl/workers/sharding_manager/megatron_vllm.py:207
Functiontimeout
(timeout_seconds: int = 8)
verl/verl/utils/reward_score/prime_math/__init__.py:38
Functiontimeout_handler
(signum, frame)
verl/verl/utils/reward_score/prime_code/testing_util.py:60
Functiontokenize_and_postprocess_data
input_data is the output from tokenizer.
verl/verl/utils/torch_functional.py:258
Functiontop_p_filtering
Filter a distribution of logits using nucleus (top-p) filtering Args: logits: logits distribution shape (batch size x vocabulary
index/dense/utils.py:192
Methodtp_size
(self)
verl/verl/single_controller/base/megatron/worker_group.py:36
Functiontwo_to_all_dispatch_fn
Assume the input is a list of 2. Duplicate the input interleaved and pass to each worker.
verl/tests/ray/test_worker_group_basics.py:26
Functionulysses_flash_attn_forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None, position_i
verl/verl/models/transformers/qwen2_vl.py:218
Methodupdate
(self, current_kl, n_steps)
verl/verl/trainer/ppo/core_algos.py:39
Methodupdate_actor
(self, data: DataProto)
verl/verl/workers/megatron_workers.py:352
Methodupdate_critic
(self, data: DataProto)
verl/verl/workers/megatron_workers.py:640
Methodupdate_critic
Update the critic
verl/verl/workers/critic/base.py:38
Methodupdate_critic
(self, dataloader: Iterable[DataProto])
verl/verl/workers/critic/megatron_critic.py:207
Methodupdate_critic
(self, data: DataProto)
verl/verl/workers/critic/dp_critic.py:166
Functionupdate_dict_with_config
(dictionary: Dict, config: DictConfig)
verl/verl/utils/config.py:20
Functionupdate_kwargs_with_config
(dictionary: Dict, config: ModelParallelConfig)
verl/verl/utils/megatron/tensor_parallel.py:27
Methodupdate_policy
Update the policy with an iterator of DataProto Args: dataloader (Iterable[DataProto]): an iterator over the DataProto that retur
verl/verl/workers/actor/megatron_actor.py:358
Methodupdate_policy
(self, data: DataProto)
verl/verl/workers/actor/dp_actor.py:229
Methodupdate_rm
(self, data: DataProto)
verl/recipe/prime/prime_fsdp_workers.py:288
Methodupdate_this_rank_models
(self, new_models)
verl/verl/workers/sharding_manager/megatron_vllm.py:202
Methodvalidate_input
(keys)
verl/verl/protocol.py:410
Methodverify
(self, data)
verl/verl/workers/reward_manager/naive.py:29
Functionvocab_parallel_log_probs_from_logits_response_rmpad
Similar to log_probs_from_logits_response_rmpad, but the logits_rmpad is now spliited across tensor parallel region. This will further reduce the
verl/verl/utils/megatron/tensor_parallel.py:146
Methodvocab_size
(self)
verl/tests/e2e/envs/digit_completion/tokenizer.py:86
Methodvocab_size
`int`: Size of the base vocabulary (without the added tokens).
verl/verl/workers/rollout/tokenizer.py:28
Functionwait
()
verl/verl/utils/ulysses.py:146
Methodwait_for_hdfs
(self)
verl/verl/utils/debug/trajectory_tracker.py:63
Methodweight_buffers
(self)
verl/verl/utils/memory_buffer.py:212
Methodworker_names
(self)
verl/verl/single_controller/ray/base.py:301
Methodworkers
(self)
verl/verl/single_controller/ray/base.py:382
← previousnext →1,101–1,200 of 1,207, ranked by callers