MCPcopy Create free account

hub / github.com/AMAP-ML/Thinking-with-Map / functions

Functions4,735 in github.com/AMAP-ML/Thinking-with-Map

↓ 1 callersMethod_save_checkpoint
(self)
verl/recipe/fully_async_policy/fully_async_trainer.py:321
↓ 1 callersMethod_save_checkpoint
(self)
verl/verl/trainer/ppo/ray_trainer.py:795
↓ 1 callersMethod_save_checkpoint
(self)
verl/verl/trainer/ppo/ray_trainer_ts.py:904
↓ 1 callersMethod_search
(self, query: str, num: int, return_score: bool)
verl/examples/sglang_multiturn/search_r1_like/local_dense_retriever/retrieval_server.py:133
↓ 1 callersMethod_search
(self, query: str, num: int = None, return_score: bool = False)
verl/examples/sglang_multiturn/search_r1_like/local_dense_retriever/retrieval_server.py:160
↓ 1 callersMethod_select_agent
(self, messages: List[Message], mentioned_agents_name: List[str] =
demo/qwen_agent/agents/group_chat.py:168
↓ 1 callersMethod_select_best_worker
Select the best worker, simple round-robin load balancing
verl/recipe/fully_async_policy/agent_loop/agent_loop.py:301
↓ 1 callersFunction_select_rm_score_fn
(data_source)
verl/examples/split_placement/main_ppo_split.py:29
↓ 1 callersMethod_select_worker
Select the least-loaded worker (simple round-robin by request count).
verl/verl/experimental/reward/router/naive_router.py:175
↓ 1 callersMethod_setup_env_cuda_visible_devices
(self)
verl/verl/single_controller/base/worker.py:237
↓ 1 callersFunction_sloo_minus_one_sorted
(g_sorted: torch.Tensor, K: int)
verl/verl/trainer/ppo/PKPO.py:78
↓ 1 callersFunction_sorted_apply_1d
(x: torch.Tensor, func)
verl/verl/trainer/ppo/PKPO.py:41
↓ 1 callersMethod_special_metrics_aggergate
calculate special metrics
verl/recipe/fully_async_policy/detach_utils.py:325
↓ 1 callersFunction_split_args_kwargs_data_proto_with_auto_padding
(chunks, *args, **kwargs)
verl/verl/single_controller/base/decorator.py:95
↓ 1 callersMethod_split_tensors
Splits a tensor into multiple tensors based on the name. This is used to handle qkv and gate_up tensors.
verl/verl/model_merger/megatron_model_merger.py:313
↓ 1 callersMethod_start_kernel
(self, kernel_id: str)
demo/qwen_agent/tools/code_interpreter.py:173
↓ 1 callersMethod_start_profiling
Start profiling for all worker groups if profiling is enabled.
verl/verl/trainer/ppo/ray_trainer.py:912
↓ 1 callersMethod_stop_profiling
Stop profiling for all worker groups if profiling is enabled.
verl/verl/trainer/ppo/ray_trainer.py:923
↓ 1 callersFunction_str_to_int
(x: str)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:756
↓ 1 callersFunction_str_to_int
(x: str)
verl/verl/utils/reward_score/prime_math/__init__.py:99
↓ 1 callersMethod_streaming_generation_main
The main entry method for stream processing
verl/recipe/fully_async_policy/fully_async_rollouter.py:528
↓ 1 callersFunction_strip_string
(string)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:220
↓ 1 callersFunction_strip_string
(string)
verl/recipe/entropy/reward_score/entropy_math/math_normalize.py:130
↓ 1 callersFunction_strip_string
(string)
verl/verl/utils/reward_score/prime_math/math_normalize.py:130
↓ 1 callersMethod_submit_worker
Stream submission worker coroutine
verl/recipe/fully_async_policy/unittest/simple_streaming_demo.py:85
↓ 1 callersMethod_switch_chat_template
(self, data: DataProto)
verl/recipe/spin/fsdp_workers.py:476
↓ 1 callersMethod_switch_chat_template
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:1805
↓ 1 callersFunction_sympy_parse
Parses an expression with sympy.
verl/recipe/entropy/reward_score/entropy_math/__init__.py:701
↓ 1 callersFunction_sympy_parse
Parses an expression with sympy.
verl/verl/utils/reward_score/prime_math/__init__.py:44
↓ 1 callersFunction_test
()
demo/qwen_agent/tools/python_executor.py:240
↓ 1 callersMethod_test_state_dict
(self, state_dict: dict[str, torch.Tensor])
verl/scripts/legacy_model_merger.py:404
↓ 1 callersMethod_test_state_dict
Compares the merged Megatron state_dict against a reference safetensors model. Applies necessary name mappings from Megatron to Huggi
verl/scripts/legacy_model_merger.py:683
↓ 1 callersFunction_to_1d_numpy_object_array
Best-effort: convert arbitrary input into a 1-D numpy array; fallback to object dtype.
verl/verl/utils/groupwise.py:77
↓ 1 callersFunction_transform_params_to_json_serializable
(x, convert_list_to_dict: bool)
verl/verl/utils/tracking.py:307
↓ 1 callersFunction_truncate_at_stop_word
(text: str, stop: List[str])
demo/qwen_agent/llm/base.py:592
↓ 1 callersMethod_truncate_dialogue_history
(self, messages: List[Message])
demo/qwen_agent/agents/memo_assistant.py:93
↓ 1 callersFunction_truncate_input_messages_roughly
(messages: List[Message], max_tokens: int)
demo/qwen_agent/llm/base.py:602
↓ 1 callersFunction_truncate_turn
(indexed_messages1: list, message_tokens1: dict, exceedance: int, is_last_turn: bool)
demo/qwen_agent/llm/base.py:645
↓ 1 callersMethod_unpack_kwargs
(self, flat_args, kwarg_keys)
verl/verl/utils/activation_offload.py:446
↓ 1 callersFunction_update_batchmeta_with_output
(output: DataProto, batchmeta: "BatchMeta")
verl/verl/utils/transferqueue_utils.py:127
↓ 1 callersMethod_update_fields_select
Add any unseen *keys* to the field-selection widget so they can be toggled. The viewer is often launched with only the first step loaded. Lat
verl/scripts/rollout_viewer.py:373
↓ 1 callersMethod_update_multi_modal_inputs
Update the multi_modal_inputs of the request in additive manner.
verl/verl/workers/rollout/schemas.py:336
↓ 1 callersMethod_validate_and_convert_tokens
Validate tokenization and convert to tensors. Args: full_tokens: Full conversation tokens concat_tokens: Con
verl/verl/utils/dataset/multiturn_sft_dataset.py:211
↓ 1 callersMethod_validate_bbox
Validate the bounding box dimensions and aspect ratio.
verl/verl/tools/image_zoom_in_tool.py:181
↓ 1 callersMethod_validate_config
(self)
verl/recipe/fully_async_policy/fully_async_rollouter.py:324
↓ 1 callersMethod_validate_config
(self)
verl/verl/trainer/ppo/ray_trainer_ts.py:387
↓ 1 callersMethod_validate_config
Validate config options not implemented for Megatron backend
verl/verl/workers/critic/megatron_critic.py:81
↓ 1 callersMethod_validate_config
Validate config options not implemented for Megatron backend
verl/verl/workers/actor/megatron_actor.py:157
↓ 1 callersMethod_validate_metrics
(self, is_last_step, last_val_metrics, metrics, timing_raw)
verl/recipe/fully_async_policy/ray_trainer.py:493
↓ 1 callersMethod_validate_state_dict
Compares the merged Megatron state_dict against a reference safetensors model. Applies necessary name mappings from Megatron to Huggi
verl/verl/model_merger/megatron_model_merger.py:511
↓ 1 callersMethod_validate_state_dict
(self, state_dict: dict[str, torch.Tensor])
verl/verl/model_merger/fsdp_model_merger.py:229
↓ 1 callersMethod_verify_config
(self, model_hf_config)
verl/verl/workers/rollout/sglang_rollout/sglang_rollout.py:361
↓ 1 callersMethod_verl_discrete_prediction
Run L1 regression-based continuous action prediction or discrete action tokens prediction.
verl/recipe/vla/models/openvla_oft/modeling_prismatic.py:1563
↓ 1 callersMethodabort_request
Abort a specific request or all requests. Args: rid: The request ID to abort. If empty and abort_all is False, no action is taken
verl/verl/workers/rollout/sglang_rollout/sglang_rollout.py:161
↓ 1 callersFunctionacc_reward
(predict_str: str, ground_truth: str, use_boxed: bool = True)
verl/verl/utils/reward_score/geo3k.py:25
↓ 1 callersMethodacquire
(self)
verl/verl/tools/utils/mcp_clients/utils.py:31
↓ 1 callersFunctionacquire_leader_lock
()
verl/tool_server/api_server_redis.py:30
↓ 1 callersMethodaction_next_search
(self)
verl/scripts/rollout_viewer.py:507
↓ 1 callersMethodadd_actor_rollout_worker
Add actor rollout worker based on the actor strategy.
verl/recipe/r1_ascend/main_ppo.py:111
↓ 1 callersMethodadd_actor_rollout_worker
Add actor rollout worker based on the actor strategy.
verl/verl/trainer/main_ppo.py:121
↓ 1 callersFunctionadd_generation_prompt_for_gpt_oss
Add generation prompt for gpt-oss model. Args: message_content: Message content string Returns: Message content string with g
verl/verl/experimental/agent_loop/utils.py:89
↓ 1 callersMethodadd_new_frames
(self, obs, plot_infos)
verl/recipe/vla/envs/isaac_env/isaac_env.py:273
↓ 1 callersMethodadd_new_frames
(self, raw_obs, plot_infos)
verl/recipe/vla/envs/libero_env/libero_env.py:380
↓ 1 callersMethodadd_step_metrics
Adding a single-step metrics
verl/recipe/fully_async_policy/detach_utils.py:229
↓ 1 callersMethodadd_text
(self, _input, _audio_input, _chatbot, _history)
demo/qwen_agent/gui/web_ui.py:218
↓ 1 callersMethodadd_user_message
( self, processing_class: PreTrainedTokenizer | PreTrainedTokenizerFast | ProcessorMixin,
verl/verl/workers/rollout/schemas.py:379
↓ 1 callersFunctionall_gather_tensor
(local_tensor: Tensor, group: Optional[dist.ProcessGroup] = None, async_op: bool = False)
verl/verl/utils/ulysses.py:155
↓ 1 callersFunctionallgather_dict_tensors
TODO: optimize this. - We can use async ops - We can use only one allgather Args: tensors: size: group:
verl/verl/utils/torch_functional.py:266
↓ 1 callersMethodannotate
Decorate a Worker member function to profile the current rank in the current training step. Requires the target function to be a member funct
verl/verl/utils/profiler/nvtx_profile.py:152
↓ 1 callersMethodappend_dataframe
(self, new_dataframe: datasets.Dataset)
verl/verl/experimental/dynamic_dataset/dynamicgen_dataset.py:100
↓ 1 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/verl/trainer/ppo/ray_trainer_ts.py:144
↓ 1 callersMethodapply_mask_with_grad_control
Args: log_probs: (batch_size, 7*8) entropy: (batch_size, 7*8) # mask: (batch_size, 8)
verl/recipe/vla/dp_rob.py:78
↓ 1 callersFunctionapply_patch
()
verl/verl/models/mcore/patch_v012.py:20
↓ 1 callersFunctionapply_rollout_correction
BYPASS MODE: Use rollout_log_probs as old_log_probs Skips expensive actor forward pass for old_log_prob computation Two sub-modes (contr
verl/verl/trainer/ppo/rollout_corr_helper.py:916
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids)
verl/verl/models/qwen2/megatron/layers/parallel_attention.py:131
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids)
verl/verl/models/llama/megatron/layers/parallel_attention.py:159
↓ 1 callersFunctionapply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
verl/verl/models/qwen2/megatron/layers/parallel_attention.py:311
↓ 1 callersFunctionapply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
verl/verl/models/llama/megatron/layers/parallel_attention.py:370
↓ 1 callersFunctionapply_rotary_pos_emb_thd_absolute
A baseline implementation of applying RoPE for `thd` format. Args: t (Tensor): Input tensor T is of shape [t, h, d] cu_seqlens(Te
verl/verl/models/mcore/qwen2_5_vl/rope_utils.py:222
↓ 1 callersMethodapply_transform
Apply `functional` variant of TIMM's Transform = Compose([Resize -> CenterCrop -> ToTensor -> Normalize])
verl/recipe/vla/models/openvla_oft/processing_prismatic.py:145
↓ 1 callersFunctionare_equal_under_sympy
(ground_truth_normalized: str, given_normalized: str)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:880
↓ 1 callersFunctionare_equal_under_sympy
(ground_truth_normalized: str, given_normalized: str)
verl/verl/utils/reward_score/prime_math/__init__.py:213
↓ 1 callersFunctionare_lists_similar
(a, b)
verl/tests/workers/rollout/rollout_vllm/test_vllm_spmd.py:50
↓ 1 callersFunctionassign_non_tensor_data
(tensor_dict: TensorDict, key, val)
verl/verl/utils/tensordict_utils.py:23
↓ 1 callersFunctionassign_non_tensor_stack
Assign a list with potentially nested structures (lists, dicts, etc.) to TensorDict. This function handles complex nested data structures like:
verl/verl/utils/tensordict_utils.py:28
↓ 1 callersMethodasync_dp_compute
(self, data: DataProto)
verl/tests/single_controller/test_decorator_on_cpu.py:56
↓ 1 callersFunctionasync_func
(self, *args, **kwargs)
verl/verl/single_controller/ray/base.py:827
↓ 1 callersMethodasync_generate_sequences
(self, prompts)
verl/recipe/one_step_off_policy/fsdp_workers.py:283
↓ 1 callersFunctionautodiscover_packages
Detect top-level packages under CWD when no argument is given.
verl/tests/special_sanity/check_api_docs.py:106
↓ 1 callersMethodbatch_apply
(self, batch_code: List[str])
demo/qwen_agent/tools/python_executor.py:189
↓ 1 callersMethodbatch_search
(self, query_list: list[str], num: int = None, return_score: bool = False)
verl/examples/sglang_multiturn/search_r1_like/local_dense_retriever/retrieval_server.py:142
↓ 1 callersFunctionbest_of_group_metrics
Evaluate each candidate output in sample.outputs, pick the one with minimal distance_m. Return its metrics dict (same format as compute_dista
parallel_tts/verifier_test_multi.py:294
↓ 1 callersFunctionbest_of_group_metrics
(sample: EnsembleSample)
parallel_tts/verifier_test_multi_api.py:338
↓ 1 callersFunctionbroadcast_from_megatron_pp
(tensor: torch.Tensor)
verl/verl/utils/megatron_utils.py:749
↓ 1 callersFunctionbroadcast_params
(module)
verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:70
↓ 1 callersFunctionbroadcast_params
(module)
verl/verl/models/mcore/loader.py:71
↓ 1 callersFunctionbroadcast_params
(module)
verl/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:72
↓ 1 callersFunctionbroadcast_str_from_megatron_pp
(obj: Any)
verl/verl/utils/megatron_utils.py:786
↓ 1 callersFunctionbuild_aime2024_dataset
()
verl/recipe/fapo/prepare_fapo_data.py:39
↓ 1 callersFunctionbuild_aime2025_dataset
()
verl/recipe/fapo/prepare_fapo_data.py:53
← previousnext →1,501–1,600 of 4,735, ranked by callers