MCPcopy Create free account

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

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

Method__init__
(self, input_size, gate_ouput_size, up_output_size,
verl/verl/models/llama/megatron/layers/parallel_linear.py:54
Method__init__
LlamaRMSNorm is equivalent to T5LayerNorm
verl/verl/models/llama/megatron/layers/parallel_rmsnorm.py:27
Method__init__
(self, tokenizer, num_examine)
verl/examples/split_placement/main_ppo_split.py:35
Method__iter__
Return: (id, text with title)
index/dense/libs.py:116
Method__iter__
(self)
index/dense/utils.py:123
Method__iter__
(self)
index/dense/utils.py:181
Method__len__
(self)
src/eval/data_format.py:44
Method__len__
(self)
index/dense/libs.py:71
Method__len__
(self)
index/dense/libs.py:113
Method__len__
(self)
index/dense/utils.py:187
Method__len__
(self)
verl/verl/protocol.py:188
Method__len__
(self)
verl/verl/utils/dataset/rm_dataset.py:96
Method__len__
(self)
verl/verl/utils/dataset/sft_dataset.py:107
Method__len__
(self)
verl/verl/utils/dataset/rl_dataset.py:153
Method__lt__
(self, other)
verl/verl/utils/seqlen_balancing.py:42
Method__lt__
(self, other)
verl/verl/utils/seqlen_balancing.py:81
Method__new__
(cls, *args, **kwargs)
verl/verl/single_controller/base/worker.py:84
Method__post_init__
(self)
verl/verl/protocol.py:184
Method__repr__
(self)
verl/verl/utils/seqlen_balancing.py:89
Method__setstate__
(self, data)
verl/verl/protocol.py:212
Method__str__
(self)
verl/tests/e2e/envs/digit_completion/task.py:56
Method_batch_search
(self, query_list: List[str], query_ids: List[str], num: int=100, return_score: bool=True, max_length: int=102
src/retrieval/server.py:195
Method_batch_search
(self, query_list: List[str], query_ids: List[str], num: int=100, return_score: bool=True, max_length: int=102
src/retrieval/server.py:266
Method_convert_id_to_token
(self, index: int)
verl/tests/e2e/envs/digit_completion/tokenizer.py:98
Method_convert_token_to_id
(self, token: str)
verl/tests/e2e/envs/digit_completion/tokenizer.py:95
Method_create_dataloader
(self)
verl/recipe/prime/prime_ray_trainer.py:177
Method_download_files
()
verl/verl/utils/dataset/rm_dataset.py:72
Method_estimate_qwen2_flops
(self, tokens_sum, batch_seqlens, delta_time)
verl/verl/utils/flops_counter.py:80
Method_estimate_unknown_flops
(self, tokens_sum, batch_seqlens, delta_time)
verl/verl/utils/flops_counter.py:77
Method_forward_head
(self, hidden_states)
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:381
Method_forward_head
(self, hidden_states)
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:696
Method_forward_head
(self, hidden_states)
verl/verl/models/llama/megatron/modeling_llama_megatron.py:382
Method_forward_head
(self, hidden_states)
verl/verl/models/llama/megatron/modeling_llama_megatron.py:644
Method_get_pid
(self)
verl/verl/single_controller/base/worker.py:64
Method_init_head
(self, config)
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:372
Method_init_head
(self, config)
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:687
Method_init_head
(self, config)
verl/verl/models/llama/megatron/modeling_llama_megatron.py:373
Method_init_head
(self, config)
verl/verl/models/llama/megatron/modeling_llama_megatron.py:635
Method_init_weights
Initialize the weights
src/eval/models.py:23
Method_init_weights
Initialize the weights
src/retrieval/server.py:34
Method_init_weights
Initialize the weights
index/dense/models.py:28
Method_is_worker_alive
(self, worker: ray.actor.ActorHandle)
verl/verl/single_controller/ray/base.py:225
Method_rebind_actor_methods
bind the method with actor_prefix to its original name
verl/verl/single_controller/ray/base.py:318
Method_set_cos_sin_cache
(self, seq_len, device, dtype)
verl/verl/models/qwen2/megatron/layers/parallel_attention.py:79
Method_set_cos_sin_cache
(self, seq_len, device, dtype)
verl/verl/models/qwen2/megatron/layers/parallel_attention.py:98
Method_set_cos_sin_cache
(self, seq_len, device, dtype)
verl/verl/models/llama/megatron/layers/parallel_attention.py:79
Method_set_cos_sin_cache
(self, seq_len, device, dtype)
verl/verl/models/llama/megatron/layers/parallel_attention.py:98
Method_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
verl/verl/models/qwen2/megatron/layers/parallel_attention.py:215
Method_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
verl/verl/models/llama/megatron/layers/parallel_attention.py:231
Function_temp_run
(sample, generation, debug, result, metadata_list, timeout)
verl/verl/utils/reward_score/prime_code/utils.py:25
Method_tokenize
(self, text: str)
verl/tests/e2e/envs/digit_completion/tokenizer.py:92
Method_validate_config
(self)
verl/recipe/prime/prime_ray_trainer.py:172
Methodadd_batch_document
add a batch of documents to the index
index/dense/libs.py:60
Methodadd_node
(self, process_count)
verl/verl/single_controller/base/worker_group.py:36
Functionadd_one
(data)
verl/tests/ray/test_worker_group_basics.py:83
Methodall_gather
(self)
verl/tests/ray/test_worker_group_torch.py:60
Methodall_special_ids
`List[int]`: List the ids of the special tokens(`'<unk>'`, `'<cls>'`, etc.) mapped to class attributes.
verl/verl/workers/rollout/tokenizer.py:53
Methodall_special_tokens
`List[str]`: A list of the unique special tokens (`'<unk>'`, `'<cls>'`, ..., etc.). Convert tokens of `tokenizers.AddedToken` type t
verl/verl/workers/rollout/tokenizer.py:61
Functionapply_monkey_patch_to_llama
()
verl/verl/models/transformers/monkey_patch.py:19
Functionapply_monkey_patch_to_qwen2
()
verl/verl/models/transformers/monkey_patch.py:30
Functionapply_rotary_pos_emb_rmpad
(q, k, cos, sin, position_ids, indices, sequence_length)
verl/verl/models/qwen2/megatron/layers/parallel_attention.py:283
Functionapply_rotary_pos_emb_rmpad
(q, k, cos, sin, position_ids, indices, sequence_length)
verl/verl/models/llama/megatron/layers/parallel_attention.py:299
Functionarithmetic_sequence_reward_function
(data: DataProto)
verl/tests/e2e/arithmetic_sequence/rl/main_trainer.py:31
Methodbackward
(self, loss)
index/dense/libs.py:257
Methodbackward
(ctx: Any, *grad_output: Tensor)
verl/verl/utils/ulysses.py:182
Methodbackward
(ctx, grad_output: torch.Tensor)
verl/verl/utils/megatron/tensor_parallel.py:123
Methodbuild_inputs_with_special_tokens
(self, token_ids_0: List[int],
verl/tests/e2e/envs/digit_completion/tokenizer.py:104
Methodbuild_memory_reference
(self)
verl/verl/utils/memory_buffer.py:202
Functioncheck_correctness
Check correctness of code generation with a global timeout. The global timeout is to catch some extreme/rare cases not handled by the timeouts
verl/verl/utils/reward_score/prime_code/utils.py:40
Methodcheck_mutually_exclusive
(mbs, mbs_per_gpu, name: str)
verl/verl/trainer/ppo/ray_trainer.py:324
Functioncheck_workers_alive
(workers: List, is_alive: Callable, gap_time: float = 1)
verl/verl/single_controller/base/worker_group.py:82
Methodchunk
(self, chunks: int)
verl/verl/protocol.py:624
Functionclip_by_value
Tensor extenstion to torch.clamp https://github.com/pytorch/pytorch/issues/2793#issuecomment-428784713
verl/verl/utils/torch_functional.py:97
Functioncollate_fn
(x: list['DataProtoItem'])
verl/verl/protocol.py:151
Functioncollate_fn
(data_list: list[dict])
verl/verl/utils/dataset/rl_dataset.py:31
Methodcollate_fn
(batch: list)
src/eval/data_format.py:53
Methodcollate_fn
batch is a list of tuples, each tuple has 2 (text) items (id_, doc)
index/dense/libs.py:132
Functioncollect_all_to_all
(worker_group, output)
verl/verl/single_controller/base/decorator.py:70
Functioncollect_dp_compute_data_proto
(worker_group, output)
verl/verl/single_controller/base/decorator.py:289
Functioncollect_megatron_compute_data_proto
Each output must be a DataProto. We concat the dim=0 of output
verl/verl/single_controller/base/decorator.py:147
Functioncollect_megatron_pp_as_dp_data_proto
(worker_group, output)
verl/verl/single_controller/base/decorator.py:246
Functioncollect_megatron_pp_only
Only collect output of megatron pp. This is useful when examine weight names as they are identical in tp/dp
verl/verl/single_controller/base/decorator.py:223
Functioncompute_attention_mask
(prompts, pad_token_id)
verl/tests/e2e/envs/digit_completion/task.py:107
Functioncompute_entropy_loss
Compute Categorical entropy loss Args: logits: `(torch.Tensor)` shape: (bs, response_length, vocab_size) eos_mask: `(
verl/verl/trainer/ppo/core_algos.py:306
Functioncompute_gae_advantage_return
Adapted from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py Args: token_level_rewards: `(torch.Tensor)`
verl/verl/trainer/ppo/core_algos.py:70
Functioncompute_grad_norm
(model: nn.Module)
verl/verl/utils/torch_functional.py:170
Functioncompute_grpo_outcome_advantage
Compute advantage for GRPO, operating only on Outcome reward (with only one scalar reward for each response). Args: token_level_
verl/verl/trainer/ppo/core_algos.py:111
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
verl/verl/workers/actor/megatron_actor.py:142
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
verl/verl/workers/actor/dp_actor.py:171
Methodcompute_logprobs_fn
(output, data)
verl/verl/workers/actor/megatron_actor.py:162
Functioncompute_policy_loss
Adapted from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py#L1122 Args: old_log_prob: `(torch.Tensor)`
verl/verl/trainer/ppo/core_algos.py:272
Functioncompute_position_id_with_mask
(mask)
verl/tests/e2e/envs/digit_completion/task.py:113
Methodcompute_ref_log_prob
(self, data: DataProto)
verl/verl/workers/megatron_workers.py:406
Functioncompute_reinforce_plus_plus_outcome_advantage
Compute advantage for REINFORCE++. This implementation is based on the paper: https://arxiv.org/abs/2501.03262 Args: token_level
verl/verl/trainer/ppo/core_algos.py:202
Functioncompute_remax_outcome_advantage
Compute advantage for ReMax, operating only on Outcome reward This implementation is based on the paper: https://arxiv.org/abs/2310.10505
verl/verl/trainer/ppo/core_algos.py:236
Methodcompute_reward
(self, data: DataProto)
verl/verl/workers/reward_model/megatron/reward_model.py:118
Functioncompute_rewards
(token_level_scores, old_log_prob, ref_log_prob, kl_ratio)
verl/verl/trainer/ppo/core_algos.py:267
Functioncompute_rloo_advantage_return
(data: verl.DataProto, eos_mask: torch.Tensor, n_samples, config)
verl/recipe/prime/prime_core_algos.py:20
Functioncompute_rloo_outcome_advantage
Compute advantage for RLOO based on https://arxiv.org/abs/2402.14740 Args: token_level_rewards: `(torch.Tensor)` shape: (
verl/verl/trainer/ppo/core_algos.py:157
Methodcompute_rm_score
(self, data: DataProto)
verl/recipe/prime/prime_fsdp_workers.py:253
← previousnext →801–900 of 1,207, ranked by callers