Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BeastyZ/ConvSearch-R1
/ functions
Functions
1,207 in github.com/BeastyZ/ConvSearch-R1
⨍
Functions
1,207
◇
Types & classes
166
↳
Endpoints
40
↓ 2 callers
Function
_pad_tensor
(x: Tensor, dim: int, padding_size: int)
verl/verl/utils/ulysses.py:103
↓ 2 callers
Method
_pad_to_length
(self, input_ids, attention_mask)
verl/verl/utils/dataset/rm_dataset.py:99
↓ 2 callers
Function
_parse
(s)
verl/verl/utils/reward_score/prime_math/grader.py:312
↓ 2 callers
Method
_read_files_and_tokenize
(self)
verl/verl/utils/dataset/rl_dataset.py:124
↓ 2 callers
Method
_save_checkpoint
(self)
verl/recipe/prime/prime_ray_trainer.py:237
↓ 2 callers
Method
_save_checkpoint
(self)
verl/verl/trainer/ppo/ray_trainer.py:658
↓ 2 callers
Method
_set_cos_sin_cache
(self, seq_len, device, dtype)
verl/verl/models/qwen2/megatron/layers/parallel_attention.py:51
↓ 2 callers
Method
_set_cos_sin_cache
(self, seq_len, device, dtype)
verl/verl/models/llama/megatron/layers/parallel_attention.py:51
↓ 2 callers
Function
_strip_properly_formatted_commas
(expr: str)
verl/verl/utils/reward_score/prime_math/__init__.py:136
↓ 2 callers
Function
_unpad_tensor
(x: Tensor, dim: int, padding_size: int)
verl/verl/utils/ulysses.py:110
↓ 2 callers
Function
_unwrap_ray_remote
(cls)
verl/verl/single_controller/ray/base.py:434
↓ 2 callers
Method
add
(self, data: DataProto)
verl/tests/ray/test_colocated_workers.py:31
↓ 2 callers
Method
add
(self, a, b)
verl/tests/e2e/envs/digit_completion/task.py:78
↓ 2 callers
Method
all_gather
(self)
verl/tests/ray/test_worker_group_torch.py:40
↓ 2 callers
Function
all_to_all_tensor
( local_input: Tensor, scatter_dim: int, gather_dim: int, group: Optional[dist.ProcessGroup] =
verl/verl/utils/ulysses.py:132
↓ 2 callers
Method
allgather_params
allgather params of all pp ranks. Return a list of handles
verl/verl/workers/sharding_manager/megatron_vllm.py:133
↓ 2 callers
Function
apply_kl_penalty
(data: DataProto, kl_ctrl: core_algos.AdaptiveKLController, kl_penalty='kl')
verl/verl/trainer/ppo/ray_trainer.py:136
↓ 2 callers
Function
compute_advantage
(data: DataProto, adv_estimator, gamma=1.0, lam=1.0, num_repeat=1)
verl/verl/trainer/ppo/ray_trainer.py:168
↓ 2 callers
Function
compute_data_metrics
(batch, use_critic=True)
verl/recipe/prime/prime_ray_trainer.py:54
↓ 2 callers
Function
compute_dpo_abs_accuracy
(token_level_scores, acc, eos_mask, n_samples)
verl/recipe/prime/prime_core_algos.py:143
↓ 2 callers
Function
compute_dpo_accuracy
(token_level_scores, acc, eos_mask, n_samples)
verl/recipe/prime/prime_core_algos.py:118
↓ 2 callers
Method
compute_rm_score
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:1140
↓ 2 callers
Function
compute_timing_metrics
(batch, timing_raw)
verl/recipe/prime/prime_ray_trainer.py:125
↓ 2 callers
Method
compute_values
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:818
↓ 2 callers
Function
create_and_sync_state
(param_name, state, is_param)
verl/verl/utils/fsdp_utils.py:285
↓ 2 callers
Function
create_colocated_worker_cls
This function should return a class instance that delegates the calls to every cls in cls_dict
verl/verl/single_controller/ray/base.py:440
↓ 2 callers
Function
download_resource
( url: str, original_ext: str, resource_key: str, out_dir: str )
preprocess/topiocqa/download_data.py:362
↓ 2 callers
Method
encode
(self, query_list: List[str])
src/retrieval/server.py:144
↓ 2 callers
Method
encode
Converts a string to a sequence of ids (integer), using the tokenizer and vocabulary. Args: text (`str`, `List[str]` or
verl/verl/workers/rollout/tokenizer.py:70
↓ 2 callers
Function
find_latest_ckpt_path
(path, directory_format="global_step_{}")
verl/verl/utils/checkpoint/checkpoint_manager.py:114
↓ 2 callers
Function
format_reward
(response_strs: List[str], format_score=0.1)
verl/verl/utils/reward_score/rewrite_r1.py:22
↓ 2 callers
Method
forward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:119
↓ 2 callers
Method
forward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
verl/verl/models/llama/megatron/modeling_llama_megatron.py:120
↓ 2 callers
Method
forward_backward_batch
(self, data: DataProto, forward_only=False)
verl/verl/workers/critic/megatron_critic.py:119
↓ 2 callers
Method
forward_backward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
verl/verl/workers/actor/megatron_actor.py:233
↓ 2 callers
Function
gen_topiocqa_qrel
(file_path, output_qrel_file_path, is_train=True)
preprocess/topiocqa/preprocess.py:68
↓ 2 callers
Method
get_all_params
Get all the parameters of the models in all pp ranks Returns: params: List[List[Dict[str, Tensor]]]: a list of parameters in all
verl/verl/workers/sharding_manager/megatron_vllm.py:179
↓ 2 callers
Function
get_common_default_kwargs_for_parallel_linear
()
verl/verl/utils/megatron/tensor_parallel.py:47
↓ 2 callers
Function
get_generation_config
( model: str, trust_remote_code: bool = False, )
verl/verl/utils/model.py:58
↓ 2 callers
Function
get_gsm8k_data
()
verl/tests/verl/utils/dataset/test_sft_dataset.py:21
↓ 2 callers
Function
get_huggingface_actor_config
(model_name: str, override_config_kwargs=None, trust_remote_code=False)
verl/verl/utils/model.py:47
↓ 2 callers
Function
get_model_config
(model)
verl/verl/utils/megatron_utils.py:38
↓ 2 callers
Function
get_seqlen_balanced_partitions
get order of seq lengths to make partitions balanced, this is used in balacing sum of seqlength across dp ranks and microbatches Paramete
verl/verl/utils/seqlen_balancing.py:152
↓ 2 callers
Function
get_trajectory_tracker
()
verl/verl/utils/debug/trajectory_tracker.py:79
↓ 2 callers
Function
get_upper_triangle
(tensor_x)
verl/recipe/prime/prime_core_algos.py:124
↓ 2 callers
Function
get_version
(pkg)
verl/verl/workers/rollout/vllm_rollout/__init__.py:23
↓ 2 callers
Function
get_weight_buffer_meta_from_module
Return a dictionary containing name to a shape and dtype.
verl/verl/utils/memory_buffer.py:61
↓ 2 callers
Function
grade_answer
The answer will be considered correct if: (a) it normalizes to the same string as the ground truth answer OR (b) sympy can simplify t
verl/verl/utils/reward_score/prime_math/__init__.py:269
↓ 2 callers
Method
init
(self)
verl/tests/ray/test_worker_group_torch.py:35
↓ 2 callers
Function
is_tensor_parallel_param
(param)
verl/verl/utils/megatron/tensor_parallel.py:86
↓ 2 callers
Function
is_vllm_available
()
verl/verl/utils/import_utils.py:33
↓ 2 callers
Function
list_of_dict_to_dict_of_list
(list_of_dict: list[dict])
verl/verl/protocol.py:100
↓ 2 callers
Method
load_checkpoint
(self, path, del_local_after_load=True)
verl/recipe/prime/prime_fsdp_workers.py:343
↓ 2 callers
Function
load_gold
(trec_path: str)
src/retrieval/server.py:116
↓ 2 callers
Function
load_model
(model_type, query_or_doc, model_path)
index/dense/models.py:103
↓ 2 callers
Method
load_params_to_cuda
load all model params to cuda
verl/verl/workers/sharding_manager/megatron_vllm.py:127
↓ 2 callers
Method
log
(self, data, step)
verl/verl/utils/logger/aggregate_logger.py:40
↓ 2 callers
Function
log_probs_from_logits_all_rmpad
Compute the log_probs from logits with rmpad input_ids and logits. Note that logits_rmpad = model(input_ids_rmpad). For each sentences, there is a
verl/verl/utils/torch_functional.py:361
↓ 2 callers
Function
logprobs_from_logits_naive
(logits, labels)
verl/verl/utils/torch_functional.py:71
↓ 2 callers
Function
logprobs_from_logits_v2
A memory efficient implementation of logprobs_from_logits
verl/verl/utils/torch_functional.py:77
↓ 2 callers
Function
make_map_fn
(split)
verl/examples/data_preprocess/topiocqa.py:46
↓ 2 callers
Function
make_map_fn
(split)
verl/examples/data_preprocess/qrecc.py:46
↓ 2 callers
Method
make_minibatch_iterator
Make minibatch iterator for updating the actor Args: data (DataProto): a DataProto containing keys ``input_ids``
verl/verl/workers/actor/megatron_actor.py:203
↓ 2 callers
Function
makedirs
r"""Works like os.makedirs() but supports hdfs. Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except tha
verl/verl/utils/hdfs_io.py:50
↓ 2 callers
Function
masked_rloo
(reward_tensor_original, mask_tensor)
verl/recipe/prime/prime_core_algos.py:22
↓ 2 callers
Function
math_equal
Exact match of math if and only if: 1. numerical equal: both can convert to float and are equal 2. symbolic equal: both can convert to sy
verl/verl/utils/reward_score/prime_math/grader.py:174
↓ 2 callers
Function
md5_encode
(path: str)
verl/verl/utils/fs.py:36
↓ 2 callers
Function
normalize
(answer, pi)
verl/verl/utils/reward_score/prime_math/grader.py:119
↓ 2 callers
Function
normalize_pp_vpp_params
Normalize the pp vpp params into a complete named parameters. This is useful when gather parameters from pp ranks and passed to a model witho
verl/verl/utils/model.py:198
↓ 2 callers
Method
offload_params_to_cpu
(self)
verl/verl/workers/reward_model/megatron/reward_model.py:254
↓ 2 callers
Function
parallel_compute_score_async
(evaluation_func, completions, r
verl/verl/workers/reward_manager/prime.py:46
↓ 2 callers
Function
pload
(path)
preprocess/qrecc/preprocess_v3.py:12
↓ 2 callers
Method
preprocess_data
AllGather data from sp region This is because the data is first sharded along the FSDP dimension as we utilize the DP_COMPUTE
verl/verl/workers/sharding_manager/fsdp_ulysses.py:57
↓ 2 callers
Method
prime_norm
(self, token_level_scores)
verl/recipe/prime/prime_dp_rm.py:194
↓ 2 callers
Method
query_emb
(self, input_ids, attention_mask)
src/eval/models.py:30
↓ 2 callers
Method
query_emb
(self, input_ids, attention_mask)
src/retrieval/server.py:39
↓ 2 callers
Method
query_emb
(self, input_ids, attention_mask)
index/dense/models.py:35
↓ 2 callers
Function
repeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
verl/verl/models/llama/megatron/layers/parallel_attention.py:131
↓ 2 callers
Method
sample_str_prompts
(self)
verl/tests/e2e/envs/digit_completion/task.py:91
↓ 2 callers
Method
save_checkpoint
(self, local_path, hdfs_path=None, global_step=0, remove_previous_ckpt=False)
verl/recipe/prime/prime_fsdp_workers.py:328
↓ 2 callers
Method
save_checkpoint
(self, local_path, hdfs_path=None, global_step=0, remove_previous_ckpt=False)
verl/verl/workers/fsdp_workers.py:878
↓ 2 callers
Function
set_seed
(args)
src/eval/get_metrics_using_ance.py:31
↓ 2 callers
Function
set_seed
(seed)
index/dense/utils.py:104
↓ 2 callers
Method
spawn
spawn to a dictionary of worker groups, each with a subset of method with prefix.
verl/verl/single_controller/ray/base.py:312
↓ 2 callers
Function
split_tuple
Split the elements in a tuple/interval, while handling well-formatted commas in large numbers
verl/verl/utils/reward_score/prime_math/__init__.py:254
↓ 2 callers
Function
strip_string
(string)
verl/verl/utils/reward_score/math.py:165
↓ 2 callers
Function
stripped_string_compare
(s1, s2)
verl/verl/utils/reward_score/prime_code/testing_util.py:611
↓ 2 callers
Function
sync_model_parameters_global
(layer)
verl/tests/model/test_transformers_ulysses.py:38
↓ 2 callers
Function
tensor_to_list
(tensor)
index/dense/utils.py:101
↓ 2 callers
Method
update_critic
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:842
↓ 2 callers
Method
update_options
(self, options: Dict)
verl/verl/single_controller/ray/base.py:159
↓ 2 callers
Method
update_policy
Update the policy with an iterator of DataProto Args: data (DataProto): an iterator over the DataProto that returns by
verl/verl/workers/actor/base.py:54
↓ 2 callers
Method
update_sampling_params
(self, **kwargs)
verl/verl/workers/rollout/vllm_rollout/fire_vllm_rollout.py:86
↓ 2 callers
Method
validation_step
(self, batch: TensorDict)
verl/verl/trainer/fsdp_sft_trainer.py:420
↓ 2 callers
Method
verify
verify the batch and save as ``acc`` tensor
verl/verl/workers/reward_manager/prime.py:94
↓ 1 callers
Method
__getitem__
(self, key)
index/dense/utils.py:173
↓ 1 callers
Method
__init__
(self, args, tokenizer, prefix="")
index/dense/libs.py:126
↓ 1 callers
Method
__init__
(self, base_path, seed=-1)
index/dense/utils.py:139
↓ 1 callers
Method
__init__
(self, config)
index/dense/models.py:21
↓ 1 callers
Method
__init__
(self, size)
verl/tests/ray/test_worker_group_torch.py:31
← previous
next →
201–300 of 1,207, ranked by callers