MCPcopy Create free account

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

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

↓ 4 callersFunction_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl_Test/verl/models/mcore/saver.py:168
↓ 4 callersFunction_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl_Test/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:158
↓ 4 callersFunction_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl_FlowRL/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:158
↓ 4 callersFunction_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl_FlowRL/verl/models/mcore/saver.py:168
↓ 4 callersFunction_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl_FlowRL/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:158
↓ 4 callersMethod_build_rollout
(self, trust_remote_code=False)
verl_Test/verl/workers/fsdp_workers.py:389
↓ 4 callersMethod_build_rollout
(self, trust_remote_code=False)
verl_FlowRL/verl/workers/fsdp_workers.py:413
↓ 4 callersFunction_check_dispatch_mode
(dispatch_mode)
verl_FlowRL/verl/single_controller/base/decorator.py:478
↓ 4 callersMethod_compute_loss_and_backward
Compute loss with optional sequence parallelism and remove padding features
verl_FlowRL/verl/trainer/fsdp_sft_trainer.py:303
↓ 4 callersFunction_compute_response_info
Computes information about prompts and responses from a batch. This is an internal helper function that extracts masks and lengths for p
verl_Test/verl/trainer/ppo/metric_utils.py:49
↓ 4 callersFunction_compute_response_info
Computes information about prompts and responses from a batch. This is an internal helper function that extracts masks and lengths for p
verl_FlowRL/verl/trainer/ppo/metric_utils.py:49
↓ 4 callersMethod_dump_generations
Dump rollout/validation samples as JSONL.
verl_Test/verl/trainer/ppo/ray_trainer.py:586
↓ 4 callersMethod_dump_generations
Dump rollout/validation samples as JSONL.
verl_FlowRL/verl/trainer/ppo/ray_trainer.py:586
↓ 4 callersFunction_get_cpu_tensor
(tensor: torch.Tensor)
verl_Test/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:112
↓ 4 callersFunction_get_cpu_tensor
(tensor: torch.Tensor)
verl_Test/verl/models/mcore/saver.py:122
↓ 4 callersFunction_get_cpu_tensor
(tensor: torch.Tensor)
verl_Test/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:112
↓ 4 callersFunction_get_cpu_tensor
(tensor: torch.Tensor)
verl_FlowRL/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:112
↓ 4 callersFunction_get_cpu_tensor
(tensor: torch.Tensor)
verl_FlowRL/verl/models/mcore/saver.py:122
↓ 4 callersFunction_get_cpu_tensor
(tensor: torch.Tensor)
verl_FlowRL/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:112
↓ 4 callersFunction_get_gpt_model
(model)
verl_Test/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:60
↓ 4 callersFunction_get_gpt_model
(model)
verl_Test/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:60
↓ 4 callersFunction_get_gpt_model
(model)
verl_Test/verl/models/mcore/loader.py:63
↓ 4 callersFunction_get_gpt_model
(model)
verl_Test/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:62
↓ 4 callersFunction_get_gpt_model
(model)
verl_Test/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:62
↓ 4 callersFunction_get_gpt_model
(model)
verl_FlowRL/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:60
↓ 4 callersFunction_get_gpt_model
(model)
verl_FlowRL/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:60
↓ 4 callersFunction_get_gpt_model
(model)
verl_FlowRL/verl/models/mcore/loader.py:63
↓ 4 callersFunction_get_gpt_model
(model)
verl_FlowRL/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:62
↓ 4 callersFunction_get_gpt_model
(model)
verl_FlowRL/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:62
↓ 4 callersFunction_is_non_local
(path: str)
verl_Test/verl/utils/hdfs_io.py:148
↓ 4 callersFunction_is_non_local
(path: str)
verl_FlowRL/verl/utils/hdfs_io.py:148
↓ 4 callersFunction_iter_opts
(opt)
verl_Test/verl/utils/megatron_utils.py:312
↓ 4 callersFunction_iter_opts
(opt)
verl_FlowRL/verl/utils/megatron_utils.py:312
↓ 4 callersMethod_load_checkpoint
(self)
verl_Test/recipe/spin/spin_trainer.py:849
↓ 4 callersMethod_load_checkpoint
(self)
verl_FlowRL/recipe/spin/spin_trainer.py:849
↓ 4 callersFunction_normalize
Normalize answer expressions.
verl_Test/recipe/entropy_math/__init__.py:783
↓ 4 callersFunction_repeat_interleave
(value: Union[torch.Tensor, np.ndarray], repeats: int)
verl_Test/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:70
↓ 4 callersFunction_repeat_interleave
(value: Union[torch.Tensor, np.ndarray], repeats: int)
verl_FlowRL/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:70
↓ 4 callersMethodadd_assistant_message
Currently, we only support chatml format.
verl_Test/verl/workers/rollout/schemas.py:115
↓ 4 callersMethodadd_assistant_message
Currently, we only support chatml format.
verl_FlowRL/verl/workers/rollout/schemas.py:115
↓ 4 callersFunctionapply_fsdp2
model: AutoModelForCausalLM
verl_Test/verl/utils/fsdp_utils.py:425
↓ 4 callersFunctionapply_kl_penalty
Apply KL penalty to the token-level rewards. This function computes the KL divergence between the reference policy and current policy, then a
verl_Test/verl/trainer/ppo/ray_trainer.py:148
↓ 4 callersFunctionapply_kl_penalty
Apply KL penalty to the token-level rewards. This function computes the KL divergence between the reference policy and current policy, then a
verl_FlowRL/verl/trainer/ppo/ray_trainer.py:148
↓ 4 callersFunctionbootstrap_metric
Performs bootstrap resampling to estimate statistics of metrics. This function uses bootstrap resampling to estimate the mean and standard d
verl_FlowRL/verl/trainer/ppo/metric_utils.py:246
↓ 4 callersFunctionbroadcast_pyobj
from https://github.com/sgl-project/sglang/blob/844e2f227ab0cce6ef818a719170ce37b9eb1e1b/python/sglang/srt/utils.py#L905 Broadcast inputs from sr
verl_Test/verl/workers/rollout/sglang_rollout/utils.py:24
↓ 4 callersFunctioncheck_correctness
Check if generated code passes all test cases within a timeout period. Args: tests: Test cases in either list of dictionaries or dic
verl_Test/rllm/rewards/code_reward.py:71
↓ 4 callersFunctioncheck_correctness
Check if generated code passes all test cases within a timeout period. Args: tests: Test cases in either list of dictionaries or dic
verl_FlowRL/rllm/rewards/code_reward.py:71
↓ 4 callersFunctioncompute_data_metrics
Computes various metrics from a batch of data for PPO training. This function calculates metrics related to scores, rewards, advantages, ret
verl_FlowRL/verl/trainer/ppo/metric_utils.py:79
↓ 4 callersFunctioncompute_reward
We compute dense reward here so that we can directly train RL without SFT
verl_FlowRL/tests/e2e/envs/digit_completion/task.py:135
↓ 4 callersMethodcompute_rm_score
(self, data: DataProto)
verl_Test/recipe/spin/fsdp_workers.py:508
↓ 4 callersMethodcompute_rm_score
(self, data: DataProto)
verl_FlowRL/recipe/spin/fsdp_workers.py:508
↓ 4 callersFunctioncompute_timing_metrics
Computes timing metrics for different processing stages in PPO training. This function calculates both raw timing metrics (in seconds) a
verl_FlowRL/verl/trainer/ppo/metric_utils.py:171
↓ 4 callersMethodcompute_values
(self, data: DataProto)
verl_Test/verl/workers/fsdp_workers.py:1040
↓ 4 callersMethodcompute_values
(self, data: DataProto)
verl_FlowRL/verl/workers/fsdp_workers.py:1064
↓ 4 callersFunctioncreate_colocated_worker_cls
This function should return a class instance that delegates the calls to every cls in cls_dict
verl_FlowRL/verl/single_controller/ray/base.py:684
↓ 4 callersFunctioncreate_sft_dataset
Create a dataset.
verl_FlowRL/verl/trainer/fsdp_sft_trainer.py:586
↓ 4 callersFunctiondefault_compute_score
Compute the score for a given solution based on the data source. Args: data_source (str): The source dataset identifier which determines
verl_FlowRL/verl/utils/reward_score/__init__.py:21
↓ 4 callersMethodestimate_flops
Estimate the FLOPS based on the number of valid tokens in the current batch and the time taken. Args: batch_seqlens (Lis
verl_Test/verl/utils/flops_counter.py:199
↓ 4 callersMethodexecute_rank_zero_async
Execute a method on rank zero worker asynchronously. Args: method_name: Name of the method to execute *args: Position
verl_Test/verl/single_controller/ray/base.py:514
↓ 4 callersMethodexecute_rank_zero_async
Execute a method on rank zero worker asynchronously. Args: method_name: Name of the method to execute *args: Position
verl_FlowRL/verl/single_controller/ray/base.py:514
↓ 4 callersFunctionextract_answer
(passage: str)
verl_Test/rllm/rewards/math_utils/utils.py:478
↓ 4 callersFunctionextract_answer
(passage: str)
verl_FlowRL/rllm/rewards/math_utils/utils.py:478
↓ 4 callersMethodfrom_string
(module_name_for_code_eval, s)
verl_Test/rllm/rewards/code_utils/pyext2.py:266
↓ 4 callersMethodfrom_string
(module_name_for_code_eval, s)
verl_FlowRL/rllm/rewards/code_utils/pyext2.py:266
↓ 4 callersFunctionfsdp2_load_full_state_dict
Loads the full state dict (could be only on rank 0) into the sharded model. This is done by broadcasting the parameters from rank 0 to all ot
verl_Test/verl/utils/fsdp_utils.py:394
↓ 4 callersFunctionfsdp2_load_full_state_dict
Loads the full state dict (could be only on rank 0) into the sharded model. This is done by broadcasting the parameters from rank 0 to all ot
verl_FlowRL/verl/utils/fsdp_utils.py:394
↓ 4 callersFunctionget_constant_schedule_with_warmup
Create a constant LR schedule with a linear warmup phase. Args: optimizer (Optimizer): Wrapped optimizer. num_warmup_steps (
verl_FlowRL/verl/utils/torch_functional.py:505
↓ 4 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_FlowRL/verl/utils/torch_functional.py:461
↓ 4 callersMethodget_placement_groups
(self, strategy="STRICT_PACK", name=None, device_name="cuda")
verl_Test/verl/single_controller/ray/base.py:101
↓ 4 callersFunctionget_predefined_dispatch_fn
(dispatch_mode)
verl_FlowRL/verl/single_controller/base/decorator.py:443
↓ 4 callersFunctionget_ray_version_remote
(host: str)
verl_Test/ray_cluster.py:96
↓ 4 callersMethodget_resource_pool
Get the resource pool of the worker_cls
verl_Test/recipe/spin/spin_trainer.py:97
↓ 4 callersMethodget_resource_pool
Get the resource pool of the worker_cls
verl_Test/verl/trainer/ppo/ray_trainer.py:116
↓ 4 callersMethodget_resource_pool
Get the resource pool of the worker_cls
verl_FlowRL/verl/trainer/ppo/ray_trainer.py:116
↓ 4 callersMethodget_state
(self)
verl_FlowRL/tests/e2e/envs/digit_completion/task.py:59
↓ 4 callersFunctionget_supported_model
(model_type: str)
verl_Test/verl/models/mcore/registry.py:121
↓ 4 callersFunctionget_supported_model
(model_type: str)
verl_FlowRL/verl/models/mcore/registry.py:121
↓ 4 callersMethodget_vocab
(self)
verl_FlowRL/tests/e2e/envs/digit_completion/tokenizer.py:86
↓ 4 callersFunctioninit_execution_pool
(num_workers: int, enable_global_rate_limit=True, rate_limit=10, mode: PoolMode = PoolMode.ThreadMode)
verl_FlowRL/verl/tools/sandbox_fusion_tools.py:88
↓ 4 callersFunctioninit_mcore_model
Initialize a Mcore model. Args: tfconfig: The transformer config. hf_config: The HuggingFace config. pre_process: Op
verl_Test/verl/models/mcore/registry.py:135
↓ 4 callersFunctioninit_mcore_model
Initialize a Mcore model. Args: tfconfig: The transformer config. hf_config: The HuggingFace config. pre_process: Op
verl_FlowRL/verl/models/mcore/registry.py:135
↓ 4 callersMethodinit_model
(self)
verl_Test/recipe/spin/fsdp_workers.py:369
↓ 4 callersMethodinit_model
(self)
verl_FlowRL/recipe/spin/fsdp_workers.py:369
↓ 4 callersMethodinit_workers
Init resource pool and worker group
verl_Test/recipe/spin/spin_trainer.py:730
↓ 4 callersMethodinit_workers
Init resource pool and worker group
verl_FlowRL/recipe/spin/spin_trainer.py:730
↓ 4 callersMethodinitialize
(self, **kwargs)
verl_Test/verl/models/mcore/model_initializer.py:131
↓ 4 callersMethodinitialize
(self, **kwargs)
verl_FlowRL/verl/models/mcore/model_initializer.py:131
↓ 4 callersFunctionis_digit
(s)
verl_Test/recipe/entropy_math/grader.py:109
↓ 4 callersFunctionis_digit
(s)
verl_Test/verl/utils/reward_score/prime_math/grader.py:110
↓ 4 callersFunctionis_digit
(s)
verl_FlowRL/verl/utils/reward_score/prime_math/grader.py:110
↓ 4 callersFunctionlast_boxed_only_string
Extract the last LaTeX boxed expression from a string. Args: string: Input string containing LaTeX code Returns: The last bo
verl_Test/recipe/r1/tasks/math_dapo.py:21
↓ 4 callersFunctionlatex_eval
(latex)
verl_Test/recipe/entropy_math/__init__.py:536
↓ 4 callersFunctionload_fsdp_optimizer
(optimizer, device_id)
verl_Test/verl/utils/fsdp_utils.py:200
↓ 4 callersFunctionload_fsdp_optimizer
(optimizer, device_id)
verl_FlowRL/verl/utils/fsdp_utils.py:200
↓ 4 callersFunctionload_mcore_dist_weights
(parallel_model, dist_weight_path, is_value_model=False)
verl_Test/verl/utils/model.py:398
↓ 4 callersFunctionload_mcore_dist_weights
(parallel_model, dist_weight_path, is_value_model=False)
verl_FlowRL/verl/utils/model.py:398
↓ 4 callersFunctionload_megatron_gptmodel_weights
Load weights for mcore GPT model.
verl_Test/verl/utils/model.py:348
↓ 4 callersFunctionload_megatron_gptmodel_weights
Load weights for mcore GPT model.
verl_FlowRL/verl/utils/model.py:348
↓ 4 callersMethodmake_iterator
r"""Make an iterator from the DataProto. This is built upon that TensorDict can be used as a normal Pytorch dataset. See https://pytorch.org/t
verl_FlowRL/verl/protocol.py:593
↓ 4 callersFunctionmathd_normalize_answer
(answer: Optional[str])
verl_Test/recipe/entropy_math/__init__.py:67
← previousnext →301–400 of 4,141, ranked by callers