MCPcopy Create free account

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

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

↓ 377 callersMethodget
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 callersMethodget
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 callersMethodget_rank
(self)
verl_FlowRL/tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:406
↓ 214 callersMethodto
move the batch to device Args: device (torch.device, str): torch device Returns: DataProto: the current Data
verl_FlowRL/verl/protocol.py:385
↓ 194 callersMethodto
move the batch to device Args: device (torch.device, str): torch device Returns: DataProto: the current Data
verl_Test/verl/protocol.py:385
↓ 189 callersMethodget
(self)
verl_FlowRL/verl/protocol.py:877
↓ 177 callersMethodget
(self)
verl_Test/verl/protocol.py:877
↓ 85 callersFunctionlog_gpu_memory_usage
(head: str, logger: logging.Logger = None, level=logging.DEBUG, rank: int = 0)
verl_FlowRL/verl/utils/debug/performance.py:49
↓ 84 callersFunctionprint_rank_0
If distributed is initialized, print only on rank 0.
verl_Test/verl/utils/megatron_utils.py:422
↓ 84 callersFunctionprint_rank_0
If distributed is initialized, print only on rank 0.
verl_FlowRL/verl/utils/megatron_utils.py:422
↓ 83 callersMethodfrom_pretrained
(cls, save_directory: Union[str, os.PathLike], **kwargs)
verl_FlowRL/tests/e2e/envs/digit_completion/tokenizer.py:149
↓ 78 callersFunctionlog_gpu_memory_usage
(head: str, logger: logging.Logger = None, level=logging.DEBUG, rank: int = 0)
verl_Test/verl/utils/debug/performance.py:49
↓ 71 callersMethodgetenv
(self, key)
verl_FlowRL/tests/ray_cpu/test_ray_local_envs.py:31
↓ 69 callersMethodpop
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 callersMethodpop
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 callersMethodsub
(self, x)
verl_FlowRL/tests/ray_cpu/test_fused_workers.py:40
↓ 63 callersMethodinit
(self)
verl_FlowRL/tests/ray_gpu/test_rvdz.py:26
↓ 61 callersFunction_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 callersFunction_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 callersMethodupdate
(self, current_kl, n_steps)
verl_Test/recipe/spin/core_algos.py:46
↓ 60 callersMethodupdate
(self, current_kl, n_steps)
verl_FlowRL/recipe/spin/core_algos.py:46
↓ 58 callersMethodchunk
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 callersMethodfrom_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 callersMethodchunk
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 callersFunctionget_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 callersFunctionget_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 callersMethoddecode
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 callersMethodsleep
Sleep engine to offload model weights and discard kv cache.
verl_FlowRL/verl/workers/rollout/async_server.py:103
↓ 40 callersFunctionload_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 callersFunctioncopy_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 callersFunctioncopy_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 callersMethodget
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 callersMethodget
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 callersMethodsave_pretrained
(self, save_directory: Union[str, os.PathLike], **kwargs)
verl_FlowRL/tests/e2e/envs/digit_completion/tokenizer.py:142
↓ 38 callersMethodupdate
(self, current_kl, n_steps)
verl_Test/verl/trainer/ppo/core_algos.py:53
↓ 38 callersMethodupdate
(self, current_kl, n_steps)
verl_FlowRL/verl/trainer/ppo/core_algos.py:53
↓ 36 callersMethodunion
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 callersMethodunion
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 callersMethodselect
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 callersMethoddecode
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 callersMethodselect
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 callersMethodcreate
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 callersFunctionhf_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 callersMethodconcat
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 callersMethodconcat
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 callersMethodsleep
Sleep engine to offload model weights and discard kv cache.
verl_Test/verl/workers/rollout/async_server.py:103
↓ 27 callersMethodstep
(self)
verl_FlowRL/verl/utils/debug/profile.py:66
↓ 26 callersMethodvalues
(cls)
verl_Test/verl/utils/py_functional.py:223
↓ 26 callersMethodvalues
(cls)
verl_FlowRL/verl/utils/py_functional.py:223
↓ 25 callersFunctionpad_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 callersMethodrun
(self, config)
verl_Test/recipe/spin/main_spin.py:44
↓ 24 callersFunctionhf_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 callersMethodcreate
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 callersMethodfrom_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 callersMethodlog
(self, data, step, backend=None)
verl_Test/verl/utils/tracking.py:127
↓ 23 callersMethodlog
(self, data, step, backend=None)
verl_FlowRL/verl/utils/tracking.py:127
↓ 23 callersFunctionoffload_fsdp_model_to_cpu
(model: FSDP, empty_cache: bool = True)
verl_Test/verl/utils/fsdp_utils.py:130
↓ 23 callersFunctionoffload_fsdp_model_to_cpu
(model: FSDP, empty_cache: bool = True)
verl_FlowRL/verl/utils/fsdp_utils.py:130
↓ 23 callersMethodsearch
(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 callersMethodrun
(self, config)
verl_FlowRL/recipe/spin/main_spin.py:44
↓ 21 callersFunctiongather_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 callersFunctiongather_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 callersMethodrepeat
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 callersMethodencode
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 callersMethodbackward
(ctx: Any, grad_output: Tensor)
verl_FlowRL/verl/utils/ulysses.py:224
↓ 18 callersFunctioncopy
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 callersFunctioncopy
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 callersMethodencode
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 callersMethodget
(self)
verl_Test/verl/utils/rendezvous/ray_backend.py:28
↓ 18 callersMethodget
(self)
verl_FlowRL/verl/utils/rendezvous/ray_backend.py:28
↓ 18 callersFunctionload_fsdp_model_to_gpu
(model: FSDP)
verl_Test/verl/utils/fsdp_utils.py:161
↓ 18 callersFunctionload_fsdp_model_to_gpu
(model: FSDP)
verl_FlowRL/verl/utils/fsdp_utils.py:161
↓ 18 callersFunctionrearrange_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 callersMethodregister
(cls, name: str)
verl_FlowRL/verl/utils/py_functional.py:248
↓ 18 callersMethodrepeat
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 callersMethodsearch
(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 callersMethodexecute_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 callersFunctionmakedirs
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 callersMethodpostprocess_data
(self, data: DataProto)
verl_Test/verl/workers/sharding_manager/base.py:31
↓ 17 callersMethodpostprocess_data
(self, data: DataProto)
verl_FlowRL/verl/workers/sharding_manager/base.py:31
↓ 16 callersFunctionconvert_config
(hf_config: PretrainedConfig, megatron_config)
verl_Test/verl/utils/megatron_utils.py:159
↓ 16 callersFunctionconvert_config
(hf_config: PretrainedConfig, megatron_config)
verl_FlowRL/verl/utils/megatron_utils.py:159
↓ 16 callersMethodgenerate_sequences
Generate sequences
verl_Test/verl/workers/rollout/base.py:33
↓ 16 callersMethodgenerate_sequences
Generate sequences
verl_FlowRL/verl/workers/rollout/base.py:33
↓ 16 callersFunctionmakedirs
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 callersFunctionpad_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 callersMethodpreprocess_data
(self, data: DataProto)
verl_Test/verl/workers/sharding_manager/base.py:28
↓ 16 callersMethodpreprocess_data
(self, data: DataProto)
verl_FlowRL/verl/workers/sharding_manager/base.py:28
↓ 16 callersFunctionrearrange_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 callersMethodregister
(cls, name: str)
verl_Test/verl/utils/py_functional.py:248
↓ 16 callersMethodto_dtype
(precision)
verl_Test/verl/utils/torch_dtypes.py:63
↓ 16 callersMethodto_dtype
(precision)
verl_FlowRL/verl/utils/torch_dtypes.py:63
↓ 16 callersFunctiontruncatefn
(s, length=300)
verl_Test/rllm/rewards/code_utils/livecodebench.py:37
↓ 16 callersFunctiontruncatefn
(s, length=300)
verl_FlowRL/rllm/rewards/code_utils/livecodebench.py:37
↓ 15 callersMethodall_gather
(self)
verl_FlowRL/tests/ray_gpu/test_worker_group_torch.py:39
↓ 15 callersFunctioncheck_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 callersFunctioncompute_position_id_with_mask
(mask)
verl_FlowRL/verl/utils/model.py:204
↓ 15 callersFunctionfsdp_version
(model)
verl_Test/verl/utils/fsdp_utils.py:378
↓ 15 callersFunctionfsdp_version
(model)
verl_FlowRL/verl/utils/fsdp_utils.py:378
↓ 15 callersMethodnamed_parameters
(self)
verl_FlowRL/verl/utils/memory_buffer.py:205
next →1–100 of 4,141, ranked by callers