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
↓ 377 callers
Method
get
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
verl_Test/verl/utils/memory_buffer.py:43
↓ 369 callers
Method
get
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
verl_FlowRL/verl/utils/memory_buffer.py:43
↓ 278 callers
Method
get_rank
(self)
verl_FlowRL/tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:406
↓ 214 callers
Method
to
move the batch to device Args: device (torch.device, str): torch device Returns: DataProto: the current Data
verl_FlowRL/verl/protocol.py:385
↓ 194 callers
Method
to
move the batch to device Args: device (torch.device, str): torch device Returns: DataProto: the current Data
verl_Test/verl/protocol.py:385
↓ 189 callers
Method
get
(self)
verl_FlowRL/verl/protocol.py:877
↓ 177 callers
Method
get
(self)
verl_Test/verl/protocol.py:877
↓ 85 callers
Function
log_gpu_memory_usage
(head: str, logger: logging.Logger = None, level=logging.DEBUG, rank: int = 0)
verl_FlowRL/verl/utils/debug/performance.py:49
↓ 84 callers
Function
print_rank_0
If distributed is initialized, print only on rank 0.
verl_Test/verl/utils/megatron_utils.py:422
↓ 84 callers
Function
print_rank_0
If distributed is initialized, print only on rank 0.
verl_FlowRL/verl/utils/megatron_utils.py:422
↓ 83 callers
Method
from_pretrained
(cls, save_directory: Union[str, os.PathLike], **kwargs)
verl_FlowRL/tests/e2e/envs/digit_completion/tokenizer.py:149
↓ 78 callers
Function
log_gpu_memory_usage
(head: str, logger: logging.Logger = None, level=logging.DEBUG, rank: int = 0)
verl_Test/verl/utils/debug/performance.py:49
↓ 71 callers
Method
getenv
(self, key)
verl_FlowRL/tests/ray_cpu/test_ray_local_envs.py:31
↓ 69 callers
Method
pop
Pop a subset of the DataProto via `batch_keys` and `meta_info_keys` Args: batch_keys (list, optional): a list of strings indicati
verl_Test/verl/protocol.py:516
↓ 69 callers
Method
pop
Pop a subset of the DataProto via `batch_keys` and `meta_info_keys` Args: batch_keys (list, optional): a list of strings indicati
verl_FlowRL/verl/protocol.py:516
↓ 68 callers
Method
sub
(self, x)
verl_FlowRL/tests/ray_cpu/test_fused_workers.py:40
↓ 63 callers
Method
init
(self)
verl_FlowRL/tests/ray_gpu/test_rvdz.py:26
↓ 61 callers
Function
_timer
Context manager for timing code execution. This utility function measures the execution time of code within its context and accumulates the t
verl_Test/verl/trainer/ppo/ray_trainer.py:318
↓ 61 callers
Function
_timer
Context manager for timing code execution. This utility function measures the execution time of code within its context and accumulates the t
verl_FlowRL/verl/trainer/ppo/ray_trainer.py:318
↓ 60 callers
Method
update
(self, current_kl, n_steps)
verl_Test/recipe/spin/core_algos.py:46
↓ 60 callers
Method
update
(self, current_kl, n_steps)
verl_FlowRL/recipe/spin/core_algos.py:46
↓ 58 callers
Method
chunk
Split the batch among dim=0 into chunks. The meta_info is passed to each DataProto after split. Args: chunks (int): the number of
verl_FlowRL/verl/protocol.py:652
↓ 56 callers
Method
from_dict
Create a DataProto from a dict of tensors. This assumes that 1. All the tensor in tensors have the same dim0 2. Only dim0 is the batch
verl_FlowRL/verl/protocol.py:346
↓ 54 callers
Method
chunk
Split the batch among dim=0 into chunks. The meta_info is passed to each DataProto after split. Args: chunks (int): the number of
verl_Test/verl/protocol.py:652
↓ 52 callers
Function
get_torch_device
Return the corresponding torch attribute based on the device type string. Returns: module: The corresponding torch device namespace, or to
verl_Test/verl/utils/device.py:47
↓ 52 callers
Function
get_torch_device
Return the corresponding torch attribute based on the device type string. Returns: module: The corresponding torch device namespace, or to
verl_FlowRL/verl/utils/device.py:47
↓ 46 callers
Method
decode
Converts a sequence of ids in a string, using the tokenizer and vocabulary with options to remove special tokens and clean up tokeniz
verl_FlowRL/verl/workers/rollout/tokenizer.py:90
↓ 44 callers
Method
sleep
Sleep engine to offload model weights and discard kv cache.
verl_FlowRL/verl/workers/rollout/async_server.py:103
↓ 40 callers
Function
load_dataset
Load a dataset from a JSON file based on the dataset enum. This function takes a dataset enum value and loads the corresponding JSON file fro
verl_FlowRL/rllm/data/utils.py:14
↓ 39 callers
Function
copy_to_local
Copy files/directories from HDFS to local cache with validation. Args: src (str): Source path - HDFS path (hdfs://...) or local filesyste
verl_Test/verl/utils/fs.py:191
↓ 39 callers
Function
copy_to_local
Copy files/directories from HDFS to local cache with validation. Args: src (str): Source path - HDFS path (hdfs://...) or local filesyste
verl_FlowRL/verl/utils/fs.py:191
↓ 38 callers
Method
get
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
verl_Test/verl/utils/megatron/memory.py:29
↓ 38 callers
Method
get
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
verl_FlowRL/verl/utils/megatron/memory.py:29
↓ 38 callers
Method
save_pretrained
(self, save_directory: Union[str, os.PathLike], **kwargs)
verl_FlowRL/tests/e2e/envs/digit_completion/tokenizer.py:142
↓ 38 callers
Method
update
(self, current_kl, n_steps)
verl_Test/verl/trainer/ppo/core_algos.py:53
↓ 38 callers
Method
update
(self, current_kl, n_steps)
verl_FlowRL/verl/trainer/ppo/core_algos.py:53
↓ 36 callers
Method
union
Union with another DataProto. Union batch and meta_info separately. Throw an error if - there are conflict keys in batch and they are
verl_Test/verl/protocol.py:574
↓ 36 callers
Method
union
Union with another DataProto. Union batch and meta_info separately. Throw an error if - there are conflict keys in batch and they are
verl_FlowRL/verl/protocol.py:574
↓ 34 callers
Method
select
Select a subset of the DataProto via batch_keys and meta_info_keys Args: batch_keys (list, optional): a list of strings indicatin
verl_FlowRL/verl/protocol.py:399
↓ 33 callers
Method
decode
Converts a sequence of ids in a string, using the tokenizer and vocabulary with options to remove special tokens and clean up tokeniz
verl_Test/verl/workers/rollout/tokenizer.py:90
↓ 33 callers
Method
select
Select a subset of the DataProto via batch_keys and meta_info_keys Args: batch_keys (list, optional): a list of strings indicatin
verl_Test/verl/protocol.py:399
↓ 30 callers
Method
create
Create a tool instance. Args: instance_id: The instance id of the tool. Returns: The instance id of the tool
verl_FlowRL/verl/tools/base_tool.py:41
↓ 29 callers
Function
hf_tokenizer
Create a huggingface pretrained tokenizer which correctness handles eos and pad tokens. Args: name (str): The name of the tokenizer.
verl_FlowRL/verl/utils/tokenizer.py:36
↓ 28 callers
Method
concat
Concat a list of DataProto. The batch is concatenated among dim=0. The meta_info is assumed to be identical and will use the first one.
verl_FlowRL/verl/protocol.py:690
↓ 27 callers
Method
concat
Concat a list of DataProto. The batch is concatenated among dim=0. The meta_info is assumed to be identical and will use the first one.
verl_Test/verl/protocol.py:690
↓ 27 callers
Method
sleep
Sleep engine to offload model weights and discard kv cache.
verl_Test/verl/workers/rollout/async_server.py:103
↓ 27 callers
Method
step
(self)
verl_FlowRL/verl/utils/debug/profile.py:66
↓ 26 callers
Method
values
(cls)
verl_Test/verl/utils/py_functional.py:223
↓ 26 callers
Method
values
(cls)
verl_FlowRL/verl/utils/py_functional.py:223
↓ 25 callers
Function
pad_sequence_to_length
pad a 2D tensors (e.g. responses, logprobs) in the last dim to max_seq_length. input shape: [bs, seq_length] output shape: [bs, max_seq_l
verl_FlowRL/verl/utils/torch_functional.py:280
↓ 25 callers
Method
run
(self, config)
verl_Test/recipe/spin/main_spin.py:44
↓ 24 callers
Function
hf_tokenizer
Create a huggingface pretrained tokenizer which correctness handles eos and pad tokens. Args: name (str): The name of the tokenizer.
verl_Test/verl/utils/tokenizer.py:36
↓ 23 callers
Method
create
Create a tool instance. Args: instance_id: The instance id of the tool. Returns: The instance id of the tool
verl_Test/verl/tools/base_tool.py:41
↓ 23 callers
Method
from_dict
Create a DataProto from a dict of tensors. This assumes that 1. All the tensor in tensors have the same dim0 2. Only dim0 is the batch
verl_Test/verl/protocol.py:346
↓ 23 callers
Method
log
(self, data, step, backend=None)
verl_Test/verl/utils/tracking.py:127
↓ 23 callers
Method
log
(self, data, step, backend=None)
verl_FlowRL/verl/utils/tracking.py:127
↓ 23 callers
Function
offload_fsdp_model_to_cpu
(model: FSDP, empty_cache: bool = True)
verl_Test/verl/utils/fsdp_utils.py:130
↓ 23 callers
Function
offload_fsdp_model_to_cpu
(model: FSDP, empty_cache: bool = True)
verl_FlowRL/verl/utils/fsdp_utils.py:130
↓ 23 callers
Method
search
(self, query: str, num: int = None, return_score: bool = False)
verl_Test/examples/sglang_multiturn/search_r1_like/local_dense_retriever/retrieval_server.py:131
↓ 22 callers
Method
run
(self, config)
verl_FlowRL/recipe/spin/main_spin.py:44
↓ 21 callers
Function
gather_seq_scatter_heads
A func to sync embedding input with alltoall in sequence parallel gather sequence dimension and scatter head dim: e.g. seq_dim: 1, head_d
verl_Test/verl/utils/ulysses.py:62
↓ 21 callers
Function
gather_seq_scatter_heads
A func to sync embedding input with alltoall in sequence parallel gather sequence dimension and scatter head dim: e.g. seq_dim: 1, head_d
verl_FlowRL/verl/utils/ulysses.py:62
↓ 21 callers
Method
repeat
Repeat the batch data a specified number of times. Args: repeat_times (int): Number of times to repeat the data.
verl_FlowRL/verl/protocol.py:720
↓ 19 callers
Method
encode
Converts a string to a sequence of ids (integer), using the tokenizer and vocabulary. Args: text (`str`, `List[str]` or
verl_FlowRL/verl/workers/rollout/tokenizer.py:74
↓ 18 callers
Method
backward
(ctx: Any, grad_output: Tensor)
verl_FlowRL/verl/utils/ulysses.py:224
↓ 18 callers
Function
copy
r"""Works like shutil.copy() for file, and shutil.copytree for dir, and supports hdfs. Copy data and mode bits ("cp src dst"). Return the file's
verl_Test/verl/utils/hdfs_io.py:84
↓ 18 callers
Function
copy
r"""Works like shutil.copy() for file, and shutil.copytree for dir, and supports hdfs. Copy data and mode bits ("cp src dst"). Return the file's
verl_FlowRL/verl/utils/hdfs_io.py:84
↓ 18 callers
Method
encode
Converts a string to a sequence of ids (integer), using the tokenizer and vocabulary. Args: text (`str`, `List[str]` or
verl_Test/verl/workers/rollout/tokenizer.py:74
↓ 18 callers
Method
get
(self)
verl_Test/verl/utils/rendezvous/ray_backend.py:28
↓ 18 callers
Method
get
(self)
verl_FlowRL/verl/utils/rendezvous/ray_backend.py:28
↓ 18 callers
Function
load_fsdp_model_to_gpu
(model: FSDP)
verl_Test/verl/utils/fsdp_utils.py:161
↓ 18 callers
Function
load_fsdp_model_to_gpu
(model: FSDP)
verl_FlowRL/verl/utils/fsdp_utils.py:161
↓ 18 callers
Function
rearrange_micro_batches
Split a batch into micro-batches by total token count, with optional DP sync and padding. Args: batch (TensorDict): must include "at
verl_FlowRL/verl/utils/seqlen_balancing.py:229
↓ 18 callers
Method
register
(cls, name: str)
verl_FlowRL/verl/utils/py_functional.py:248
↓ 18 callers
Method
repeat
Repeat the batch data a specified number of times. Args: repeat_times (int): Number of times to repeat the data.
verl_Test/verl/protocol.py:720
↓ 18 callers
Method
search
(self, query: str, num: int = None, return_score: bool = False)
verl_FlowRL/examples/sglang_multiturn/search_r1_like/local_dense_retriever/retrieval_server.py:131
↓ 17 callers
Method
execute_all_sync
Execute a method on all workers synchronously. Args: method_name: Name of the method to execute *args: Positional arg
verl_FlowRL/verl/single_controller/ray/base.py:553
↓ 17 callers
Function
makedirs
r"""Works like os.makedirs() but supports hdfs. Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except tha
verl_Test/verl/utils/hdfs_io.py:50
↓ 17 callers
Method
postprocess_data
(self, data: DataProto)
verl_Test/verl/workers/sharding_manager/base.py:31
↓ 17 callers
Method
postprocess_data
(self, data: DataProto)
verl_FlowRL/verl/workers/sharding_manager/base.py:31
↓ 16 callers
Function
convert_config
(hf_config: PretrainedConfig, megatron_config)
verl_Test/verl/utils/megatron_utils.py:159
↓ 16 callers
Function
convert_config
(hf_config: PretrainedConfig, megatron_config)
verl_FlowRL/verl/utils/megatron_utils.py:159
↓ 16 callers
Method
generate_sequences
Generate sequences
verl_Test/verl/workers/rollout/base.py:33
↓ 16 callers
Method
generate_sequences
Generate sequences
verl_FlowRL/verl/workers/rollout/base.py:33
↓ 16 callers
Function
makedirs
r"""Works like os.makedirs() but supports hdfs. Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except tha
verl_FlowRL/verl/utils/hdfs_io.py:50
↓ 16 callers
Function
pad_sequence_to_length
pad a 2D tensors (e.g. responses, logprobs) in the last dim to max_seq_length. input shape: [bs, seq_length] output shape: [bs, max_seq_l
verl_Test/verl/utils/torch_functional.py:280
↓ 16 callers
Method
preprocess_data
(self, data: DataProto)
verl_Test/verl/workers/sharding_manager/base.py:28
↓ 16 callers
Method
preprocess_data
(self, data: DataProto)
verl_FlowRL/verl/workers/sharding_manager/base.py:28
↓ 16 callers
Function
rearrange_micro_batches
Split a batch into micro-batches by total token count, with optional DP sync and padding. Args: batch (TensorDict): must include "at
verl_Test/verl/utils/seqlen_balancing.py:229
↓ 16 callers
Method
register
(cls, name: str)
verl_Test/verl/utils/py_functional.py:248
↓ 16 callers
Method
to_dtype
(precision)
verl_Test/verl/utils/torch_dtypes.py:63
↓ 16 callers
Method
to_dtype
(precision)
verl_FlowRL/verl/utils/torch_dtypes.py:63
↓ 16 callers
Function
truncatefn
(s, length=300)
verl_Test/rllm/rewards/code_utils/livecodebench.py:37
↓ 16 callers
Function
truncatefn
(s, length=300)
verl_FlowRL/rllm/rewards/code_utils/livecodebench.py:37
↓ 15 callers
Method
all_gather
(self)
verl_FlowRL/tests/ray_gpu/test_worker_group_torch.py:39
↓ 15 callers
Function
check_correctness
Check correctness of code generation with a global timeout. The global timeout is to catch some extreme/rare cases not handled by the timeouts
verl_FlowRL/verl/utils/reward_score/prime_code/utils.py:41
↓ 15 callers
Function
compute_position_id_with_mask
(mask)
verl_FlowRL/verl/utils/model.py:204
↓ 15 callers
Function
fsdp_version
(model)
verl_Test/verl/utils/fsdp_utils.py:378
↓ 15 callers
Function
fsdp_version
(model)
verl_FlowRL/verl/utils/fsdp_utils.py:378
↓ 15 callers
Method
named_parameters
(self)
verl_FlowRL/verl/utils/memory_buffer.py:205
next →
1–100 of 4,141, ranked by callers