Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Xuekai-Zhu/FlowRL
/ functions
Functions
4,141 in github.com/Xuekai-Zhu/FlowRL
⨍
Functions
4,141
◇
Types & classes
610
↳
Endpoints
120
Method
compute_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
Method
compute_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
Method
compute_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
Method
compute_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
Method
compute_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
Method
compute_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
Method
compute_logprobs_fn
(output, data, use_dynamic_bsz=False, indices=None)
verl_Test/verl/workers/actor/megatron_actor.py:178
Method
compute_logprobs_fn
(output, data, use_dynamic_bsz=False, indices=None)
verl_FlowRL/verl/workers/actor/megatron_actor.py:178
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_position_id_with_mask
(mask)
verl_FlowRL/tests/e2e/envs/digit_completion/task.py:111
Method
compute_ref_log_prob
(self, data: DataProto)
verl_Test/verl/workers/megatron_workers.py:473
Method
compute_ref_log_prob
(self, data: DataProto)
verl_FlowRL/verl/workers/megatron_workers.py:473
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_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
Method
compute_reward
(self, data: DataProto)
verl_Test/verl/workers/reward_model/megatron/reward_model.py:124
Method
compute_reward
(self, data: DataProto)
verl_FlowRL/verl/workers/reward_model/megatron/reward_model.py:124
Function
compute_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
Function
compute_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
Function
compute_rewards
(token_level_scores, old_log_prob, ref_log_prob, kl_ratio)
verl_Test/verl/trainer/ppo/core_algos.py:365
Function
compute_rewards
(token_level_scores, old_log_prob, ref_log_prob, kl_ratio)
verl_FlowRL/verl/trainer/ppo/core_algos.py:365
Function
compute_rloo_advantage_return
(data: verl.DataProto, response_mask: torch.Tensor, n_samples, config)
verl_Test/recipe/prime/prime_core_algos.py:21
Function
compute_rloo_advantage_return
(data: verl.DataProto, response_mask: torch.Tensor, n_samples, config)
verl_FlowRL/recipe/prime/prime_core_algos.py:21
Function
compute_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
Function
compute_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
Method
compute_rm_score
(self, data: DataProto)
verl_Test/recipe/prime/prime_fsdp_workers.py:266
Method
compute_rm_score
(self, data: DataProto)
verl_Test/verl/workers/megatron_workers.py:872
Method
compute_rm_score
(self, data: DataProto)
verl_FlowRL/recipe/prime/prime_fsdp_workers.py:266
Method
compute_rm_score
(self, data: DataProto)
verl_FlowRL/verl/workers/megatron_workers.py:872
Function
compute_score
(model_output: str, ground_truth: str)
verl_Test/recipe/r1/tasks/math.py:23
Function
compute_score
(completion, test_cases)
verl_Test/recipe/r1/tasks/livecodebench.py:55
Function
compute_score
(solution_str, ground_truth)
verl_Test/recipe/r1/tasks/gpqa.py:21
Function
compute_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
Function
compute_score
(model_response, gt_answer, fast=False)
verl_Test/recipe/entropy_math/__init__.py:1027
Function
compute_score
(predict_str: str, ground_truth: str)
verl_Test/verl/utils/reward_score/geo3k.py:31
Function
compute_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
Function
compute_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
Function
compute_score
(model_output: str, ground_truth: str, timeout_score: float = 0)
verl_Test/verl/utils/reward_score/math_verify.py:23
Function
compute_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
Function
compute_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
Function
compute_score
(completion, test_cases, continuous=False)
verl_Test/verl/utils/reward_score/prime_code/__init__.py:21
Function
compute_score
(model_output: str, ground_truth: str)
verl_Test/verl/utils/reward_score/r1_tasks/math.py:22
Function
compute_score
(completion, test_cases)
verl_Test/verl/utils/reward_score/r1_tasks/livecodebench.py:55
Function
compute_score
(solution_str, ground_truth)
verl_Test/verl/utils/reward_score/r1_tasks/gpqa.py:21
Function
compute_score
(model_output: str, ground_truth: str)
verl_Test/verl/utils/reward_score/prime_math/__init__.py:379
Function
compute_score
(model_output: str, ground_truth: str)
verl_FlowRL/recipe/r1/tasks/math.py:23
Function
compute_score
(completion, test_cases)
verl_FlowRL/recipe/r1/tasks/livecodebench.py:55
Function
compute_score
(solution_str, ground_truth)
verl_FlowRL/recipe/r1/tasks/gpqa.py:21
Function
compute_score
(predict_str: str, ground_truth: str)
verl_FlowRL/verl/utils/reward_score/geo3k.py:31
Function
compute_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
Function
compute_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
Function
compute_score
(model_output: str, ground_truth: str, timeout_score: float = 0)
verl_FlowRL/verl/utils/reward_score/math_verify.py:23
Function
compute_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
Function
compute_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
Function
compute_score
(completion, test_cases, continuous=False)
verl_FlowRL/verl/utils/reward_score/prime_code/__init__.py:21
Function
compute_score
(model_output: str, ground_truth: str)
verl_FlowRL/verl/utils/reward_score/r1_tasks/math.py:22
Function
compute_score
(completion, test_cases)
verl_FlowRL/verl/utils/reward_score/r1_tasks/livecodebench.py:55
Function
compute_score
(solution_str, ground_truth)
verl_FlowRL/verl/utils/reward_score/r1_tasks/gpqa.py:21
Function
compute_score
(model_output: str, ground_truth: str)
verl_FlowRL/verl/utils/reward_score/prime_math/__init__.py:379
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_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
Function
compute_transformers_input_shapes
(batches, meta_info)
verl_Test/verl/utils/megatron/pipeline_parallel.py:22
Function
compute_transformers_input_shapes
(batches, meta_info)
verl_FlowRL/verl/utils/megatron/pipeline_parallel.py:22
Function
compute_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
Function
compute_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
Method
compute_values
(self, data: DataProto)
verl_Test/verl/workers/megatron_workers.py:683
Method
compute_values
Compute values
verl_Test/verl/workers/critic/base.py:33
Method
compute_values
(self, data: DataProto)
verl_Test/verl/workers/critic/megatron_critic.py:92
Method
compute_values
(self, data: DataProto)
verl_Test/verl/workers/critic/dp_critic.py:138
Method
compute_values
(self, data: DataProto)
verl_FlowRL/verl/workers/megatron_workers.py:683
Method
compute_values
Compute values
verl_FlowRL/verl/workers/critic/base.py:33
Method
compute_values
(self, data: DataProto)
verl_FlowRL/verl/workers/critic/megatron_critic.py:92
Method
compute_values
(self, data: DataProto)
verl_FlowRL/verl/workers/critic/dp_critic.py:138
Method
concat
(data: List[ray.ObjectRef])
verl_Test/verl/protocol.py:860
Method
concat
(data: List[ray.ObjectRef])
verl_FlowRL/verl/protocol.py:860
Method
convert_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
Method
convert_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
Function
convert_megatron_model_to_transformers_model
Convert megatron model to transformers model.
verl_Test/verl/utils/megatron_utils.py:470
Function
convert_megatron_model_to_transformers_model
Convert megatron model to transformers model.
verl_FlowRL/verl/utils/megatron_utils.py:470
Method
convert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl_Test/verl/models/mcore/weight_converter.py:86
Method
convert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl_Test/verl/models/mcore/weight_converter.py:260
Method
convert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl_FlowRL/verl/models/mcore/weight_converter.py:86
Method
convert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl_FlowRL/verl/models/mcore/weight_converter.py:260
Method
convert_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
Method
convert_tokens_to_string
(self, tokens)
verl_FlowRL/tests/e2e/envs/digit_completion/tokenizer.py:98
Method
convert_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
Function
copyfunc
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
Function
copyfunc
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
Method
cp_size
(self)
verl_Test/verl/single_controller/base/megatron/worker_group.py:51
Method
cp_size
(self)
verl_FlowRL/verl/single_controller/base/megatron/worker_group.py:51
Method
create
(self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs)
verl_Test/verl/tools/sandbox_fusion_tools.py:144
Method
create
(self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs)
verl_Test/verl/tools/gsm8k_tool.py:66
← previous
next →
3,001–3,100 of 4,141, ranked by callers