MCPcopy Create free account

hub / github.com/Xuekai-Zhu/FlowRL / functions

Functions4,141 in github.com/Xuekai-Zhu/FlowRL

Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
verl_Test/recipe/spin/dp_actor.py:33
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
verl_Test/verl/workers/actor/megatron_actor.py:151
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
verl_Test/verl/workers/actor/dp_actor.py:252
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
verl_FlowRL/recipe/spin/dp_actor.py:33
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
verl_FlowRL/verl/workers/actor/megatron_actor.py:151
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
verl_FlowRL/verl/workers/actor/dp_actor.py:277
Methodcompute_logprobs_fn
(output, data, use_dynamic_bsz=False, indices=None)
verl_Test/verl/workers/actor/megatron_actor.py:178
Methodcompute_logprobs_fn
(output, data, use_dynamic_bsz=False, indices=None)
verl_FlowRL/verl/workers/actor/megatron_actor.py:178
Functioncompute_onlinedpo_pref
Computes preferences between pairs of sequences based on summed rewards and returns a mask aligned with the interleaved batch. Assumes i
verl_Test/recipe/spin/core_algos.py:60
Functioncompute_onlinedpo_pref
Computes preferences between pairs of sequences based on summed rewards and returns a mask aligned with the interleaved batch. Assumes i
verl_FlowRL/recipe/spin/core_algos.py:60
Functioncompute_pf_ppo_reweight_data
Reweight the data based on the token_level_scores. Args: data: DataProto object, containing batch, non_tensor_batch and meta_info
verl_Test/verl/trainer/ppo/core_algos.py:558
Functioncompute_pf_ppo_reweight_data
Reweight the data based on the token_level_scores. Args: data: DataProto object, containing batch, non_tensor_batch and meta_info
verl_FlowRL/verl/trainer/ppo/core_algos.py:558
Functioncompute_position_id_with_mask
(mask)
verl_FlowRL/tests/e2e/envs/digit_completion/task.py:111
Methodcompute_ref_log_prob
(self, data: DataProto)
verl_Test/verl/workers/megatron_workers.py:473
Methodcompute_ref_log_prob
(self, data: DataProto)
verl_FlowRL/verl/workers/megatron_workers.py:473
Functioncompute_reinforce_plus_plus_baseline_outcome_advantage
Compute advantage for RF++-baseline (https://arxiv.org/abs/2501.03262), operating only on Outcome reward (with only one scalar reward for eac
verl_Test/verl/trainer/ppo/core_algos.py:222
Functioncompute_reinforce_plus_plus_baseline_outcome_advantage
Compute advantage for RF++-baseline (https://arxiv.org/abs/2501.03262), operating only on Outcome reward (with only one scalar reward for eac
verl_FlowRL/verl/trainer/ppo/core_algos.py:222
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_Test/verl/trainer/ppo/core_algos.py:304
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_FlowRL/verl/trainer/ppo/core_algos.py:304
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_Test/verl/trainer/ppo/core_algos.py:337
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_FlowRL/verl/trainer/ppo/core_algos.py:337
Methodcompute_reward
(self, data: DataProto)
verl_Test/verl/workers/reward_model/megatron/reward_model.py:124
Methodcompute_reward
(self, data: DataProto)
verl_FlowRL/verl/workers/reward_model/megatron/reward_model.py:124
Functioncompute_reward_async
Load the reward manager and compute the reward for a batch of data. This is meant to be run in a separate Ray worker.
verl_Test/verl/trainer/ppo/reward.py:129
Functioncompute_reward_async
Load the reward manager and compute the reward for a batch of data. This is meant to be run in a separate Ray worker.
verl_FlowRL/verl/trainer/ppo/reward.py:129
Functioncompute_rewards
(token_level_scores, old_log_prob, ref_log_prob, kl_ratio)
verl_Test/verl/trainer/ppo/core_algos.py:365
Functioncompute_rewards
(token_level_scores, old_log_prob, ref_log_prob, kl_ratio)
verl_FlowRL/verl/trainer/ppo/core_algos.py:365
Functioncompute_rloo_advantage_return
(data: verl.DataProto, response_mask: torch.Tensor, n_samples, config)
verl_Test/recipe/prime/prime_core_algos.py:21
Functioncompute_rloo_advantage_return
(data: verl.DataProto, response_mask: torch.Tensor, n_samples, config)
verl_FlowRL/recipe/prime/prime_core_algos.py:21
Functioncompute_rloo_outcome_advantage
Compute advantage for RLOO based on https://arxiv.org/abs/2402.14740 Args: token_level_rewards: `(torch.Tensor)` shape: (
verl_Test/verl/trainer/ppo/core_algos.py:264
Functioncompute_rloo_outcome_advantage
Compute advantage for RLOO based on https://arxiv.org/abs/2402.14740 Args: token_level_rewards: `(torch.Tensor)` shape: (
verl_FlowRL/verl/trainer/ppo/core_algos.py:264
Methodcompute_rm_score
(self, data: DataProto)
verl_Test/recipe/prime/prime_fsdp_workers.py:266
Methodcompute_rm_score
(self, data: DataProto)
verl_Test/verl/workers/megatron_workers.py:872
Methodcompute_rm_score
(self, data: DataProto)
verl_FlowRL/recipe/prime/prime_fsdp_workers.py:266
Methodcompute_rm_score
(self, data: DataProto)
verl_FlowRL/verl/workers/megatron_workers.py:872
Functioncompute_score
(model_output: str, ground_truth: str)
verl_Test/recipe/r1/tasks/math.py:23
Functioncompute_score
(completion, test_cases)
verl_Test/recipe/r1/tasks/livecodebench.py:55
Functioncompute_score
(solution_str, ground_truth)
verl_Test/recipe/r1/tasks/gpqa.py:21
Functioncompute_score
Compute the reward score for a solution. Args: solution_str: The solution string ground_truth: The ground truth answer st
verl_Test/recipe/r1/tasks/math_dapo.py:238
Functioncompute_score
(model_response, gt_answer, fast=False)
verl_Test/recipe/entropy_math/__init__.py:1027
Functioncompute_score
(predict_str: str, ground_truth: str)
verl_Test/verl/utils/reward_score/geo3k.py:31
Functioncompute_score
The scoring function for GSM8k. Reference: Trung, Luong, et al. "Reft: Reasoning with reinforced fine-tuning." Proceedings of the 62nd Annual Mee
verl_Test/verl/utils/reward_score/gsm8k.py:44
Functioncompute_score
The scoring function for exact match (EM). Args: solution_str: the solution text ground_truth: the ground truth meth
verl_Test/verl/utils/reward_score/search_r1_like_qa_em.py:96
Functioncompute_score
(model_output: str, ground_truth: str, timeout_score: float = 0)
verl_Test/verl/utils/reward_score/math_verify.py:23
Functioncompute_score
Compute the reward score for a solution. Args: solution_str: The solution string ground_truth: The ground truth answer st
verl_Test/verl/utils/reward_score/math_dapo.py:237
Functioncompute_score
Computes the code score using the remote sandbox API. Args: sandbox_fusion_url: The URL of the sandbox_fusion service, eg: "https://
verl_Test/verl/utils/reward_score/sandbox_fusion/__init__.py:28
Functioncompute_score
(completion, test_cases, continuous=False)
verl_Test/verl/utils/reward_score/prime_code/__init__.py:21
Functioncompute_score
(model_output: str, ground_truth: str)
verl_Test/verl/utils/reward_score/r1_tasks/math.py:22
Functioncompute_score
(completion, test_cases)
verl_Test/verl/utils/reward_score/r1_tasks/livecodebench.py:55
Functioncompute_score
(solution_str, ground_truth)
verl_Test/verl/utils/reward_score/r1_tasks/gpqa.py:21
Functioncompute_score
(model_output: str, ground_truth: str)
verl_Test/verl/utils/reward_score/prime_math/__init__.py:379
Functioncompute_score
(model_output: str, ground_truth: str)
verl_FlowRL/recipe/r1/tasks/math.py:23
Functioncompute_score
(completion, test_cases)
verl_FlowRL/recipe/r1/tasks/livecodebench.py:55
Functioncompute_score
(solution_str, ground_truth)
verl_FlowRL/recipe/r1/tasks/gpqa.py:21
Functioncompute_score
(predict_str: str, ground_truth: str)
verl_FlowRL/verl/utils/reward_score/geo3k.py:31
Functioncompute_score
The scoring function for GSM8k. Reference: Trung, Luong, et al. "Reft: Reasoning with reinforced fine-tuning." Proceedings of the 62nd Annual Mee
verl_FlowRL/verl/utils/reward_score/gsm8k.py:44
Functioncompute_score
The scoring function for exact match (EM). Args: solution_str: the solution text ground_truth: the ground truth meth
verl_FlowRL/verl/utils/reward_score/search_r1_like_qa_em.py:96
Functioncompute_score
(model_output: str, ground_truth: str, timeout_score: float = 0)
verl_FlowRL/verl/utils/reward_score/math_verify.py:23
Functioncompute_score
Compute the reward score for a solution. Args: solution_str: The solution string ground_truth: The ground truth answer st
verl_FlowRL/verl/utils/reward_score/math_dapo.py:237
Functioncompute_score
Computes the code score using the remote sandbox API. Args: sandbox_fusion_url: The URL of the sandbox_fusion service, eg: "https://
verl_FlowRL/verl/utils/reward_score/sandbox_fusion/__init__.py:28
Functioncompute_score
(completion, test_cases, continuous=False)
verl_FlowRL/verl/utils/reward_score/prime_code/__init__.py:21
Functioncompute_score
(model_output: str, ground_truth: str)
verl_FlowRL/verl/utils/reward_score/r1_tasks/math.py:22
Functioncompute_score
(completion, test_cases)
verl_FlowRL/verl/utils/reward_score/r1_tasks/livecodebench.py:55
Functioncompute_score
(solution_str, ground_truth)
verl_FlowRL/verl/utils/reward_score/r1_tasks/gpqa.py:21
Functioncompute_score
(model_output: str, ground_truth: str)
verl_FlowRL/verl/utils/reward_score/prime_math/__init__.py:379
Functioncompute_score_batched
This is a demonstration of how the batched reward function should look like. Typically, you want to use batched reward to speed up the proces
verl_Test/verl/utils/reward_score/math_batch.py:18
Functioncompute_score_batched
This is a demonstration of how the batched reward function should look like. Typically, you want to use batched reward to speed up the proces
verl_FlowRL/verl/utils/reward_score/math_batch.py:18
Functioncompute_score_subem
The scoring function for substring exact match (EM). Args: solution_str: the solution text ground_truth: the ground truth
verl_Test/verl/utils/reward_score/search_r1_like_qa_em.py:131
Functioncompute_score_subem
The scoring function for substring exact match (EM). Args: solution_str: the solution text ground_truth: the ground truth
verl_FlowRL/verl/utils/reward_score/search_r1_like_qa_em.py:131
Functioncompute_transformers_input_shapes
(batches, meta_info)
verl_Test/verl/utils/megatron/pipeline_parallel.py:22
Functioncompute_transformers_input_shapes
(batches, meta_info)
verl_FlowRL/verl/utils/megatron/pipeline_parallel.py:22
Functioncompute_value_loss
Compute the clipped value-function loss for PPO. Copied from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py#L1151
verl_Test/verl/trainer/ppo/core_algos.py:487
Functioncompute_value_loss
Compute the clipped value-function loss for PPO. Copied from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py#L1151
verl_FlowRL/verl/trainer/ppo/core_algos.py:487
Methodcompute_values
(self, data: DataProto)
verl_Test/verl/workers/megatron_workers.py:683
Methodcompute_values
Compute values
verl_Test/verl/workers/critic/base.py:33
Methodcompute_values
(self, data: DataProto)
verl_Test/verl/workers/critic/megatron_critic.py:92
Methodcompute_values
(self, data: DataProto)
verl_Test/verl/workers/critic/dp_critic.py:138
Methodcompute_values
(self, data: DataProto)
verl_FlowRL/verl/workers/megatron_workers.py:683
Methodcompute_values
Compute values
verl_FlowRL/verl/workers/critic/base.py:33
Methodcompute_values
(self, data: DataProto)
verl_FlowRL/verl/workers/critic/megatron_critic.py:92
Methodcompute_values
(self, data: DataProto)
verl_FlowRL/verl/workers/critic/dp_critic.py:138
Methodconcat
(data: List[ray.ObjectRef])
verl_Test/verl/protocol.py:860
Methodconcat
(data: List[ray.ObjectRef])
verl_FlowRL/verl/protocol.py:860
Methodconvert_ids_to_tokens
Converts a single index or a sequence of indices in a token or a sequence of tokens, using the vocabulary and added tokens.
verl_Test/verl/workers/rollout/tokenizer.py:120
Methodconvert_ids_to_tokens
Converts a single index or a sequence of indices in a token or a sequence of tokens, using the vocabulary and added tokens.
verl_FlowRL/verl/workers/rollout/tokenizer.py:120
Functionconvert_megatron_model_to_transformers_model
Convert megatron model to transformers model.
verl_Test/verl/utils/megatron_utils.py:470
Functionconvert_megatron_model_to_transformers_model
Convert megatron model to transformers model.
verl_FlowRL/verl/utils/megatron_utils.py:470
Methodconvert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl_Test/verl/models/mcore/weight_converter.py:86
Methodconvert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl_Test/verl/models/mcore/weight_converter.py:260
Methodconvert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl_FlowRL/verl/models/mcore/weight_converter.py:86
Methodconvert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl_FlowRL/verl/models/mcore/weight_converter.py:260
Methodconvert_tokens_to_string
Converts a sequence of tokens in a single string. The most simple way to do it is `" ".join(tokens)` but we often want to remove sub-
verl_Test/verl/workers/rollout/tokenizer.py:149
Methodconvert_tokens_to_string
(self, tokens)
verl_FlowRL/tests/e2e/envs/digit_completion/tokenizer.py:98
Methodconvert_tokens_to_string
Converts a sequence of tokens in a single string. The most simple way to do it is `" ".join(tokens)` but we often want to remove sub-
verl_FlowRL/verl/workers/rollout/tokenizer.py:149
Functioncopyfunc
Copies a funcion. :param f: The function to copy. :return: The copied function. .. deprecated:: 0.4 Use :func:`modify_fu
verl_Test/rllm/rewards/code_utils/pyext2.py:67
Functioncopyfunc
Copies a funcion. :param f: The function to copy. :return: The copied function. .. deprecated:: 0.4 Use :func:`modify_fu
verl_FlowRL/rllm/rewards/code_utils/pyext2.py:67
Methodcp_size
(self)
verl_Test/verl/single_controller/base/megatron/worker_group.py:51
Methodcp_size
(self)
verl_FlowRL/verl/single_controller/base/megatron/worker_group.py:51
Methodcreate
(self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs)
verl_Test/verl/tools/sandbox_fusion_tools.py:144
Methodcreate
(self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs)
verl_Test/verl/tools/gsm8k_tool.py:66
← previousnext →3,001–3,100 of 4,141, ranked by callers