MCPcopy Create free account

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

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

↓ 2 callersMethodbulk_offload_group
Bulk offload group.
verl_FlowRL/verl/utils/activation_offload.py:294
↓ 2 callersFunctioncalc_maj_val
Calculate a value based on majority voting. This function identifies the most common value for a specified vote key in the data, then re
verl_FlowRL/verl/trainer/ppo/metric_utils.py:287
↓ 2 callersFunctioncall_gemini_llm
Calls a Gemini LLM on Vertex AI to generate n responses at a given temperature. Args: prompt (str): The text prompt to send to t
verl_FlowRL/rllm/utils.py:55
↓ 2 callersFunctioncall_sandbox_api
Calls the remote sandbox API to execute code with retry logic for Gateway Timeout, using increasing delay between retries. Logs internal call
verl_Test/verl/utils/reward_score/sandbox_fusion/utils.py:37
↓ 2 callersFunctioncall_sandbox_api
Calls the remote sandbox API to execute code with retry logic for Gateway Timeout, using increasing delay between retries. Logs internal call
verl_FlowRL/verl/utils/reward_score/sandbox_fusion/utils.py:37
↓ 2 callersFunctioncall_search_api
Calls the remote search API to perform retrieval with retry logic for various errors, using increasing delay between retries. Logs internal
verl_Test/verl/tools/utils/search_r1_like_utils.py:34
↓ 2 callersFunctioncall_search_api
Calls the remote search API to perform retrieval with retry logic for various errors, using increasing delay between retries. Logs internal
verl_FlowRL/verl/tools/utils/search_r1_like_utils.py:34
↓ 2 callersFunctioncallback
(completions: ChatCompletion, info: Dict[str, Any], exception: Exception)
verl_FlowRL/tests/workers/rollout/test_vllm_multi_turn.py:67
↓ 2 callersMethodcallback
(completions: ChatCompletion, info: Dict[str, Any], exception: Exception)
verl_Test/examples/ppo_trainer/naive_chat_scheduler.py:48
↓ 2 callersMethodcallback
(completions: ChatCompletion, info: Dict[str, Any], exception: Exception)
verl_FlowRL/examples/ppo_trainer/naive_chat_scheduler.py:48
↓ 2 callersFunctionceildiv
(a, b)
verl_FlowRL/verl/utils/seqlen_balancing.py:221
↓ 2 callersFunctionclean_code_main_block
Removes `if __name__ == "__main__"` blocks from Python code. Args: code (str): The input Python code. Returns: str: Cle
verl_Test/rllm/rewards/code_reward.py:42
↓ 2 callersFunctionclean_code_main_block
Removes `if __name__ == "__main__"` blocks from Python code. Args: code (str): The input Python code. Returns: str: Cle
verl_FlowRL/rllm/rewards/code_reward.py:42
↓ 2 callersFunctionclean_if_name
(code: str)
verl_Test/rllm/rewards/code_utils/livecodebench.py:80
↓ 2 callersFunctionclean_if_name
(code: str)
verl_FlowRL/rllm/rewards/code_utils/livecodebench.py:80
↓ 2 callersFunctionclean_torchelastic_env
()
verl_FlowRL/tests/workers/rollout/utils_sglang.py:82
↓ 2 callersMethodcleanup
(self)
verl_FlowRL/tests/kernels/test_linear_cross_entropy.py:88
↓ 2 callersFunctioncompile_and_get_func
(program, which_type, method_name, timeout, debug)
verl_Test/rllm/rewards/code_utils/codeforces.py:139
↓ 2 callersFunctioncompile_and_get_func
(program, which_type, method_name, timeout, debug)
verl_Test/rllm/rewards/code_utils/taco.py:161
↓ 2 callersFunctioncompile_and_get_func
(program, which_type, method_name, timeout, debug)
verl_FlowRL/rllm/rewards/code_utils/codeforces.py:139
↓ 2 callersFunctioncompile_and_get_func
(program, which_type, method_name, timeout, debug)
verl_FlowRL/rllm/rewards/code_utils/taco.py:161
↓ 2 callersFunctioncompute_data_metrics
(batch, use_critic=True)
verl_Test/recipe/prime/prime_ray_trainer.py:55
↓ 2 callersFunctioncompute_data_metrics
Computes various metrics from a batch of data for PPO training. This function calculates metrics related to scores, rewards, advantages, ret
verl_Test/verl/trainer/ppo/metric_utils.py:79
↓ 2 callersFunctioncompute_data_metrics
(batch, use_critic=True)
verl_FlowRL/recipe/prime/prime_ray_trainer.py:55
↓ 2 callersFunctioncompute_dpo_abs_accuracy
(token_level_scores, acc, response_mask, n_samples)
verl_Test/recipe/prime/prime_core_algos.py:135
↓ 2 callersFunctioncompute_dpo_abs_accuracy
(token_level_scores, acc, response_mask, n_samples)
verl_FlowRL/recipe/prime/prime_core_algos.py:135
↓ 2 callersFunctioncompute_dpo_accuracy
(token_level_scores, acc, response_mask, n_samples)
verl_Test/recipe/prime/prime_core_algos.py:112
↓ 2 callersFunctioncompute_dpo_accuracy
(token_level_scores, acc, response_mask, n_samples)
verl_FlowRL/recipe/prime/prime_core_algos.py:112
↓ 2 callersMethodcompute_log_prob
(self, data: DataProto)
verl_Test/verl/workers/fsdp_workers.py:666
↓ 2 callersMethodcompute_log_prob
Compute logits given a batch of data. Args: data (DataProto): a batch of data represented by DataProto. It must contain key ```in
verl_Test/verl/workers/actor/base.py:40
↓ 2 callersMethodcompute_log_prob
(self, data: DataProto)
verl_FlowRL/verl/workers/fsdp_workers.py:690
↓ 2 callersMethodcompute_log_prob
Compute logits given a batch of data. Args: data (DataProto): a batch of data represented by DataProto. It must contain key ```in
verl_FlowRL/verl/workers/actor/base.py:40
↓ 2 callersFunctioncompute_policy_loss
Compute the clipped policy objective and related metrics for PPO. Adapted from https://github.com/huggingface/trl/blob/main/trl/trainer/
verl_Test/verl/trainer/ppo/core_algos.py:406
↓ 2 callersMethodcompute_ref_log_prob
(self, data: DataProto)
verl_Test/verl/workers/fsdp_workers.py:708
↓ 2 callersMethodcompute_ref_log_prob
(self, data: DataProto)
verl_FlowRL/verl/workers/fsdp_workers.py:732
↓ 2 callersFunctioncompute_response_mask
Compute the attention mask for the response part of the sequence. This function extracts the portion of the attention mask that corresponds to th
verl_Test/verl/trainer/ppo/ray_trainer.py:197
↓ 2 callersFunctioncompute_response_mask
Compute the attention mask for the response part of the sequence. This function extracts the portion of the attention mask that corresponds to th
verl_FlowRL/verl/trainer/ppo/ray_trainer.py:197
↓ 2 callersFunctioncompute_timing_metrics
(batch, timing_raw)
verl_Test/recipe/prime/prime_ray_trainer.py:121
↓ 2 callersFunctioncompute_timing_metrics
(batch, timing_raw)
verl_FlowRL/recipe/prime/prime_ray_trainer.py:121
↓ 2 callersFunctionconvert_checkpoint_from_transformers_to_megatron
(hf_model, model, hf_config)
verl_Test/scripts/converter_hf_to_mcore.py:98
↓ 2 callersFunctionconvert_checkpoint_from_transformers_to_megatron
(hf_model, model, hf_config)
verl_FlowRL/scripts/converter_hf_to_mcore.py:98
↓ 2 callersFunctionconvert_line_to_decimals
(line: str)
verl_Test/rllm/rewards/code_utils/livecodebench.py:185
↓ 2 callersFunctionconvert_line_to_decimals
(line: str)
verl_FlowRL/rllm/rewards/code_utils/livecodebench.py:185
↓ 2 callersMethodconvert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl_Test/verl/models/mcore/weight_converter.py:30
↓ 2 callersMethodconvert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl_FlowRL/verl/models/mcore/weight_converter.py:30
↓ 2 callersFunctioncreate_and_sync_state
(param_name, state, is_param)
verl_Test/verl/utils/fsdp_utils.py:320
↓ 2 callersFunctioncreate_and_sync_state
(param_name, state, is_param)
verl_FlowRL/verl/utils/fsdp_utils.py:320
↓ 2 callersFunctioncreate_colocated_worker_cls
This function should return a class instance that delegates the calls to every cls in cls_dict
verl_Test/verl/single_controller/ray/base.py:684
↓ 2 callersFunctioncreate_colocated_worker_raw_cls
This function returns a FusedWorker class. `FusedWorker.{class_name}` -> FusedClass Use `class_name` as a param to directly access t
verl_FlowRL/verl/single_controller/ray/base.py:727
↓ 2 callersFunctioncreate_device_mesh
(world_size, fsdp_size)
verl_Test/recipe/spin/fsdp_workers.py:47
↓ 2 callersFunctioncreate_device_mesh
(world_size, fsdp_size)
verl_FlowRL/recipe/spin/fsdp_workers.py:47
↓ 2 callersMethodcreate_resource_pool
(self)
verl_FlowRL/recipe/spin/spin_trainer.py:84
↓ 2 callersFunctioncreate_rl_dataset
Create a dataset. Arguments: data_config: The data config. tokenizer (Tokenizer): The tokenizer. processor (Processor): T
verl_Test/verl/trainer/main_ppo_code.py:184
↓ 2 callersFunctioncreate_sft_dataset
Create a dataset.
verl_Test/verl/trainer/fsdp_sft_trainer.py:586
↓ 2 callersFunctiondefault_tp_concat_fn
name: name of the parameter train_params: training parameters infer_params (Iterable[torch.Tensor]): a iterator towards list of parameter
verl_Test/verl/utils/megatron_utils.py:669
↓ 2 callersFunctiondefault_tp_concat_fn
name: name of the parameter train_params: training parameters infer_params (Iterable[torch.Tensor]): a iterator towards list of parameter
verl_FlowRL/verl/utils/megatron_utils.py:669
↓ 2 callersFunctionenable_activation_offloading
Enable activation offloading for the model. It groups activations by TransformerLayer and offloads activation groups asynchronously. This mea
verl_Test/verl/utils/activation_offload.py:494
↓ 2 callersMethodencode
(self, query_list: List[str], is_query=True)
verl_Test/examples/sglang_multiturn/search_r1_like/local_dense_retriever/retrieval_server.py:78
↓ 2 callersMethodencode
(self, query_list: List[str], is_query=True)
verl_FlowRL/examples/sglang_multiturn/search_r1_like/local_dense_retriever/retrieval_server.py:78
↓ 2 callersFunctionensure_ray_version_remote
(host: str, version: str)
verl_Test/ray_cluster.py:100
↓ 2 callersMethodenv_keys
The keys of the environment variables that are used to configure the Worker.
verl_Test/verl/single_controller/base/worker.py:135
↓ 2 callersMethodenv_keys
The keys of the environment variables that are used to configure the Worker.
verl_FlowRL/verl/single_controller/base/worker.py:135
↓ 2 callersMethodexecute_all_async
Execute a method on all workers asynchronously. Args: method_name: Name of the method to execute *args: Positional ar
verl_Test/verl/single_controller/ray/base.py:566
↓ 2 callersFunctionexecute_std_code
(method, synthesized_code, inputs_list, outputs_list, timeout, early_stop=False, debug=False)
verl_Test/rllm/rewards/code_utils/codeforces.py:322
↓ 2 callersFunctionexecute_std_code
(method, synthesized_code, inputs_list, outputs_list, timeout, early_stop=False, debug=False)
verl_Test/rllm/rewards/code_utils/taco.py:347
↓ 2 callersFunctionexecute_std_code
(method, synthesized_code, inputs_list, outputs_list, timeout, early_stop=False, debug=False)
verl_FlowRL/rllm/rewards/code_utils/codeforces.py:322
↓ 2 callersFunctionexecute_std_code
(method, synthesized_code, inputs_list, outputs_list, timeout, early_stop=False, debug=False)
verl_FlowRL/rllm/rewards/code_utils/taco.py:347
↓ 2 callersFunctionextract_answer
(passage: str)
verl_Test/recipe/entropy_math/__init__.py:1007
↓ 2 callersFunctionextract_solution
Extract the equation from the solution string.
verl_Test/verl/utils/reward_score/search_r1_like_qa_em.py:66
↓ 2 callersFunctionextract_solution
Extract the equation from the solution string.
verl_FlowRL/verl/utils/reward_score/search_r1_like_qa_em.py:66
↓ 2 callersMethodfn
(i)
verl_FlowRL/tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:547
↓ 2 callersMethodforward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
verl_Test/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:115
↓ 2 callersMethodforward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
verl_Test/verl/models/llama/megatron/modeling_llama_megatron.py:115
↓ 2 callersMethodforward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
verl_FlowRL/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:115
↓ 2 callersMethodforward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
verl_FlowRL/verl/models/llama/megatron/modeling_llama_megatron.py:115
↓ 2 callersMethodforward_backward_batch
(self, data: DataProto, forward_only=False, use_dynamic_bsz=False, micro_batch_size=None, max_token_len=None,
verl_Test/verl/workers/critic/megatron_critic.py:146
↓ 2 callersMethodforward_backward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
verl_Test/verl/workers/actor/megatron_actor.py:280
↓ 2 callersMethodforward_backward_batch
(self, data: DataProto, forward_only=False, use_dynamic_bsz=False, micro_batch_size=None, max_token_len=None,
verl_FlowRL/verl/workers/critic/megatron_critic.py:146
↓ 2 callersMethodforward_backward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
verl_FlowRL/verl/workers/actor/megatron_actor.py:280
↓ 2 callersMethodfrom_objects
(module_name_for_code_eval, **d)
verl_Test/rllm/rewards/code_utils/pyext2.py:245
↓ 2 callersMethodfrom_objects
(module_name_for_code_eval, **d)
verl_FlowRL/rllm/rewards/code_utils/pyext2.py:245
↓ 2 callersMethodgenerate_backward_inputs
(self)
verl_FlowRL/tests/kernels/test_linear_cross_entropy.py:132
↓ 2 callersMethodgenerate_forward_inputs
(self)
verl_FlowRL/tests/kernels/test_linear_cross_entropy.py:126
↓ 2 callersFunctiongenerate_hf_output
(model, input_ids, attention_mask, tokenizer, max_response_length)
verl_FlowRL/tests/workers/rollout/utils_sglang.py:105
↓ 2 callersMethodgenerate_hyper
(self)
verl_FlowRL/tests/kernels/test_linear_cross_entropy.py:96
↓ 2 callersMethodgenerate_sequences
(self, batch: DataProto, **sampling_params)
verl_Test/examples/ppo_trainer/naive_chat_scheduler.py:31
↓ 2 callersMethodgenerate_sequences
(self, batch: DataProto, **sampling_params)
verl_FlowRL/tests/workers/rollout/test_vllm_tool_calling.py:126
↓ 2 callersMethodgenerate_sequences
(self, batch: DataProto, **sampling_params)
verl_FlowRL/examples/ppo_trainer/naive_chat_scheduler.py:31
↓ 2 callersFunctionget_batch_logps
Compute the log probabilities of the given labels under the given logits. Args: logits: Logits of the model (e.g., huggingface Causa
verl_Test/recipe/spin/core_algos.py:160
↓ 2 callersFunctionget_batch_logps
Compute the log probabilities of the given labels under the given logits. Args: logits: Logits of the model (e.g., huggingface Causa
verl_FlowRL/recipe/spin/core_algos.py:160
↓ 2 callersMethodget_checkpoint_name
Determine the directory name for this rank's checkpoint.
verl_Test/verl/utils/checkpoint/megatron_checkpoint_manager.py:130
↓ 2 callersMethodget_checkpoint_name
Determine the directory name for this rank's checkpoint.
verl_FlowRL/verl/utils/checkpoint/megatron_checkpoint_manager.py:130
↓ 2 callersFunctionget_common_default_kwargs_for_parallel_linear
()
verl_Test/verl/utils/megatron/tensor_parallel.py:52
↓ 2 callersFunctionget_common_default_kwargs_for_parallel_linear
()
verl_FlowRL/verl/utils/megatron/tensor_parallel.py:52
↓ 2 callersFunctionget_generation_config
( model: str, trust_remote_code: bool = False, )
verl_Test/verl/utils/model.py:72
↓ 2 callersFunctionget_generation_config
( model: str, trust_remote_code: bool = False, )
verl_FlowRL/verl/utils/model.py:72
↓ 2 callersFunctionget_gsm8k_data
()
verl_FlowRL/tests/utils/gpu_tests/dataset/test_sft_dataset.py:20
↓ 2 callersFunctionget_hf_config_and_tokenizer_checkpoint_path
(checkpoint_path)
verl_Test/verl/utils/megatron_utils.py:441
↓ 2 callersFunctionget_hf_config_and_tokenizer_checkpoint_path
(checkpoint_path)
verl_FlowRL/verl/utils/megatron_utils.py:441
↓ 2 callersFunctionget_huggingface_actor_config
(model_name: str, override_config_kwargs=None, trust_remote_code=False)
verl_Test/verl/utils/model.py:62
← previousnext →701–800 of 4,141, ranked by callers