MCPcopy Create free account

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

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

↓ 14 callersMethodfrom_config
(cls, config: Dict)
verl_FlowRL/tests/e2e/envs/digit_completion/tokenizer.py:135
↓ 14 callersFunctionget_ulysses_sequence_parallel_world_size
Get ulysses sequence parallel world size.
verl_FlowRL/verl/utils/ulysses.py:46
↓ 13 callersFunctionagg_loss
Aggregate the loss matrix into a scalar. Args: loss_mat: `(torch.Tensor)`: shape: (bs, response_length) loss_mas
verl_Test/verl/trainer/ppo/core_algos.py:370
↓ 13 callersFunctionappend_to_dict
Append values from new_data to lists in data. For each key in new_data, this function appends the corresponding value to a list stored under
verl_Test/verl/utils/py_functional.py:159
↓ 13 callersFunctionappend_to_dict
Append values from new_data to lists in data. For each key in new_data, this function appends the corresponding value to a list stored under
verl_FlowRL/verl/utils/py_functional.py:159
↓ 13 callersMethodget_rng_state
()
verl_Test/verl/utils/checkpoint/checkpoint_manager.py:109
↓ 13 callersMethodget_rng_state
()
verl_FlowRL/verl/utils/checkpoint/checkpoint_manager.py:109
↓ 13 callersMethodnamed_parameters
(self)
verl_Test/verl/utils/memory_buffer.py:205
↓ 13 callersFunctionoffload_megatron_model_to_cpu
In megatron, the model and optimizer storage are: - bf16 parameter data chunked in model parallel group - fp32 grad chunked in model para
verl_Test/verl/utils/megatron_utils.py:240
↓ 13 callersFunctionoffload_megatron_model_to_cpu
In megatron, the model and optimizer storage are: - bf16 parameter data chunked in model parallel group - fp32 grad chunked in model para
verl_FlowRL/verl/utils/megatron_utils.py:240
↓ 13 callersMethodstart
(self)
verl_FlowRL/verl/utils/debug/profile.py:61
↓ 13 callersMethodtrain
(self)
verl_FlowRL/verl/workers/sharding_manager/megatron_vllm.py:190
↓ 13 callersFunctionunwrap_model
(model, module_instances=ALL_MODULE_WRAPPER_CLASSNAMES)
verl_Test/verl/utils/megatron_utils.py:144
↓ 13 callersFunctionunwrap_model
(model, module_instances=ALL_MODULE_WRAPPER_CLASSNAMES)
verl_FlowRL/verl/utils/megatron_utils.py:144
↓ 12 callersFunctiongather_outpus_and_unpad
Gather a tensor across a process group and optionally unpad its padded elements. Args: x (Tensor): Input tensor to gather. g
verl_FlowRL/verl/utils/ulysses.py:237
↓ 12 callersFunctionget_reverse_idx
Build the inverse of an index mapping. Args: idx_map (Sequence[int]): Sequence where idx_map[i] = j. Returns: List[int]
verl_FlowRL/verl/utils/seqlen_balancing.py:280
↓ 12 callersFunctionget_ulysses_sequence_parallel_world_size
Get ulysses sequence parallel world size.
verl_Test/verl/utils/ulysses.py:46
↓ 12 callersFunctionrun_remote
Run a command on a remote host. No conda activation; default env is assumed.
verl_Test/ray_cluster.py:49
↓ 12 callersMethodsave
(self)
verl_Test/verl/utils/debug/profile.py:75
↓ 12 callersMethodsave
(self)
verl_FlowRL/verl/utils/debug/profile.py:75
↓ 12 callersMethodstep
(self)
verl_Test/verl/utils/debug/profile.py:66
↓ 12 callersMethodtrain
(self)
verl_Test/verl/workers/sharding_manager/megatron_vllm.py:190
↓ 11 callersMethodadd
(self, idx: int, val: int)
verl_Test/verl/utils/seqlen_balancing.py:30
↓ 11 callersMethodadd
(self, idx: int, val: int)
verl_FlowRL/verl/utils/seqlen_balancing.py:30
↓ 11 callersFunctionagg_loss
Aggregate the loss matrix into a scalar. Args: loss_mat: `(torch.Tensor)`: shape: (bs, response_length) loss_mas
verl_FlowRL/verl/trainer/ppo/core_algos.py:370
↓ 11 callersFunctionerr
(msg)
verl_Test/ray_cluster.py:62
↓ 11 callersMethodeval
(self)
verl_Test/verl/workers/sharding_manager/megatron_vllm.py:186
↓ 11 callersMethodeval
(self)
verl_FlowRL/verl/workers/sharding_manager/megatron_vllm.py:186
↓ 11 callersMethodget_megatron_rank_info
(self)
verl_Test/verl/single_controller/base/megatron/worker.py:32
↓ 11 callersMethodget_megatron_rank_info
(self)
verl_FlowRL/verl/single_controller/base/megatron/worker.py:32
↓ 11 callersFunctionget_ulysses_sequence_parallel_group
Get ulysses sequence parallel process group.
verl_Test/verl/utils/ulysses.py:38
↓ 11 callersFunctionget_ulysses_sequence_parallel_group
Get ulysses sequence parallel process group.
verl_FlowRL/verl/utils/ulysses.py:38
↓ 11 callersFunctionmasked_mean
Compute the mean of `values` over elements selected by `mask`. Args: values (Tensor): Input tensor. mask (Tensor): Boolean o
verl_FlowRL/verl/utils/torch_functional.py:136
↓ 11 callersFunctionoffload_fsdp_optimizer
(optimizer)
verl_Test/verl/utils/fsdp_utils.py:188
↓ 11 callersFunctionoffload_fsdp_optimizer
(optimizer)
verl_FlowRL/verl/utils/fsdp_utils.py:188
↓ 11 callersMethodremove
(cls, name: str)
verl_FlowRL/verl/utils/py_functional.py:259
↓ 11 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_FlowRL/verl/single_controller/ray/base.py:419
↓ 11 callersMethodstart
(self)
verl_Test/verl/utils/debug/profile.py:61
↓ 11 callersFunctionulysses_pad_and_slice_inputs
Pad and slice input_ids to be divisible by sp_size Pad position_ids to be divisible by sp_size. Note both input_ids_rmpad and position_i
verl_FlowRL/verl/utils/ulysses.py:288
↓ 11 callersMethodwake_up
Wake up engine to load model weights and build kv cache.
verl_FlowRL/verl/workers/rollout/async_server.py:98
↓ 10 callersMethod_validate
(self)
verl_Test/recipe/spin/spin_trainer.py:613
↓ 10 callersMethod_validate
(self)
verl_FlowRL/recipe/spin/spin_trainer.py:613
↓ 10 callersMethoddump
(self, data: io.BytesIO, name)
verl_Test/verl/utils/debug/trajectory_tracker.py:59
↓ 10 callersFunctionget_reverse_idx
Build the inverse of an index mapping. Args: idx_map (Sequence[int]): Sequence where idx_map[i] = j. Returns: List[int]
verl_Test/verl/utils/seqlen_balancing.py:280
↓ 10 callersFunctionload_megatron_model_to_gpu
(models, load_grad=True)
verl_Test/verl/utils/megatron_utils.py:276
↓ 10 callersFunctionload_megatron_model_to_gpu
(models, load_grad=True)
verl_FlowRL/verl/utils/megatron_utils.py:276
↓ 10 callersMethodwake_up
Wake up engine to load model weights and build kv cache.
verl_Test/verl/workers/rollout/async_server.py:98
↓ 9 callersFunction_megatron_calc_global_rank
Calculate global rank with support for CP/EP parallelism
verl_Test/verl/models/mcore/saver.py:28
↓ 9 callersFunction_megatron_calc_global_rank
Calculate global rank with support for CP/EP parallelism
verl_FlowRL/verl/models/mcore/saver.py:28
↓ 9 callersMethod_preprocess_prompt_to_async_rollout_requests
(self, prompts: DataProto, n: int)
verl_FlowRL/verl/workers/rollout/sglang_rollout/sglang_rollout.py:942
↓ 9 callersFunction_timer
(name: str, timing_raw: Dict[str, float])
verl_Test/recipe/spin/spin_trainer.py:343
↓ 9 callersFunction_timer
(name: str, timing_raw: Dict[str, float])
verl_FlowRL/recipe/spin/spin_trainer.py:343
↓ 9 callersFunctioncompute_position_id_with_mask
(mask)
verl_Test/verl/utils/model.py:204
↓ 9 callersFunctionfunc
(self, *args, **kwargs)
verl_Test/verl/single_controller/ray/base.py:635
↓ 9 callersFunctiongather_outpus_and_unpad
Gather a tensor across a process group and optionally unpad its padded elements. Args: x (Tensor): Input tensor to gather. g
verl_Test/verl/utils/ulysses.py:237
↓ 9 callersFunctionget_model
Build the model.
verl_FlowRL/verl/utils/megatron_utils.py:45
↓ 9 callersFunctionload_extern_type
Load a external data type based on the file path and type name
verl_FlowRL/verl/utils/import_utils.py:62
↓ 9 callersFunctionulysses_pad_and_slice_inputs
Pad and slice input_ids to be divisible by sp_size Pad position_ids to be divisible by sp_size. Note both input_ids_rmpad and position_i
verl_Test/verl/utils/ulysses.py:288
↓ 8 callersFunction_broadcast_tensor
broadcast tensor from rank0 across mp_group
verl_Test/verl/models/mcore/loader.py:97
↓ 8 callersFunction_broadcast_tensor
broadcast tensor from rank0 across mp_group
verl_FlowRL/verl/models/mcore/loader.py:97
↓ 8 callersFunctionapply_monkey_patch
Replace _flash_attention_forward to _ulysses_flash_attention_forward
verl_FlowRL/verl/models/transformers/monkey_patch.py:141
↓ 8 callersMethodfrom_single_dict
Create a DataProto from a dict of tensors and non_tensors
verl_Test/verl/protocol.py:330
↓ 8 callersMethodfrom_single_dict
Create a DataProto from a dict of tensors and non_tensors
verl_FlowRL/verl/protocol.py:330
↓ 8 callersFunctionfunc
(self, *args, **kwargs)
verl_FlowRL/verl/single_controller/ray/base.py:635
↓ 8 callersFunctionget_custom_reward_fn
(config)
verl_Test/verl/trainer/ppo/reward.py:25
↓ 8 callersFunctionget_model
Build the model.
verl_Test/verl/utils/megatron_utils.py:45
↓ 8 callersFunctionhf_processor
Create a huggingface processor to process multimodal data. Args: name_or_path (str): The name of the processor. Returns: tra
verl_Test/verl/utils/tokenizer.py:64
↓ 8 callersFunctionhf_processor
Create a huggingface processor to process multimodal data. Args: name_or_path (str): The name of the processor. Returns: tra
verl_FlowRL/verl/utils/tokenizer.py:64
↓ 8 callersFunctioninitialize_global_process_group
(timeout_second=36000)
verl_FlowRL/verl/utils/distributed.py:20
↓ 8 callersMethodrank
Get the rank of this worker in the distributed setup.
verl_Test/verl/single_controller/base/worker.py:237
↓ 8 callersMethodrank
Get the rank of this worker in the distributed setup.
verl_FlowRL/verl/single_controller/base/worker.py:237
↓ 8 callersFunctionreduce_metrics
Reduces a dictionary of metric lists by computing the mean, max, or min of each list. The reduce operation is determined by the key name:
verl_FlowRL/verl/utils/metric/utils.py:23
↓ 8 callersMethodremove
(cls, name: str)
verl_Test/verl/utils/py_functional.py:259
↓ 7 callersMethod_async_rollout_a_request
( self, req: AsyncRolloutRequest, do_sample: bool = True, is_validate: bool =
verl_FlowRL/verl/workers/rollout/sglang_rollout/sglang_rollout.py:620
↓ 7 callersFunction_megatron_calc_global_rank
given TP,DP,PP rank to get the global rank.
verl_Test/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:27
↓ 7 callersFunction_megatron_calc_global_rank
given TP,DP,PP rank to get the global rank.
verl_Test/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:27
↓ 7 callersFunction_megatron_calc_global_rank
given TP,DP,PP rank to get the global rank.
verl_FlowRL/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:27
↓ 7 callersFunction_megatron_calc_global_rank
given TP,DP,PP rank to get the global rank.
verl_FlowRL/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:27
↓ 7 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
verl_Test/verl/models/transformers/kimi_vl.py:78
↓ 7 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
verl_FlowRL/verl/models/transformers/kimi_vl.py:78
↓ 7 callersFunctioncopy_local_path_from_hdfs
Deprecated. Please use copy_to_local instead.
verl_Test/verl/utils/fs.py:212
↓ 7 callersFunctioncreate_random_mask
Create a random mask given input_ids. Support left padding and right padding. Process: - Sample valid token length - Sample left_padding l
verl_FlowRL/verl/utils/model.py:161
↓ 7 callersMethoddump
(self, data: io.BytesIO, name)
verl_FlowRL/verl/utils/debug/trajectory_tracker.py:59
↓ 7 callersMethodfinish
(self)
verl_Test/verl/utils/tracking.py:191
↓ 7 callersMethodfinish
(self)
verl_FlowRL/verl/utils/tracking.py:191
↓ 7 callersFunctiongather_heads_scatter_seq
A func to sync attention result with alltoall in sequence parallel gather head dimension and scatter seq dim: e.g. seq_dim: 1, head_dim:
verl_Test/verl/utils/ulysses.py:86
↓ 7 callersFunctiongather_heads_scatter_seq
A func to sync attention result with alltoall in sequence parallel gather head dimension and scatter seq dim: e.g. seq_dim: 1, head_dim:
verl_FlowRL/verl/utils/ulysses.py:86
↓ 7 callersFunctionget_device_name
Function that gets the torch.device based on the current machine. This currently only supports CPU, CUDA, NPU. Returns: device
verl_Test/verl/utils/device.py:32
↓ 7 callersFunctionget_device_name
Function that gets the torch.device based on the current machine. This currently only supports CPU, CUDA, NPU. Returns: device
verl_FlowRL/verl/utils/device.py:32
↓ 7 callersFunctionget_fsdp_wrap_policy
Get FSDP wrap policy for the module. Args: module: The module to get wrap policy for config: Configuration for wrap policy
verl_FlowRL/verl/utils/fsdp_utils.py:66
↓ 7 callersFunctionimport_external_libs
(external_libs=None)
verl_Test/verl/utils/import_utils.py:51
↓ 7 callersFunctionimport_external_libs
(external_libs=None)
verl_FlowRL/verl/utils/import_utils.py:51
↓ 7 callersMethodjson
Return the tool's information in a standardized format for tool registration. Returns: Dict[str, Any]: Tool info
verl_Test/rllm/tools/tool_base.py:61
↓ 7 callersMethodjson
Return the tool's information in a standardized format for tool registration. Returns: Dict[str, Any]: Tool info
verl_FlowRL/rllm/tools/tool_base.py:61
↓ 7 callersFunctionload_reward_manager
(config, tokenizer, num_examine, **reward_kwargs)
verl_Test/verl/trainer/ppo/reward.py:60
↓ 7 callersFunctionlogprobs_from_logits
Compute per-token log-probabilities for the given labels. Uses a Flash-Attention–based cross-entropy (if available) for efficient backward,
verl_FlowRL/verl/utils/torch_functional.py:54
↓ 7 callersFunctionmake_batch_generator
Creates a batch generator suitable for Megatron pipeline parallelism, handling virtual pipeline parallelism (VPP). If VPP is used (vpp_s
verl_FlowRL/verl/utils/megatron/pipeline_parallel.py:49
↓ 7 callersFunctionmasked_mean
Compute the mean of `values` over elements selected by `mask`. Args: values (Tensor): Input tensor. mask (Tensor): Boolean o
verl_Test/verl/utils/torch_functional.py:136
↓ 7 callersFunctionoffload_megatron_optimizer
(optimizers)
verl_Test/verl/utils/megatron_utils.py:385
↓ 7 callersFunctionoffload_megatron_optimizer
(optimizers)
verl_FlowRL/verl/utils/megatron_utils.py:385
← previousnext →101–200 of 4,141, ranked by callers