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
↓ 14 callers
Method
from_config
(cls, config: Dict)
verl_FlowRL/tests/e2e/envs/digit_completion/tokenizer.py:135
↓ 14 callers
Function
get_ulysses_sequence_parallel_world_size
Get ulysses sequence parallel world size.
verl_FlowRL/verl/utils/ulysses.py:46
↓ 13 callers
Function
agg_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 callers
Function
append_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 callers
Function
append_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 callers
Method
get_rng_state
()
verl_Test/verl/utils/checkpoint/checkpoint_manager.py:109
↓ 13 callers
Method
get_rng_state
()
verl_FlowRL/verl/utils/checkpoint/checkpoint_manager.py:109
↓ 13 callers
Method
named_parameters
(self)
verl_Test/verl/utils/memory_buffer.py:205
↓ 13 callers
Function
offload_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 callers
Function
offload_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 callers
Method
start
(self)
verl_FlowRL/verl/utils/debug/profile.py:61
↓ 13 callers
Method
train
(self)
verl_FlowRL/verl/workers/sharding_manager/megatron_vllm.py:190
↓ 13 callers
Function
unwrap_model
(model, module_instances=ALL_MODULE_WRAPPER_CLASSNAMES)
verl_Test/verl/utils/megatron_utils.py:144
↓ 13 callers
Function
unwrap_model
(model, module_instances=ALL_MODULE_WRAPPER_CLASSNAMES)
verl_FlowRL/verl/utils/megatron_utils.py:144
↓ 12 callers
Function
gather_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 callers
Function
get_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 callers
Function
get_ulysses_sequence_parallel_world_size
Get ulysses sequence parallel world size.
verl_Test/verl/utils/ulysses.py:46
↓ 12 callers
Function
run_remote
Run a command on a remote host. No conda activation; default env is assumed.
verl_Test/ray_cluster.py:49
↓ 12 callers
Method
save
(self)
verl_Test/verl/utils/debug/profile.py:75
↓ 12 callers
Method
save
(self)
verl_FlowRL/verl/utils/debug/profile.py:75
↓ 12 callers
Method
step
(self)
verl_Test/verl/utils/debug/profile.py:66
↓ 12 callers
Method
train
(self)
verl_Test/verl/workers/sharding_manager/megatron_vllm.py:190
↓ 11 callers
Method
add
(self, idx: int, val: int)
verl_Test/verl/utils/seqlen_balancing.py:30
↓ 11 callers
Method
add
(self, idx: int, val: int)
verl_FlowRL/verl/utils/seqlen_balancing.py:30
↓ 11 callers
Function
agg_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 callers
Function
err
(msg)
verl_Test/ray_cluster.py:62
↓ 11 callers
Method
eval
(self)
verl_Test/verl/workers/sharding_manager/megatron_vllm.py:186
↓ 11 callers
Method
eval
(self)
verl_FlowRL/verl/workers/sharding_manager/megatron_vllm.py:186
↓ 11 callers
Method
get_megatron_rank_info
(self)
verl_Test/verl/single_controller/base/megatron/worker.py:32
↓ 11 callers
Method
get_megatron_rank_info
(self)
verl_FlowRL/verl/single_controller/base/megatron/worker.py:32
↓ 11 callers
Function
get_ulysses_sequence_parallel_group
Get ulysses sequence parallel process group.
verl_Test/verl/utils/ulysses.py:38
↓ 11 callers
Function
get_ulysses_sequence_parallel_group
Get ulysses sequence parallel process group.
verl_FlowRL/verl/utils/ulysses.py:38
↓ 11 callers
Function
masked_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 callers
Function
offload_fsdp_optimizer
(optimizer)
verl_Test/verl/utils/fsdp_utils.py:188
↓ 11 callers
Function
offload_fsdp_optimizer
(optimizer)
verl_FlowRL/verl/utils/fsdp_utils.py:188
↓ 11 callers
Method
remove
(cls, name: str)
verl_FlowRL/verl/utils/py_functional.py:259
↓ 11 callers
Method
spawn
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 callers
Method
start
(self)
verl_Test/verl/utils/debug/profile.py:61
↓ 11 callers
Function
ulysses_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 callers
Method
wake_up
Wake up engine to load model weights and build kv cache.
verl_FlowRL/verl/workers/rollout/async_server.py:98
↓ 10 callers
Method
_validate
(self)
verl_Test/recipe/spin/spin_trainer.py:613
↓ 10 callers
Method
_validate
(self)
verl_FlowRL/recipe/spin/spin_trainer.py:613
↓ 10 callers
Method
dump
(self, data: io.BytesIO, name)
verl_Test/verl/utils/debug/trajectory_tracker.py:59
↓ 10 callers
Function
get_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 callers
Function
load_megatron_model_to_gpu
(models, load_grad=True)
verl_Test/verl/utils/megatron_utils.py:276
↓ 10 callers
Function
load_megatron_model_to_gpu
(models, load_grad=True)
verl_FlowRL/verl/utils/megatron_utils.py:276
↓ 10 callers
Method
wake_up
Wake up engine to load model weights and build kv cache.
verl_Test/verl/workers/rollout/async_server.py:98
↓ 9 callers
Function
_megatron_calc_global_rank
Calculate global rank with support for CP/EP parallelism
verl_Test/verl/models/mcore/saver.py:28
↓ 9 callers
Function
_megatron_calc_global_rank
Calculate global rank with support for CP/EP parallelism
verl_FlowRL/verl/models/mcore/saver.py:28
↓ 9 callers
Method
_preprocess_prompt_to_async_rollout_requests
(self, prompts: DataProto, n: int)
verl_FlowRL/verl/workers/rollout/sglang_rollout/sglang_rollout.py:942
↓ 9 callers
Function
_timer
(name: str, timing_raw: Dict[str, float])
verl_Test/recipe/spin/spin_trainer.py:343
↓ 9 callers
Function
_timer
(name: str, timing_raw: Dict[str, float])
verl_FlowRL/recipe/spin/spin_trainer.py:343
↓ 9 callers
Function
compute_position_id_with_mask
(mask)
verl_Test/verl/utils/model.py:204
↓ 9 callers
Function
func
(self, *args, **kwargs)
verl_Test/verl/single_controller/ray/base.py:635
↓ 9 callers
Function
gather_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 callers
Function
get_model
Build the model.
verl_FlowRL/verl/utils/megatron_utils.py:45
↓ 9 callers
Function
load_extern_type
Load a external data type based on the file path and type name
verl_FlowRL/verl/utils/import_utils.py:62
↓ 9 callers
Function
ulysses_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 callers
Function
_broadcast_tensor
broadcast tensor from rank0 across mp_group
verl_Test/verl/models/mcore/loader.py:97
↓ 8 callers
Function
_broadcast_tensor
broadcast tensor from rank0 across mp_group
verl_FlowRL/verl/models/mcore/loader.py:97
↓ 8 callers
Function
apply_monkey_patch
Replace _flash_attention_forward to _ulysses_flash_attention_forward
verl_FlowRL/verl/models/transformers/monkey_patch.py:141
↓ 8 callers
Method
from_single_dict
Create a DataProto from a dict of tensors and non_tensors
verl_Test/verl/protocol.py:330
↓ 8 callers
Method
from_single_dict
Create a DataProto from a dict of tensors and non_tensors
verl_FlowRL/verl/protocol.py:330
↓ 8 callers
Function
func
(self, *args, **kwargs)
verl_FlowRL/verl/single_controller/ray/base.py:635
↓ 8 callers
Function
get_custom_reward_fn
(config)
verl_Test/verl/trainer/ppo/reward.py:25
↓ 8 callers
Function
get_model
Build the model.
verl_Test/verl/utils/megatron_utils.py:45
↓ 8 callers
Function
hf_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 callers
Function
hf_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 callers
Function
initialize_global_process_group
(timeout_second=36000)
verl_FlowRL/verl/utils/distributed.py:20
↓ 8 callers
Method
rank
Get the rank of this worker in the distributed setup.
verl_Test/verl/single_controller/base/worker.py:237
↓ 8 callers
Method
rank
Get the rank of this worker in the distributed setup.
verl_FlowRL/verl/single_controller/base/worker.py:237
↓ 8 callers
Function
reduce_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 callers
Method
remove
(cls, name: str)
verl_Test/verl/utils/py_functional.py:259
↓ 7 callers
Method
_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 callers
Function
_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 callers
Function
_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 callers
Function
_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 callers
Function
_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 callers
Function
apply_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 callers
Function
apply_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 callers
Function
copy_local_path_from_hdfs
Deprecated. Please use copy_to_local instead.
verl_Test/verl/utils/fs.py:212
↓ 7 callers
Function
create_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 callers
Method
dump
(self, data: io.BytesIO, name)
verl_FlowRL/verl/utils/debug/trajectory_tracker.py:59
↓ 7 callers
Method
finish
(self)
verl_Test/verl/utils/tracking.py:191
↓ 7 callers
Method
finish
(self)
verl_FlowRL/verl/utils/tracking.py:191
↓ 7 callers
Function
gather_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 callers
Function
gather_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 callers
Function
get_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 callers
Function
get_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 callers
Function
get_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 callers
Function
import_external_libs
(external_libs=None)
verl_Test/verl/utils/import_utils.py:51
↓ 7 callers
Function
import_external_libs
(external_libs=None)
verl_FlowRL/verl/utils/import_utils.py:51
↓ 7 callers
Method
json
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 callers
Method
json
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 callers
Function
load_reward_manager
(config, tokenizer, num_examine, **reward_kwargs)
verl_Test/verl/trainer/ppo/reward.py:60
↓ 7 callers
Function
logprobs_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 callers
Function
make_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 callers
Function
masked_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 callers
Function
offload_megatron_optimizer
(optimizers)
verl_Test/verl/utils/megatron_utils.py:385
↓ 7 callers
Function
offload_megatron_optimizer
(optimizers)
verl_FlowRL/verl/utils/megatron_utils.py:385
← previous
next →
101–200 of 4,141, ranked by callers