MCPcopy Create free account

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

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

Methodsetup_method
Set up test environment before each test method.
verl/tests/interactions/test_gsm8k_interaction.py:27
Functionsft_loss
(config: ActorConfig, model_output, data: TensorDict, dp_group=None)
verl/verl/workers/roles/utils/losses.py:27
Functionsglang_test_model_path
Provide a test model path for SGLang tests. This can be overridden by environment variable SGLANG_TEST_MODEL_PATH for tests that need a real
verl/tests/workers/rollout/rollout_sglang/test_http_server_engine.py:203
Functionshard_placement_fn
(param)
verl/verl/utils/fsdp_utils.py:543
Methodshould_load_extra
Returns True if 'extra' is in checkpoint_load_contents, indicating the extra state should be loaded.
verl/verl/utils/checkpoint/checkpoint_manager.py:115
Methodshould_load_model
Returns True if 'model' is in checkpoint_load_contents, indicating the model state should be loaded.
verl/verl/utils/checkpoint/checkpoint_manager.py:101
Methodshould_load_optimizer
Returns True if 'optimizer' is in checkpoint_load_contents, indicating the optimizer state should be loaded.
verl/verl/utils/checkpoint/checkpoint_manager.py:108
Methodshould_save_extra
Returns True if 'extra' is in checkpoint_save_contents, indicating the extra state should be saved.
verl/verl/utils/checkpoint/checkpoint_manager.py:86
Methodshould_save_hf_model
Returns True if 'hf_model' is in checkpoint_save_contents, indicating the model should be converted to hf model and saved.
verl/verl/utils/checkpoint/checkpoint_manager.py:93
Methodshould_save_model
Returns True if 'model' is in checkpoint_save_contents, indicating the model state should be saved.
verl/verl/utils/checkpoint/checkpoint_manager.py:72
Methodshould_save_optimizer
Returns True if 'optimizer' is in checkpoint_save_contents, indicating the optimizer state should be saved.
verl/verl/utils/checkpoint/checkpoint_manager.py:79
Methodshutdown
Shutdown queue (async)
verl/recipe/fully_async_policy/message_queue.py:240
Functionside_effect
(*args, **kwargs)
verl/tests/utils/reward_score/reward_score/test_sandbox_fusion_on_cpu.py:261
Functionsilu_forward
NPU optimized silu
verl/verl/models/transformers/npu_patch.py:70
Functionskip_if_valid_sandbox
(url)
verl/tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:136
Methodsleep
(self)
verl/verl/workers/megatron_workers.py:917
Methodsleep
(self)
verl/verl/workers/fsdp_workers.py:1936
Methodsleep
Context switch from rollout mode to trainer mode.
verl/verl/workers/engine_workers.py:149
Methodsleep
(self)
verl/verl/workers/rollout/vllm_rollout/vllm_async_server.py:446
Methodsort_by_scores
(self, query: str, docs: List[Record], ma
demo/qwen_agent/tools/search_tools/front_page_search.py:30
Methodsort_by_scores
(self, query: str, docs: List[Record], **kwargs)
demo/qwen_agent/tools/search_tools/hybrid_search.py:35
Methodsort_by_scores
(self, query: str, docs: List[Record], **kwargs)
demo/qwen_agent/tools/search_tools/vector_search.py:28
Methodsort_changed
(self, event)
verl/scripts/rollout_viewer.py:407
Functionsplit_dict_tensor_into_batches
(tensors: TensorDict, batch_size)
verl/verl/utils/torch_functional.py:300
Methodspread
(self)
verl/verl/utils/seqlen_balancing.py:85
Functionsqueeze
(x)
verl/verl/utils/model.py:55
Methodstart
(self, **kwargs)
verl/verl/utils/profiler/profile.py:224
Methodstart
(self, **kwargs)
verl/verl/utils/profiler/profile.py:264
Methodstart
(self, **kwargs)
verl/verl/utils/profiler/profile.py:313
Methodstart_interaction
( self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs )
verl/verl/interactions/weather_interaction.py:39
Methodstart_interaction
( self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs )
verl/verl/interactions/gsm8k_interaction.py:43
Methodstart_loop
(self)
demo/qwen_agent/tools/mcp_manager.py:72
Methodstart_profile
Start profiling for the current rank in the current training step.
verl/verl/utils/profiler/profile.py:364
Methodstart_profile
Start profiling for the current rank in the current training step.
verl/verl/workers/megatron_workers.py:885
Functionstate_dict
(self, *args, **kwargs)
verl/verl/models/transformers/monkey_patch.py:285
Methodstep_changed
(self, event)
verl/scripts/rollout_viewer.py:395
Methodstop
(self)
verl/verl/utils/profiler/profile.py:227
Methodstop
(self)
verl/verl/utils/profiler/profile.py:267
Methodstop
(self)
verl/verl/utils/profiler/profile.py:323
Methodstop_profile
Stop profiling for the current rank in the current training step.
verl/verl/utils/profiler/profile.py:369
Methodstop_profile
Stop profiling for the current rank in the current training step.
verl/verl/workers/megatron_workers.py:890
Methodsupport_audio_input
(self)
demo/qwen_agent/llm/transformers_llm.py:78
Methodsupport_audio_input
(self)
demo/qwen_agent/llm/base.py:75
Methodsupport_audio_input
(self)
demo/qwen_agent/llm/qwenomni_oai.py:25
Methodsupport_multimodal_input
(self)
demo/qwen_agent/llm/qwenvl_oai.py:33
Methodsupport_multimodal_input
(self)
demo/qwen_agent/llm/transformers_llm.py:74
Methodsupport_multimodal_input
(self)
demo/qwen_agent/llm/qwenvl_dashscope.py:35
Methodsupport_multimodal_input
(self)
demo/qwen_agent/llm/base.py:65
Methodsupport_multimodal_input
(self)
demo/qwen_agent/llm/qwenaudio_dashscope.py:25
Methodsupport_multimodal_output
(self)
demo/qwen_agent/llm/base.py:70
Methodsupported_type
(precision: str | int)
verl/verl/utils/torch_dtypes.py:42
Methodsupported_types
()
verl/verl/utils/torch_dtypes.py:46
Functionsymbolic_equal
(a, b)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:553
Functionsync_cache_endpoint
(background: bool = True)
verl/tool_server/api_server_redis.py:599
Methodsync_rollout_weights
(self)
verl/recipe/one_step_off_policy/megatron_workers.py:81
Methodsync_rollout_weights
(self)
verl/recipe/one_step_off_policy/fsdp_workers.py:84
Methodsync_rollout_weights
(self)
verl/recipe/fully_async_policy/megatron_worker.py:67
Methodsync_weights
Sync weights between trainer and rollouter, and update parameter version
verl/recipe/fully_async_policy/param_sync.py:78
Functiontask_raises_value_error
A task that intentionally raises a ValueError.
verl/tests/utils/test_timeout_decorator_cpu.py:44
MethodtearDown
(self)
verl/tests/trainer/ppo/test_core_algos_on_cpu.py:48
MethodtearDown
Clean up test fixtures
verl/tests/workers/critic/test_special_dp_critic.py:88
MethodtearDown
(self)
verl/tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:471
MethodtearDownClass
Clean up distributed environment
verl/tests/workers/critic/test_special_dp_critic.py:52
MethodtearDownClass
Clean up distributed environment
verl/tests/workers/actor/test_special_dp_actor.py:99
Methodtensor_pop
Tensor pop.
verl/verl/utils/activation_offload.py:210
Methodtensor_pop
Tensor pop.
verl/verl/utils/activation_offload.py:285
Methodtensor_push
Tensor push.
verl/verl/utils/activation_offload.py:195
Methodtensor_push
(self, tensor: torch.Tensor, **kwargs)
verl/verl/utils/activation_offload.py:263
Functiontest
()
verl/tests/single_controller/test_high_level_scheduling_api.py:33
Functiontest
()
verl/tests/single_controller/test_driverfunc_to_worker.py:54
Methodtest
(self)
verl/tests/single_controller/test_rvdz.py:31
Functiontest_activation_offloading
(world_size, strategy, tmp_path)
verl/tests/utils/test_activation_offload.py:163
Methodtest_actor_config_from_yaml
Test creating ActorConfig from YAML file.
verl/tests/workers/config/test_actor_config_on_cpu.py:66
Methodtest_actor_config_validate_method_exceptions
Test that ActorConfig.validate() raises appropriate validation exceptions.
verl/tests/workers/config/test_actor_config_on_cpu.py:233
Methodtest_actor_config_validation_exceptions
Test that ActorConfig.__post_init__ raises appropriate validation exceptions.
verl/tests/workers/config/test_actor_config_on_cpu.py:171
Functiontest_actor_engine
(strategy)
verl/tests/models/test_engine.py:48
Functiontest_actor_rollout_ref_worker_actor_ref_model
Test specifying different reference/actor model
verl/tests/workers/test_fsdp_workers.py:21
Functiontest_add_tool_response_messages_image_delta
()
verl/tests/workers/rollout/test_sglang_async_rollout_multimodal_delta.py:157
Functiontest_add_tool_response_messages_image_delta_resize_image
()
verl/tests/workers/rollout/test_sglang_async_rollout_multimodal_delta.py:179
Methodtest_advantage_estimator_with_cfg
Test integration with advantage estimators from core_algos.
verl/tests/trainer/config/test_algo_config_on_cpu.py:157
Functiontest_agent_loop_compute_score
()
verl/tests/experimental/agent_loop/test_agent_loop_reward.py:29
Functiontest_agent_loop_compute_score_with_model
()
verl/tests/experimental/agent_loop/test_agent_loop_reward_model.py:29
Functiontest_agent_loop_reward_manager
()
verl/tests/experimental/reward/test_agent_loop_reward_manager.py:27
Functiontest_agent_loop_reward_manager
()
verl/tests/experimental/reward/test_agent_reward_loop_colocate.py:31
Methodtest_all_aggregation_levels
Test all aggregation levels (token, sequence for IS; geometric for RS).
verl/tests/trainer/ppo/test_rollout_corr_integration.py:121
Functiontest_all_gather_torch
In this test, we instantiate 4 GPUs in a group and test the all_gather
verl/tests/single_controller/test_worker_group_torch.py:67
Functiontest_all_gather_torch_v2
In this test, we instantiate 4 GPUs in a group and test the all_gather
verl/tests/single_controller/test_worker_group_torch.py:91
Functiontest_always_recopy_flag
(tmp_path, monkeypatch)
verl/tests/utils/test_fs_on_cpu.py:66
Methodtest_annotate_decorator
(self)
verl/tests/utils/test_nvtx_profile.py:119
Methodtest_annotate_decorator_applied_correctly
(self)
verl/tests/utils/test_special_mstx_profile.py:138
Methodtest_annotate_discrete_mode_enabled
(self)
verl/tests/utils/test_special_mstx_profile.py:211
Methodtest_annotate_when_profiler_disabled
(self)
verl/tests/utils/test_special_mstx_profile.py:165
Methodtest_annotate_when_this_step_disabled
(self)
verl/tests/utils/test_special_mstx_profile.py:188
Methodtest_annotate_with_default_message
(self)
verl/tests/utils/test_special_mstx_profile.py:249
Functiontest_as_torch_index_basic_integers
()
verl/tests/utils/test_groupwise.py:27
Functiontest_as_torch_index_factorization_mixed
()
verl/tests/utils/test_groupwise.py:43
Functiontest_as_torch_index_near_integer_floats
()
verl/tests/utils/test_groupwise.py:36
Functiontest_assert_case_success
Tests successful execution for assert case. from KodCode
verl/tests/utils/reward_score/reward_score/test_sandbox_fusion_on_cpu.py:696
Functiontest_assign_non_tensor_handles_wrappers
()
verl/tests/test_protocol_v2_on_cpu.py:754
Functiontest_assign_non_tensor_stack_batch_size_check
()
verl/tests/test_protocol_v2_on_cpu.py:769
← previousnext →4,101–4,200 of 4,735, ranked by callers