MCPcopy Create free account

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

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

↓ 3 callersMethodcompute_rm_score
(self, data: DataProto)
verl_FlowRL/recipe/prime/prime_dp_rm.py:215
↓ 3 callersFunctioncompute_throughout_metrics
Computes throughput metrics for PPO training. This function calculates performance metrics related to token processing speed, includ
verl_Test/verl/trainer/ppo/metric_utils.py:210
↓ 3 callersFunctioncompute_timing_metrics
Computes timing metrics for different processing stages in PPO training. This function calculates both raw timing metrics (in seconds) a
verl_Test/verl/trainer/ppo/metric_utils.py:171
↓ 3 callersFunctionconvert_to_regular_types
Convert Hydra configs and other special types to regular Python types.
verl_Test/verl/utils/py_functional.py:269
↓ 3 callersFunctionconvert_to_regular_types
Convert Hydra configs and other special types to regular Python types.
verl_FlowRL/verl/utils/py_functional.py:269
↓ 3 callersFunctioncreate_device_mesh
(world_size, fsdp_size)
verl_Test/verl/workers/fsdp_workers.py:80
↓ 3 callersFunctioncreate_device_mesh
(world_size, fsdp_size)
verl_FlowRL/verl/workers/fsdp_workers.py:80
↓ 3 callersFunctioncreate_rl_sampler
Create a sampler for the dataset. Arguments: data_config: The data config. dataset (Dataset): The dataset. Returns:
verl_Test/verl/trainer/main_ppo.py:219
↓ 3 callersFunctioncreate_rl_sampler
Create a sampler for the dataset. Arguments: data_config: The data config. dataset (Dataset): The dataset. Returns:
verl_FlowRL/verl/trainer/main_ppo.py:209
↓ 3 callersFunctionenable_activation_offloading
Enable activation offloading for the model. It groups activations by TransformerLayer and offloads activation groups asynchronously. This mea
verl_FlowRL/verl/utils/activation_offload.py:494
↓ 3 callersMethodexecute_all_async
Execute a method on all workers asynchronously. Args: method_name: Name of the method to execute *args: Positional ar
verl_FlowRL/verl/single_controller/ray/base.py:566
↓ 3 callersMethodexecute_all_sync
Execute a method on all workers synchronously. Args: method_name: Name of the method to execute *args: Positional arg
verl_Test/verl/single_controller/ray/base.py:553
↓ 3 callersFunctionfind_latest_ckpt_path
Return the most recent checkpoint directory based on a tracker file. Args: path (str): Base directory containing the checkpoint trac
verl_Test/verl/utils/checkpoint/checkpoint_manager.py:135
↓ 3 callersFunctionfind_latest_ckpt_path
Return the most recent checkpoint directory based on a tracker file. Args: path (str): Base directory containing the checkpoint trac
verl_FlowRL/verl/utils/checkpoint/checkpoint_manager.py:135
↓ 3 callersMethodfit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to const
verl_Test/verl/trainer/ppo/ray_trainer.py:927
↓ 3 callersMethodfit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to const
verl_FlowRL/verl/trainer/ppo/ray_trainer.py:927
↓ 3 callersMethodflush
(self)
verl_Test/verl/utils/logger/aggregate_logger.py:38
↓ 3 callersMethodflush
(self)
verl_FlowRL/verl/utils/logger/aggregate_logger.py:38
↓ 3 callersMethodforward
Synchronous implementation of the tool functionality. Override this method for synchronous tools. Returns:
verl_Test/rllm/tools/tool_base.py:85
↓ 3 callersMethodforward
( self, hidden_states: torch.FloatTensor, vocab_weights: torch.FloatTensor, in
verl_Test/verl/utils/experimental/torch_functional.py:203
↓ 3 callersMethodforward
Synchronous implementation of the tool functionality. Override this method for synchronous tools. Returns:
verl_FlowRL/rllm/tools/tool_base.py:85
↓ 3 callersMethodforward
( self, hidden_states: torch.FloatTensor, vocab_weights: torch.FloatTensor, in
verl_FlowRL/verl/utils/experimental/torch_functional.py:203
↓ 3 callersMethodfrom_detached
Create a worker group from existing detached workers. Args: name_prefix: Prefix for worker names worker_names: Names
verl_FlowRL/verl/single_controller/ray/base.py:399
↓ 3 callersFunctionfsdp2_clip_grad_norm_
torch.nn.utils.clip_grad_norm_ cann't run on cpu parameter DTensor
verl_Test/verl/utils/fsdp_utils.py:447
↓ 3 callersFunctionfsdp2_clip_grad_norm_
torch.nn.utils.clip_grad_norm_ cann't run on cpu parameter DTensor
verl_FlowRL/verl/utils/fsdp_utils.py:447
↓ 3 callersFunctionget_constant_schedule_with_warmup
Create a constant LR schedule with a linear warmup phase. Args: optimizer (Optimizer): Wrapped optimizer. num_warmup_steps (
verl_Test/verl/utils/torch_functional.py:505
↓ 3 callersFunctionget_cosine_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
verl_Test/verl/utils/torch_functional.py:461
↓ 3 callersFunctionget_default_kwargs_for_model_parallel_config
()
verl_Test/verl/utils/megatron/tensor_parallel.py:35
↓ 3 callersFunctionget_default_kwargs_for_model_parallel_config
()
verl_FlowRL/verl/utils/megatron/tensor_parallel.py:35
↓ 3 callersFunctionget_fsdp_state_ctx
(model, state_type, state_cfg, optim_cfg)
verl_Test/verl/utils/fsdp_utils.py:387
↓ 3 callersFunctionget_fsdp_state_ctx
(model, state_type, state_cfg, optim_cfg)
verl_FlowRL/verl/utils/fsdp_utils.py:387
↓ 3 callersFunctionget_function
(compiled_sol, fn_name: str)
verl_Test/rllm/rewards/code_utils/livecodebench.py:155
↓ 3 callersFunctionget_function
(compiled_sol, fn_name: str)
verl_FlowRL/rllm/rewards/code_utils/livecodebench.py:155
↓ 3 callersFunctionget_mcore_forward_fn
Get the forward function for given model architecture.
verl_Test/verl/models/mcore/registry.py:167
↓ 3 callersFunctionget_mcore_forward_fn
Get the forward function for given model architecture.
verl_FlowRL/verl/models/mcore/registry.py:167
↓ 3 callersFunctionget_megatron_optimizer
( model, config: OptimizerConfig, no_weight_decay_cond=None, scale_lr_cond=None, lr_mult=1
verl_FlowRL/verl/utils/megatron/optimizer.py:20
↓ 3 callersFunctionget_model_checkpoint_path
(checkpoint_path)
verl_Test/verl/utils/megatron_utils.py:431
↓ 3 callersFunctionget_model_checkpoint_path
(checkpoint_path)
verl_FlowRL/verl/utils/megatron_utils.py:431
↓ 3 callersFunctionget_rollout_config
(max_response_length, max_prompt_length, dtype, tensor_parallel_size, tool_config_path)
verl_FlowRL/tests/workers/rollout/utils_sglang.py:123
↓ 3 callersFunctionget_seqlen_balanced_partitions
Calculates partitions of indices from seqlen_list such that the sum of sequence lengths in each partition is balanced. Uses the Karmarkar-Kar
verl_Test/verl/utils/seqlen_balancing.py:143
↓ 3 callersFunctionget_seqlen_balanced_partitions
Calculates partitions of indices from seqlen_list such that the sum of sequence lengths in each partition is balanced. Uses the Karmarkar-Kar
verl_FlowRL/verl/utils/seqlen_balancing.py:143
↓ 3 callersFunctionget_sharding_strategy
(device_mesh)
verl_Test/verl/workers/fsdp_workers.py:88
↓ 3 callersFunctionget_sharding_strategy
(device_mesh)
verl_FlowRL/verl/workers/fsdp_workers.py:88
↓ 3 callersFunctionhf_to_mcore_config
(hf_config: PretrainedConfig, dtype: torch.dtype, **override_transformer_config_kwargs)
verl_Test/verl/models/mcore/registry.py:129
↓ 3 callersFunctionhf_to_mcore_config
(hf_config: PretrainedConfig, dtype: torch.dtype, **override_transformer_config_kwargs)
verl_FlowRL/verl/models/mcore/registry.py:129
↓ 3 callersFunctioninit_async_rollout_manager
(config: DictConfig, scheduler_kwargs: Dict[str, Any] = None)
verl_FlowRL/tests/workers/rollout/async_rollout_utils.py:27
↓ 3 callersFunctioninit_megatron_optim_config
(optim_config: Dict)
verl_FlowRL/verl/utils/megatron_utils.py:201
↓ 3 callersMethodinit_workers
Initialize distributed training workers using Ray backend. Creates: 1. Ray resource pools from configuration 2. Worker groups
verl_Test/verl/trainer/ppo/ray_trainer.py:748
↓ 3 callersMethodinit_workers
Initialize distributed training workers using Ray backend. Creates: 1. Ray resource pools from configuration 2. Worker groups
verl_FlowRL/verl/trainer/ppo/ray_trainer.py:748
↓ 3 callersMethodis_padding_enabled
Check if padding is enabled for the DataProto. Returns: bool: True if padding is enabled, False otherwise.
verl_Test/verl/protocol.py:628
↓ 3 callersMethodis_padding_enabled
Check if padding is enabled for the DataProto. Returns: bool: True if padding is enabled, False otherwise.
verl_FlowRL/verl/protocol.py:628
↓ 3 callersFunctionis_version_ge
check if the package version is greater than or equal to the minimum version
verl_Test/verl/utils/vllm_utils.py:198
↓ 3 callersFunctionkl_penalty
Compute KL divergence given logprob and ref_logprob. Copied from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py#L1104
verl_Test/verl/trainer/ppo/core_algos.py:522
↓ 3 callersMethodload_checkpoint
(self, local_path, hdfs_path=None, del_local_after_load=True)
verl_Test/verl/workers/fsdp_workers.py:1112
↓ 3 callersMethodload_checkpoint
(self, local_path, hdfs_path=None, del_local_after_load=True)
verl_FlowRL/verl/workers/fsdp_workers.py:1136
↓ 3 callersFunctionload_docs
(corpus, doc_idxs)
verl_Test/examples/sglang_multiturn/search_r1_like/local_dense_retriever/retrieval_server.py:39
↓ 3 callersFunctionload_docs
(corpus, doc_idxs)
verl_FlowRL/examples/sglang_multiturn/search_r1_like/local_dense_retriever/retrieval_server.py:39
↓ 3 callersFunctionload_extern_type
Load a external data type based on the file path and type name
verl_Test/verl/utils/import_utils.py:62
↓ 3 callersFunctionload_tensor_to_gpu
(tensor)
verl_Test/verl/utils/megatron_utils.py:357
↓ 3 callersFunctionload_tensor_to_gpu
(tensor)
verl_FlowRL/verl/utils/megatron_utils.py:357
↓ 3 callersMethodlog
(self, func, *args, **kwargs)
verl_Test/verl/utils/debug/performance.py:84
↓ 3 callersMethodlog
(self, func, *args, **kwargs)
verl_FlowRL/verl/utils/debug/performance.py:84
↓ 3 callersFunctionmake_batch_generator
Creates a batch generator suitable for Megatron pipeline parallelism, handling virtual pipeline parallelism (VPP). If VPP is used (vpp_s
verl_Test/verl/utils/megatron/pipeline_parallel.py:49
↓ 3 callersFunctionmake_map_fn
(split)
verl_Test/examples/data_preprocess/hellaswag.py:54
↓ 3 callersFunctionmake_map_fn
(split)
verl_FlowRL/examples/data_preprocess/hellaswag.py:54
↓ 3 callersFunctionnormalize_final_answer
Normalize a final answer to a quantitative reasoning question. Args: final_answer: The answer string to normalize Returns: N
verl_Test/recipe/r1/tasks/math_dapo.py:126
↓ 3 callersFunctionnormalize_final_answer
Normalize a final answer to a quantitative reasoning question. Args: final_answer: The answer string to normalize Returns: N
verl_Test/verl/utils/reward_score/math_dapo.py:125
↓ 3 callersFunctionnormalize_final_answer
Normalize a final answer to a quantitative reasoning question. Args: final_answer: The answer string to normalize Returns: N
verl_FlowRL/verl/utils/reward_score/math_dapo.py:125
↓ 3 callersFunctionoffload_tensor_to_cpu
(tensor)
verl_Test/verl/utils/megatron_utils.py:317
↓ 3 callersFunctionoffload_tensor_to_cpu
(tensor)
verl_FlowRL/verl/utils/megatron_utils.py:317
↓ 3 callersFunctionpad_dataproto_to_divisor
Pad a DataProto to size divisible by size_divisor Args: size_divisor (int): size divisor Returns: data: (DataProto): the pad
verl_Test/verl/protocol.py:70
↓ 3 callersFunctionper_tensor_generator
(actor_module, model_config, weight_converter, transformer_config, layer_name_mapping, convert_qkv_gate_up_by_
verl_Test/verl/utils/megatron_utils.py:727
↓ 3 callersFunctionper_tensor_generator
(actor_module, model_config, weight_converter, transformer_config, layer_name_mapping, convert_qkv_gate_up_by_
verl_FlowRL/verl/utils/megatron_utils.py:727
↓ 3 callersFunctionprocess_fn
(example, idx)
verl_FlowRL/examples/data_preprocess/geo3k.py:46
↓ 3 callersMethodreorder
Note that this operation is in-place
verl_Test/verl/protocol.py:712
↓ 3 callersFunctionrun_test
if test(generated_code) is not None it'll try to run the code. otherwise it'll just return an input and output pair.
verl_Test/verl/utils/reward_score/prime_code/testing_util.py:87
↓ 3 callersFunctionrun_test
if test(generated_code) is not None it'll try to run the code. otherwise it'll just return an input and output pair.
verl_FlowRL/verl/utils/reward_score/prime_code/testing_util.py:87
↓ 3 callersMethodselect_idxs
Select specific indices from the DataProto. Args: idxs (torch.Tensor or numpy.ndarray or list): Indices to select
verl_Test/verl/protocol.py:434
↓ 3 callersMethodselect_idxs
Select specific indices from the DataProto. Args: idxs (torch.Tensor or numpy.ndarray or list): Indices to select
verl_FlowRL/verl/protocol.py:434
↓ 3 callersMethodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
verl_Test/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:453
↓ 3 callersMethodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
verl_FlowRL/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:453
↓ 3 callersFunctionset_random_seed
(seed)
verl_Test/verl/workers/megatron_workers.py:52
↓ 3 callersFunctionset_random_seed
(seed)
verl_FlowRL/verl/workers/megatron_workers.py:52
↓ 3 callersFunctionslice_input_tensor
(x: Tensor, dim: int, padding: bool = True, group: ProcessGroup = None)
verl_Test/verl/utils/ulysses.py:117
↓ 3 callersFunctionslice_input_tensor
(x: Tensor, dim: int, padding: bool = True, group: ProcessGroup = None)
verl_FlowRL/verl/utils/ulysses.py:117
↓ 3 callersMethodspawn
Spawn to a dictionary of worker groups, each with a subset of method with prefix. Args: prefix_set: Set of prefixes to create wor
verl_Test/verl/single_controller/ray/base.py:419
↓ 3 callersFunctionstripped_string_compare
(s1, s2)
verl_Test/rllm/rewards/code_utils/codeforces.py:533
↓ 3 callersFunctionstripped_string_compare
(s1, s2)
verl_Test/rllm/rewards/code_utils/taco.py:587
↓ 3 callersFunctionstripped_string_compare
(s1, s2)
verl_FlowRL/rllm/rewards/code_utils/codeforces.py:533
↓ 3 callersFunctionstripped_string_compare
(s1, s2)
verl_FlowRL/rllm/rewards/code_utils/taco.py:587
↓ 3 callersFunctiontimeout_limit
Decorator to add a timeout to a function. Args: seconds: The timeout duration in seconds. use_signals: (Deprecated) This is
verl_FlowRL/verl/utils/py_functional.py:51
↓ 3 callersMethodunfold_column_chunks
Split along the second dim into `n_split`, unfold it to the first dim (batch dim) Useful in passing grouped tensors that doesn't want to be sh
verl_FlowRL/verl/protocol.py:759
↓ 3 callersFunctionunion_numpy_dict
(tensor_dict1: dict[str, np.ndarray], tensor_dict2: dict[str, np.ndarray])
verl_FlowRL/verl/protocol.py:116
↓ 3 callersFunctionunion_tensor_dict
Union two tensordicts.
verl_FlowRL/verl/protocol.py:104
↓ 3 callersFunctionunpad_dataproto
(data: "DataProto", pad_size)
verl_Test/verl/protocol.py:98
↓ 3 callersFunctionupdate_model_config
Update the module config with the override_config_kwargs. Args: module_config: The module config from Huggingface Transformers. ov
verl_Test/verl/utils/model.py:49
↓ 3 callersMethodupdate_rm
(self, data: DataProto)
verl_Test/recipe/prime/prime_dp_rm.py:258
↓ 3 callersMethodupdate_rm
(self, data: DataProto)
verl_FlowRL/recipe/prime/prime_dp_rm.py:258
↓ 2 callersMethod__enter__
(self)
verl_Test/verl/workers/sharding_manager/base.py:22
↓ 2 callersMethod__enter__
(self)
verl_FlowRL/verl/workers/sharding_manager/base.py:22
← previousnext →501–600 of 4,141, ranked by callers