Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AMAP-ML/Thinking-with-Map
/ functions
Functions
4,735 in github.com/AMAP-ML/Thinking-with-Map
⨍
Functions
4,735
◇
Types & classes
687
↳
Endpoints
185
Function
compute_policy_loss_gpg
Adapted from https://github.com/AMAP-ML/GPG/blob/main/VisualThinker-R1-Zero/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py#L495 Ar
verl/verl/trainer/ppo/core_algos.py:1120
Function
compute_policy_loss_gspo
Compute the clipped policy objective and related metrics for GSPO. See https://arxiv.org/pdf/2507.18071 for more details. Args:
verl/verl/trainer/ppo/core_algos.py:1044
Function
compute_policy_loss_kl_cov
Compute the clipped policy objective and related metrics for Clip-Cov. Adapted from https://github.com/PRIME-RL/Entropy-Mechanism-of-RL/
verl/verl/trainer/ppo/core_algos.py:1261
Function
compute_policy_loss_rollout_correction_wrapper
Wrapper for compute_policy_loss_with_rollout_correction to match PolicyLossFn interface. This function is used when algorithm.rollout_correction.
verl/verl/trainer/ppo/core_algos.py:1770
Function
compute_position_id_with_mask
(mask)
verl/tests/special_e2e/envs/digit_completion/task.py:115
Method
compute_ref_log_prob
(self, data: DataProto)
verl/verl/workers/megatron_workers.py:803
Method
compute_ref_log_prob
(self, data: DataProto)
verl/verl/workers/engine_workers.py:121
Function
compute_reinforce_plus_plus_baseline_outcome_advantage
Compute advantage for RF++-baseline (https://arxiv.org/abs/2501.03262), operating only on Outcome reward (with only one scalar reward for eac
verl/verl/trainer/ppo/core_algos.py:467
Function
compute_reinforce_plus_plus_outcome_advantage
Compute advantage for REINFORCE++. This implementation is based on the paper: https://arxiv.org/abs/2501.03262 Args: token_level
verl/verl/trainer/ppo/core_algos.py:625
Function
compute_remax_outcome_advantage
Compute advantage for ReMax, operating only on Outcome reward This implementation is based on the paper: https://arxiv.org/abs/2310.10505
verl/verl/trainer/ppo/core_algos.py:664
Method
compute_reward
(self, data: DataProto)
verl/verl/workers/reward_model/megatron/reward_model.py:132
Function
compute_reward_async
Load the reward manager and compute the reward for a batch of data. This is meant to be run in a separate Ray worker.
verl/recipe/entropy/reward.py:80
Function
compute_reward_async
Load the reward manager and compute the reward for a batch of data. This is meant to be run in a separate Ray worker.
verl/verl/trainer/ppo/reward.py:212
Function
compute_rewards
Compute token-level rewards with KL penalty. Args: token_level_scores (torch.Tensor): Token-level reward scores. old_log_prob (to
verl/verl/trainer/ppo/core_algos.py:800
Function
compute_rloo_advantage_return
(data: verl.DataProto, response_mask: torch.Tensor, n_samples, config)
verl/recipe/prime/prime_core_algos.py:21
Method
compute_rm_score
(self, data: DataProto)
verl/recipe/prime/prime_fsdp_workers.py:273
Method
compute_rm_score
(self, data: DataProto)
verl/verl/workers/megatron_workers.py:1410
Function
compute_score
(data_source, messages, ground_truth, extra_info, **kwargs)
verl/recipe/collabllm/metrics/bleu_score.py:67
Function
compute_score
(data_source, messages, ground_truth, extra_info, **kwargs)
verl/recipe/collabllm/metrics/interactivity.py:61
Function
compute_score
(data_source, messages, ground_truth, extra_info, **kwargs)
verl/recipe/collabllm/metrics/accuracy.py:53
Function
compute_score
(data_source, messages, ground_truth, extra_info, **kwargs)
verl/recipe/collabllm/metrics/token_amount.py:17
Function
compute_score
(data_source, messages, ground_truth, extra_info, **kwargs)
verl/recipe/collabllm/metrics/pass_rate.py:73
Function
compute_score
(completion, test_cases)
verl/recipe/r1/tasks/livecodebench.py:55
Function
compute_score
(solution_str, ground_truth)
verl/recipe/r1/tasks/gpqa.py:21
Function
compute_score
(data_source, solution_str, ground_truth, extra_info)
verl/recipe/genrm_remote/reward_function.py:80
Function
compute_score
(model_response, gt_answer, fast=False)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:1027
Function
compute_score
(data_source, solution_str, ground_truth, extra_info=None)
verl/recipe/r1_ascend/deepscaler.py:20
Function
compute_score
The scoring function for GSM8k. Reference: Trung, Luong, et al. "Reft: Reasoning with reinforced fine-tuning." Proceedings of the 62nd Annual
verl/verl/utils/reward_score/gsm8k.py:52
Function
compute_score
The scoring function for exact match (EM). Args: solution_str: the solution text ground_truth: the ground truth meth
verl/verl/utils/reward_score/search_r1_like_qa_em.py:96
Function
compute_score
(model_output: str, ground_truth: str, timeout_score: float = 0)
verl/verl/utils/reward_score/math_verify.py:23
Function
compute_score
Compute the reward score for a solution. Args: solution_str: The solution string ground_truth: The ground truth answer st
verl/verl/utils/reward_score/math_dapo.py:242
Function
compute_score
(solution_str, ground_truth)
verl/verl/utils/reward_score/math_reward.py:17
Function
compute_score
Computes the code score using the remote sandbox API. Args: sandbox_fusion_url: The URL of the sandbox_fusion service, eg: "https://
verl/verl/utils/reward_score/sandbox_fusion/__init__.py:28
Function
compute_score
(completion, test_cases, continuous=False)
verl/verl/utils/reward_score/prime_code/__init__.py:21
Function
compute_score
(model_output: str, ground_truth: str)
verl/verl/utils/reward_score/prime_math/__init__.py:389
Function
compute_score_baseline
( solution_str: str, ground_truth: str, **kwargs, )
verl/recipe/fapo/reward_fn_reasoning.py:45
Function
compute_score_batch
(data_sources, solution_strs, ground_truths, extra_infos)
verl/recipe/genrm_remote/reward_function.py:99
Function
compute_score_batched
This is a demonstration of how the batched reward function should look like. Typically, you want to use batched reward to speed up the proces
verl/verl/utils/reward_score/math_batch.py:18
Function
compute_score_data_source
(data_source, response, ground_truth)
verl/recipe/open_math_reasoning/compute_score.py:16
Function
compute_score_fapo
(data_source, solution_str, ground_truth, extra_info, keep_genrm_critics=False, **kwargs)
verl/recipe/fapo/reward_fn_reasoning_remote.py:109
Function
compute_score_fapo
Compute the reward score for FAPO.
verl/recipe/fapo/reward_fn_reasoning.py:97
Function
compute_score_fapo_genrm
( solution_str: str, ground_truth: int, extra_info: dict, **kwargs, )
verl/recipe/fapo/reward_fn_genrm.py:35
Function
compute_score_gsm8k
Compute the reward score.
verl/tests/experimental/reward/reward_fn.py:56
Function
compute_score_subem
The scoring function for substring exact match (EM). Args: solution_str: the solution text ground_truth: the ground truth
verl/verl/utils/reward_score/search_r1_like_qa_em.py:131
Function
compute_token_accuracy
(predicted_token_ids, ground_truth_token_ids, mask)
verl/recipe/vla/models/openvla_oft/train_utils.py:58
Function
compute_transformers_input_shapes
(batches, meta_info)
verl/verl/utils/megatron/pipeline_parallel.py:22
Method
compute_values
(self, data: DataProto)
verl/verl/workers/megatron_workers.py:1169
Method
compute_values
Compute values
verl/verl/workers/critic/base.py:33
Method
compute_values
(self, data: DataProto)
verl/verl/workers/critic/megatron_critic.py:89
Method
compute_values
(self, data: DataProto)
verl/verl/workers/critic/dp_critic.py:153
Method
compute_values
(self, data: DataProto)
verl/verl/workers/roles/critic.py:134
Method
concat
(data: list[ray.ObjectRef])
verl/verl/protocol.py:1200
Method
config_dir
Get the path to the config directory.
verl/tests/workers/config/test_critic_config_on_cpu.py:37
Method
config_with_rollout_is
Create config for policy loss computation. Note: rollout_is config has been moved to algorithm config. This config only needs fields
verl/tests/trainer/ppo/test_rollout_corr_integration.py:45
Function
conversation_level_reward_func
Async version of conversation-level reward function. Apply conversation-level reward function to the future interactions between the user si
verl/recipe/collabllm/reward_function.py:34
Method
convert_ids_to_tokens
Converts a single index or a sequence of indices in a token or a sequence of tokens, using the vocabulary and added tokens.
verl/verl/workers/rollout/tokenizer.py:119
Function
convert_megatron_model_to_transformers_model
Convert megatron model to transformers model.
verl/verl/utils/megatron_utils.py:609
Method
convert_messages_to_dicts
(messages: List[Message])
demo/qwen_agent/llm/qwenvl_oai.py:37
Function
convert_nested_value_to_list_recursive
(data_item)
verl/verl/utils/dataset/multiturn_sft_dataset.py:34
Method
convert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl/verl/models/mcore/weight_converter.py:86
Method
convert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl/verl/models/mcore/weight_converter.py:151
Method
convert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl/verl/models/mcore/weight_converter.py:404
Method
convert_tokens_to_string
(self, tokens)
verl/tests/special_e2e/envs/digit_completion/tokenizer.py:98
Method
convert_tokens_to_string
Converts a sequence of tokens in a single string. The most simple way to do it is `" ".join(tokens)` but we often want to remove sub-
verl/verl/workers/rollout/tokenizer.py:148
Method
create
Create a tool instance. Args: instance_id: The instance id of the tool. Returns: The instance id of th
verl/verl/tools/map_tool.py:241
Method
create
Creates a new instance for image zoom-in tool. This method initializes a new session for an image, which can then be used fo
verl/verl/tools/image_zoom_in_tool_qwen3vl.py:262
Method
create
Create a tool instance. Args: instance_id: The instance id of the tool. Returns: The instance id of the tool
verl/verl/tools/mcp_base_tool.py:46
Method
create
( self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs )
verl/verl/tools/geo3k_tool.py:67
Method
create
Creates a new instance for image zoom-in tool. This method initializes a new session for an image, which can then be used fo
verl/verl/tools/image_zoom_in_tool.py:293
Method
create
( self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs )
verl/verl/tools/sandbox_fusion_tools.py:155
Method
create
( self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs )
verl/verl/tools/gsm8k_tool.py:67
Method
create
Create a tool instance. Args: instance_id: The instance id of the tool. Returns: The instance id of th
verl/verl/tools/search_tool.py:188
Function
create_huggingface_critic
Args: model_name: override_config_kwargs: Returns:
verl/verl/utils/model.py:125
Method
create_transferqueue_client
Create a client for data system (TransferQueue).
verl/verl/experimental/agent_loop/agent_loop.py:637
Method
create_weight_sync_group
(self, master_address, master_port, rank_offset, world_size)
verl/recipe/one_step_off_policy/megatron_workers.py:51
Method
create_weight_sync_group
(self, master_address, master_port, rank_offset, world_size)
verl/recipe/one_step_off_policy/fsdp_workers.py:63
Method
curr_path_dump
(self)
verl/verl/utils/rollout_skip.py:64
Method
custom
(start: int, end: int)
verl/verl/models/mcore/qwen2_5_vl/vision_transformer_block.py:36
Method
custom_forward
(hidden_states, attention_mask, context, context_mask, rotary_pos_emb)
verl/verl/models/mcore/qwen2_5_vl/vision_transformer_block.py:37
Function
d_logits_grid
(meta)
verl/verl/utils/kernel/kernels.py:1486
Function
decorator
(func)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:44
Function
decorator
(func)
verl/tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:137
Function
decorator
(obj)
verl/verl/utils/import_utils.py:127
Function
decorator
(func)
verl/verl/utils/transferqueue_utils.py:152
Function
decorator
(func)
verl/verl/utils/py_functional.py:71
Function
decorator
(func)
verl/verl/utils/profiler/nvtx_profile.py:77
Function
decorator
(func)
verl/verl/utils/profiler/empty_annotations.py:37
Function
decorator
(func)
verl/verl/utils/profiler/profile.py:170
Function
decorator
(func)
verl/verl/utils/profiler/mstx_profile.py:57
Function
decorator
(func)
verl/verl/single_controller/base/decorator.py:444
Function
decorator
(func: PolicyLossFn)
verl/verl/trainer/ppo/core_algos.py:64
Function
decorator
(cls: type[AbstractRewardManager])
verl/verl/workers/reward_manager/registry.py:32
Function
decorator
(subclass: type[AgentLoopBase])
verl/verl/experimental/agent_loop/agent_loop.py:248
Function
decorator
(cls: type[RewardLoopManagerBase])
verl/verl/experimental/reward/reward_loop/registry.py:32
Function
decorator
(cls)
demo/qwen_agent/tools/base.py:46
Function
decorator
(cls)
demo/qwen_agent/llm/base.py:37
Method
decorator
(func)
verl/verl/utils/profiler/nvtx_profile.py:176
Method
decorator
(func)
verl/verl/utils/profiler/profile.py:239
Method
decorator
(func)
verl/verl/utils/profiler/mstx_profile.py:230
Method
decorator
(engine_class)
verl/verl/workers/engine/base.py:229
← previous
next →
3,201–3,300 of 4,735, ranked by callers