MCPcopy Create free account

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

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

↓ 2 callersMethodmerge
(self, other)
verl_Test/verl/utils/seqlen_balancing.py:34
↓ 2 callersMethodmerge
(self, other)
verl_FlowRL/verl/utils/seqlen_balancing.py:34
↓ 2 callersFunctionnormalize
(answer, pi)
verl_Test/recipe/entropy_math/grader.py:121
↓ 2 callersFunctionnormalize
(answer, pi)
verl_Test/verl/utils/reward_score/prime_math/grader.py:122
↓ 2 callersFunctionnormalize
(answer, pi)
verl_FlowRL/verl/utils/reward_score/prime_math/grader.py:122
↓ 2 callersFunctionnormalize_final_answer
Normalize a final answer to a quantitative reasoning question. This code comes from https://arxiv.org/pdf/2206.14858.pdf, page18.
verl_Test/recipe/entropy_math/__init__.py:440
↓ 2 callersFunctionnormalize_model_name
Transform the model name in each model_chunk in each pp stage into the name in inference engine
verl_Test/verl/utils/model.py:208
↓ 2 callersFunctionnormalize_model_name
Transform the model name in each model_chunk in each pp stage into the name in inference engine
verl_FlowRL/verl/utils/model.py:208
↓ 2 callersMethodoffload
Offload.
verl_Test/verl/utils/activation_offload.py:166
↓ 2 callersMethodoffload
Offload.
verl_FlowRL/verl/utils/activation_offload.py:166
↓ 2 callersMethodoffload_params_to_cpu
(self)
verl_Test/verl/workers/reward_model/megatron/reward_model.py:292
↓ 2 callersMethodoffload_params_to_cpu
(self)
verl_FlowRL/verl/workers/reward_model/megatron/reward_model.py:292
↓ 2 callersMethodon_group_commit_forward
On group commit forward.
verl_Test/verl/utils/activation_offload.py:154
↓ 2 callersMethodon_group_commit_forward
On group commit forward.
verl_FlowRL/verl/utils/activation_offload.py:154
↓ 2 callersFunctionpad_2d_list_to_length
pad a 2D list (e.g. responses, logprobs) to a 2D tensor.
verl_Test/verl/utils/torch_functional.py:269
↓ 2 callersFunctionpad_2d_list_to_length
pad a 2D list (e.g. responses, logprobs) to a 2D tensor.
verl_FlowRL/verl/utils/torch_functional.py:269
↓ 2 callersMethodpadding
Pad the DataProto by concating with padding_candidate.repeat(padding_size) Args: padding_size (int): the number of repeated paddi
verl_FlowRL/verl/protocol.py:637
↓ 2 callersFunctionparallel_compute_score_async
(evaluation_func, completions, references, tasks, extra_info=None, num_processes=64)
verl_FlowRL/verl/workers/reward_manager/prime.py:44
↓ 2 callersFunctionpatch_vllm_moe_model_weight_loader
(model)
verl_Test/verl/utils/vllm_utils.py:61
↓ 2 callersFunctionpatch_vllm_moe_model_weight_loader
(model)
verl_FlowRL/verl/utils/vllm_utils.py:61
↓ 2 callersFunctionpostprocess_packed_seqs
Postprocess packed sequences
verl_Test/verl/models/mcore/util.py:81
↓ 2 callersFunctionpostprocess_packed_seqs
Postprocess packed sequences
verl_FlowRL/verl/models/mcore/util.py:81
↓ 2 callersFunctionpreprocess
(text)
verl_Test/examples/data_preprocess/hellaswag.py:28
↓ 2 callersFunctionpreprocess
(text)
verl_FlowRL/examples/data_preprocess/hellaswag.py:28
↓ 2 callersMethodpreprocess_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_FlowRL/verl/workers/sharding_manager/fsdp_ulysses.py:52
↓ 2 callersFunctionpreprocess_packed_seqs
Preprocess packed sequences CP splits sequence into CP*2 chunks, and each GPU gets 2 chunks (GPU0 gets first and last chunks, GPU1 gets secon
verl_Test/verl/models/mcore/util.py:21
↓ 2 callersFunctionpreprocess_packed_seqs
Preprocess packed sequences CP splits sequence into CP*2 chunks, and each GPU gets 2 chunks (GPU0 gets first and last chunks, GPU1 gets secon
verl_FlowRL/verl/models/mcore/util.py:21
↓ 2 callersMethodprime_norm
(self, token_level_scores)
verl_Test/recipe/prime/prime_dp_rm.py:209
↓ 2 callersMethodprime_norm
(self, token_level_scores)
verl_FlowRL/recipe/prime/prime_dp_rm.py:209
↓ 2 callersFunctionprocess_fn
(example: Dict[str, Any], idx: int, instruction: str = None)
preprocess/deepcoder/deepscaler_dataset.py:41
↓ 2 callersFunctionprocess_validation_metrics
Process validation metrics into a structured format with statistical analysis. This function organizes validation metrics by data source
verl_Test/verl/trainer/ppo/metric_utils.py:323
↓ 2 callersFunctionranks
(seq)
verl_Test/recipe/entropy_math/__init__.py:478
↓ 2 callersMethodrelease
Release the tool instance. Args: instance_id: The instance id of the tool.
verl_Test/verl/tools/base_tool.py:80
↓ 2 callersMethodrelease
Release the tool instance. Args: instance_id: The instance id of the tool.
verl_FlowRL/verl/tools/base_tool.py:80
↓ 2 callersFunctionreliability_guard
This disables various destructive functions and prevents the generated code from interfering with the test (e.g. fork bomb, killing other pro
verl_Test/rllm/rewards/code_utils/livecodebench.py:479
↓ 2 callersFunctionreliability_guard
This disables various destructive functions and prevents the generated code from interfering with the test (e.g. fork bomb, killing other pro
verl_FlowRL/rllm/rewards/code_utils/livecodebench.py:479
↓ 2 callersMethodreload
Reload.
verl_Test/verl/utils/activation_offload.py:181
↓ 2 callersMethodreload
Reload.
verl_FlowRL/verl/utils/activation_offload.py:181
↓ 2 callersFunctionremove_boxed
Remove the LaTeX boxed command from a string. Args: s: String with format "\\boxed{content}" Returns: The content inside the
verl_Test/verl/utils/reward_score/math_dapo.py:50
↓ 2 callersFunctionremove_boxed
(s)
verl_FlowRL/verl/utils/reward_score/math.py:49
↓ 2 callersFunctionremove_boxed
Remove the LaTeX boxed command from a string. Args: s: String with format "\\boxed{content}" Returns: The content inside the
verl_FlowRL/verl/utils/reward_score/math_dapo.py:50
↓ 2 callersMethodremove_previous_save_local_path
(self, path)
verl_Test/verl/utils/checkpoint/checkpoint_manager.py:77
↓ 2 callersMethodremove_previous_save_local_path
(self, path)
verl_FlowRL/verl/utils/checkpoint/checkpoint_manager.py:77
↓ 2 callersFunctionrepeat_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_Test/verl/models/qwen2/megatron/layers/parallel_attention.py:134
↓ 2 callersFunctionrepeat_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_Test/verl/models/llama/megatron/layers/parallel_attention.py:157
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=2, repeats=n_rep). The hidden states go from (batch, seqlen, num_key_value_heads, he
verl_Test/verl/models/transformers/monkey_patch.py:37
↓ 2 callersFunctionrepeat_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_FlowRL/verl/models/qwen2/megatron/layers/parallel_attention.py:134
↓ 2 callersFunctionrepeat_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_FlowRL/verl/models/llama/megatron/layers/parallel_attention.py:157
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=2, repeats=n_rep). The hidden states go from (batch, seqlen, num_key_value_heads, he
verl_FlowRL/verl/models/transformers/monkey_patch.py:37
↓ 2 callersFunctionrepeatness
(s: str)
verl_Test/recipe/entropy_math/__init__.py:477
↓ 2 callersFunctionrllm_reward_fn
(data_source: str, llm_solution: str, ground_truth: Union[str, List[str]], extra_info={}, **kwargs)
verl_Test/rllm/rewards/rl_reward.py:37
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
verl_Test/verl/models/transformers/kimi_vl.py:70
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
verl_FlowRL/verl/models/transformers/kimi_vl.py:70
↓ 2 callersMethodsample_level_repeat
Repeat each row of the batch data a specified number of times. Args: repeat_times (torch.tensor, list, tuple, ndarray):
verl_FlowRL/verl/protocol.py:796
↓ 2 callersMethodsample_str_prompts
(self)
verl_FlowRL/tests/e2e/envs/digit_completion/task.py:89
↓ 2 callersMethodsave_checkpoint
Save an FSDP checkpoint for this rank. Writes: - model & optimizer shard files - extra state dict (scheduler + R
verl_FlowRL/verl/utils/checkpoint/fsdp_checkpoint_manager.py:129
↓ 2 callersMethodsave_hf_model_and_tokenizer
(self, state_dict: dict[str, torch.Tensor])
verl_Test/scripts/model_merger.py:131
↓ 2 callersMethodsave_hf_model_and_tokenizer
(self, state_dict: dict[str, torch.Tensor])
verl_FlowRL/scripts/model_merger.py:131
↓ 2 callersFunctionset_ulysses_sequence_parallel_group
Set ulysses sequence parallel process group.
verl_Test/verl/utils/ulysses.py:30
↓ 2 callersMethodsleep
Offload model weights and discard kv cache.
verl_Test/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:393
↓ 2 callersMethodsleep
Offload model weights and discard kv cache.
verl_FlowRL/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:393
↓ 2 callersFunctionslow_task_in_thread
()
verl_FlowRL/tests/utils/cpu_tests/test_timeout_decorator.py:164
↓ 2 callersFunctionsplit_tuple
Split the elements in a tuple/interval, while handling well-formatted commas in large numbers
verl_Test/rllm/rewards/math_utils/utils.py:368
↓ 2 callersFunctionsplit_tuple
Split the elements in a tuple/interval, while handling well-formatted commas in large numbers
verl_Test/recipe/entropy_math/__init__.py:894
↓ 2 callersFunctionsplit_tuple
Split the elements in a tuple/interval, while handling well-formatted commas in large numbers
verl_Test/verl/utils/reward_score/prime_math/__init__.py:227
↓ 2 callersFunctionsplit_tuple
Split the elements in a tuple/interval, while handling well-formatted commas in large numbers
verl_FlowRL/rllm/rewards/math_utils/utils.py:368
↓ 2 callersFunctionsplit_tuple
Split the elements in a tuple/interval, while handling well-formatted commas in large numbers
verl_FlowRL/verl/utils/reward_score/prime_math/__init__.py:227
↓ 2 callersFunctionstrip_string
(string)
verl_Test/verl/utils/reward_score/math.py:162
↓ 2 callersFunctionstrip_string
(string)
verl_FlowRL/verl/utils/reward_score/math.py:162
↓ 2 callersFunctionstripped_string_compare
(s1, s2)
verl_Test/verl/utils/reward_score/prime_code/testing_util.py:524
↓ 2 callersFunctionstripped_string_compare
(s1, s2)
verl_FlowRL/verl/utils/reward_score/prime_code/testing_util.py:524
↓ 2 callersMethodsub
(self, data: DataProto)
verl_FlowRL/tests/ray_gpu/test_colocated_workers_fused.py:46
↓ 2 callersMethodsub
(self, data: DataProto)
verl_FlowRL/tests/ray_gpu/test_colocated_workers.py:46
↓ 2 callersFunctionsync_model_parameters_global
(layer)
verl_FlowRL/tests/models/test_transformers_ulysses.py:66
↓ 2 callersFunctionsynthesize_std_code
(raw_code, debug=False)
verl_Test/rllm/rewards/code_utils/taco.py:200
↓ 2 callersFunctionsynthesize_std_code
(raw_code, debug=False)
verl_FlowRL/rllm/rewards/code_utils/taco.py:200
↓ 2 callersFunctiontool_call_flow
(example, request_id)
verl_Test/rllm/tools/utils.py:30
↓ 2 callersFunctiontool_call_flow
(example, request_id)
verl_FlowRL/rllm/tools/utils.py:30
↓ 2 callersFunctionulysses_pad
( input_ids_rmpad: torch.Tensor, position_ids_rmpad: Optional[torch.Tensor] = None, sp_size: int = 1 )
verl_Test/verl/utils/ulysses.py:271
↓ 2 callersFunctionulysses_pad
( input_ids_rmpad: torch.Tensor, position_ids_rmpad: Optional[torch.Tensor] = None, sp_size: int = 1 )
verl_FlowRL/verl/utils/ulysses.py:271
↓ 2 callersMethodupdate_options
Update the Ray actor creation options. Args: options: Dictionary of options to update
verl_Test/verl/single_controller/ray/base.py:176
↓ 2 callersMethodupdate_options
Update the Ray actor creation options. Args: options: Dictionary of options to update
verl_FlowRL/verl/single_controller/ray/base.py:176
↓ 2 callersMethodupdate_policy
Update the policy with an iterator of DataProto Args: data (DataProto): an iterator over the DataProto that returns by
verl_Test/verl/workers/actor/base.py:55
↓ 2 callersMethodupdate_policy
Update the policy with an iterator of DataProto Args: data (DataProto): an iterator over the DataProto that returns by
verl_FlowRL/verl/workers/actor/base.py:55
↓ 2 callersMethodupdate_sampling_params
Temporarily updates the model's sampling parameters for the duration of a `with` block. Parameters are automatically fall b
verl_Test/verl/workers/rollout/sglang_rollout/sglang_rollout.py:388
↓ 2 callersMethodupdate_sampling_params
(self, **kwargs)
verl_Test/verl/workers/rollout/vllm_rollout/fire_vllm_rollout.py:84
↓ 2 callersMethodupdate_sampling_params
Temporarily updates the model's sampling parameters for the duration of a `with` block. Parameters are automatically fall b
verl_FlowRL/verl/workers/rollout/sglang_rollout/sglang_rollout.py:388
↓ 2 callersMethodupdate_sampling_params
(self, **kwargs)
verl_FlowRL/verl/workers/rollout/vllm_rollout/fire_vllm_rollout.py:84
↓ 2 callersMethodupload_to_huggingface
(self)
verl_Test/scripts/model_merger.py:152
↓ 2 callersMethodupload_to_huggingface
(self)
verl_FlowRL/scripts/model_merger.py:152
↓ 2 callersMethodvalidation_step
(self, batch: TensorDict)
verl_Test/verl/trainer/fsdp_sft_trainer.py:439
↓ 2 callersMethodvalidation_step
(self, batch: TensorDict)
verl_FlowRL/verl/trainer/fsdp_sft_trainer.py:439
↓ 2 callersFunctionverify
Verify if the solution is correct. Args: solution_str: The solution string to verify answer: The ground truth answer stri
verl_Test/recipe/r1/tasks/math_dapo.py:218
↓ 2 callersMethodverify
(self, data)
verl_Test/verl/workers/reward_manager/batch.py:30
↓ 2 callersMethodverify
(self, data)
verl_FlowRL/verl/workers/reward_manager/batch.py:30
↓ 2 callersFunctionvocab_parallel_entropy
Compute entropy when the logits are sharded in tp ranks Args: vocab_parallel_logits: (total_nnz, vocab_size // tp_size) Returns: (to
verl_FlowRL/verl/utils/megatron/tensor_parallel.py:142
↓ 2 callersFunctionvocab_parallel_log_probs_from_logits
TODO(zhangchi.usc1992): We may change the implementation later
verl_Test/verl/utils/megatron/tensor_parallel.py:154
↓ 2 callersFunctionvocab_parallel_log_probs_from_logits
TODO(zhangchi.usc1992): We may change the implementation later
verl_FlowRL/verl/utils/megatron/tensor_parallel.py:154
↓ 1 callersMethod__enter__
(self)
verl_Test/verl/utils/activation_offload.py:72
↓ 1 callersMethod__enter__
(self)
verl_FlowRL/verl/utils/activation_offload.py:72
← previousnext →901–1,000 of 4,141, ranked by callers