MCPcopy Create free account

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

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

Functiontest_to_tensordict_with_nested_lists
Test converting DataProto with nested lists to TensorDict (lists of lists).
verl/tests/test_protocol_on_cpu.py:785
Functiontest_tool_agent
(init_config)
verl/tests/experimental/agent_loop/test_basic_agent_loop.py:193
Functiontest_tool_agent_with_interaction
(init_config)
verl/tests/experimental/agent_loop/test_basic_agent_loop.py:307
Methodtest_tool_call_basic_case
(self, mock_execute, mock_rollout, search_data_proto, search_data)
verl/tests/workers/rollout/test_sglang_async_rollout_mcp_tools.py:351
Methodtest_tool_call_basic_case
Test basic tool call case
verl/tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:327
Methodtest_tool_call_basic_case
(self, mock_execute, mock_rollout, search_data_proto, search_data)
verl/tests/workers/rollout/test_sglang_async_rollout_search_tools.py:304
Methodtest_tool_call_batch_case
(self, mock_execute, mock_rollout, search_data_proto, search_data)
verl/tests/workers/rollout/test_sglang_async_rollout_mcp_tools.py:406
Methodtest_tool_call_batch_case
Test batch tool call case
verl/tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:380
Methodtest_tool_call_batch_case
(self, mock_execute, mock_rollout, search_data_proto, search_data)
verl/tests/workers/rollout/test_sglang_async_rollout_search_tools.py:362
Methodtest_tools_registration
(self, mock_rollout)
verl/tests/workers/rollout/test_sglang_async_rollout_mcp_tools.py:291
Methodtest_tools_registration
Test tool registration functionality
verl/tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:245
Methodtest_tools_registration
( self, mock_env, mock_engine, mock_sampling, search_rollout_config, qwen_tokenizer, qwen_model_config
verl/tests/workers/rollout/test_sglang_async_rollout_search_tools.py:197
Functiontest_torch_save_data_proto
()
verl/tests/test_protocol_v2_on_cpu.py:468
Functiontest_torch_save_data_proto
()
verl/tests/test_protocol_on_cpu.py:470
Methodtest_tpm_rate_limiting
Test tokens per minute (TPM) rate limiting.
verl/tests/experimental/reward/test_rate_limited_reward_manager_on_cpu.py:221
Functiontest_trace_disabled_with_trace_false
Tests that tracing is disabled when trace=False.
verl/tests/utils/test_rollout_trace_on_cpu.py:131
Functiontest_trace_enabled_restored_after_exception
Tests that trace state is restored even if an exception occurs when trace=False.
verl/tests/utils/test_rollout_trace_on_cpu.py:182
Functiontest_trace_false_disables_nested_trace_ops
Tests that trace=False disables all nested @rollout_trace_op calls.
verl/tests/utils/test_rollout_trace_on_cpu.py:157
Functiontest_trainer_config_doc
()
verl/tests/special_sanity/test_config_docs.py:60
Functiontest_union_numpy_dict
A comprehensive test suite for union_numpy_dict, covering standard use cases, N-dimensional arrays, object-dtype arrays, and NaN value handli
verl/tests/test_protocol_on_cpu.py:51
Functiontest_union_tensor_dict
()
verl/tests/test_protocol_v2_on_cpu.py:30
Functiontest_union_tensor_dict
()
verl/tests/test_protocol_on_cpu.py:36
Functiontest_unit_api_timeout_error_concurrent
(mock_call_sandbox_api)
verl/tests/utils/reward_score/reward_score/test_sandbox_fusion_on_cpu.py:298
Functiontest_unit_concurrency_order
(mock_call_sandbox_api)
verl/tests/utils/reward_score/reward_score/test_sandbox_fusion_on_cpu.py:254
Functiontest_unit_input_output_mismatch
Unit test: Mismatch between the number of inputs and outputs
verl/tests/utils/reward_score/reward_score/test_sandbox_fusion_on_cpu.py:572
Functiontest_unit_invalid_input_format
Unit test: Invalid in_outs format passed
verl/tests/utils/reward_score/reward_score/test_sandbox_fusion_on_cpu.py:556
Methodtest_update_critic
Test CriticWorker.update_critic() method
verl/tests/workers/critic/test_special_dp_critic.py:177
Functiontest_update_existing_dispatch_mode
(reset_dispatch_registry)
verl/tests/single_controller/base/test_decorator.py:60
Functiontest_update_model_config
Tests that update_model_config correctly updates attributes, handling both plain and nested overrides via parametrization.
verl/tests/utils/test_model_on_cpu.py:30
Methodtest_update_policy
Test update_policy method
verl/tests/workers/actor/test_special_dp_actor.py:197
Methodtest_update_weights_from_tensor_empty
(self, mock_launch_server_process, basic_adapter_kwargs)
verl/tests/workers/rollout/rollout_sglang/test_http_server_engine.py:473
Methodtest_update_weights_from_tensor_none
(self, mock_launch_server_process, basic_adapter_kwargs)
verl/tests/workers/rollout/rollout_sglang/test_http_server_engine.py:502
Methodtest_update_weights_from_tensor_strict
(self, mock_launch_server_process, basic_adapter_kwargs)
verl/tests/workers/rollout/rollout_sglang/test_http_server_engine.py:439
Methodtest_valid_lr_scheduler_types
(self, lr_scheduler_type)
verl/tests/workers/config/test_optim_config_on_cpu.py:28
Methodtest_valid_warmup_style_types
(self, warmup_style)
verl/tests/workers/config/test_optim_config_on_cpu.py:33
Methodtest_veto_mechanism
Test veto mechanism with catastrophic outliers.
verl/tests/trainer/ppo/test_rollout_corr_integration.py:188
Methodtest_waiting_for_tokens
Test that acquire waits when insufficient tokens available.
verl/tests/experimental/reward/test_async_token_bucket_on_cpu.py:59
Methodtest_wrap_policy_configuration
(self)
verl/tests/workers/config/test_engine_config_on_cpu.py:64
Methodtest_zero_initial_state
Test that bucket starts with full tokens.
verl/tests/experimental/reward/test_async_token_bucket_on_cpu.py:137
Methodtest_zero_max_steps_duration
Test zero max_steps_duration
verl/tests/utils/ckpt/test_esi_save_ckpt_on_cpu.py:66
Functionthread_target
()
verl/tests/utils/test_timeout_decorator_cpu.py:176
Functiontie_weights
(self: "AutoModelForCausalLMWithValueHead")
verl/verl/utils/model.py:595
Functiontimeout_ours
(timeout_seconds: int = 8)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:40
Methodto_dict
(self)
demo/qwen_agent/tools/doc_parser.py:52
Methodto_str
(precision)
verl/verl/utils/torch_dtypes.py:73
Functiontokenize_and_postprocess_data
Tokenize text and process outputs to consistent tensor shapes. Args: prompt: Input text to tokenize tokenizer: HuggingFace tokeni
verl/verl/utils/torch_functional.py:384
Functiontop_level_decorated_quick_task_signal
A pickleable top-level function decorated with signal timeout.
verl/tests/utils/test_timeout_decorator_cpu.py:52
Functiontop_level_decorated_slow_task_signal
A pickleable top-level function decorated with signal timeout.
verl/tests/utils/test_timeout_decorator_cpu.py:62
Methodtrain_mode
Context manager entry for switching the engine and model into training mode. Usage: with engine.train_mode():
verl/verl/workers/engine/megatron/transformer_impl.py:312
Methodtrain_mode
Return a context manager that switches to training mode with FSDP-specific handling. Includes parameter and optimizer offload entry/
verl/verl/workers/engine/fsdp/transformer_impl.py:444
Methodtrigger_tag
(self)
verl/tool_server/api_server_redis.py:329
Methodtruncate
(self, text: str, max_token: int, start_token: int = 0, keep_both_sides: bool = False)
demo/qwen_agent/utils/tokenization_qwen.py:221
Functiontwo_to_all_dispatch_fn
Assume the input is a list of 2. Duplicate the input interleaved and pass to each worker.
verl/tests/single_controller/test_worker_group_basics.py:26
Functiontypewriter_print
(messages: List[dict], text: str)
demo/qwen_agent/utils/output_beautify.py:28
Functionulysses_wrapped_decoder_forward
(self, *args, **kwargs)
verl/verl/models/transformers/monkey_patch.py:127
Functionunion_tensor_dict
Union two tensordicts.
verl/verl/utils/tensordict_utils.py:252
Functionunpad
Unpad the data proto with pad_size. i.e. `data[:-pad_size]`
verl/verl/utils/tensordict_utils.py:422
Functionunpad_input
Arguments: hidden_states: (batch, seqlen, ...) attention_mask: (batch, seqlen), bool / int, 1 means valid and 0 means not valid.
verl/verl/utils/npu_flash_attn_utils.py:99
Functionunpatch_fused_forward
(model: torch.nn.Module)
verl/verl/models/mcore/model_forward_fused.py:59
Methodupdate
(self, current_kl, n_steps)
verl/recipe/spin/core_algos.py:32
Methodupdate
Update the KL coefficient based on current KL divergence. Args: current_kl (float): Current KL divergence value. n_st
verl/verl/trainer/ppo/core_algos.py:163
Methodupdate_actor
(self, data: DataProto)
verl/verl/workers/megatron_workers.py:710
Methodupdate_actor
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:866
Methodupdate_actor
(self, data: DataProto)
verl/verl/workers/engine_workers.py:135
Methodupdate_critic
(self, data: DataProto)
verl/verl/workers/megatron_workers.py:1186
Methodupdate_critic
Update the critic
verl/verl/workers/critic/base.py:38
Methodupdate_critic
(self, dataloader: Iterable[DataProto])
verl/verl/workers/critic/megatron_critic.py:296
Methodupdate_critic
(self, data: DataProto)
verl/verl/workers/critic/dp_critic.py:192
Methodupdate_critic
(self, data: DataProto)
verl/verl/workers/roles/critic.py:162
Functionupdate_dict_with_config
(dictionary: dict, config: DictConfig)
verl/verl/utils/config.py:68
Functionupdate_kwargs_with_config
(dictionary: dict, config: "ModelParallelConfig")
verl/verl/utils/megatron/tensor_parallel.py:30
Methodupdate_param_version
Update current parameter version
verl/recipe/fully_async_policy/fully_async_rollouter.py:209
Methodupdate_param_version
Update current parameter version
verl/recipe/fully_async_policy/message_queue.py:118
Methodupdate_policy
(self, data: DataProto)
verl/recipe/flowrl/flowrl_actor.py:281
Methodupdate_policy
(self, data: DataProto)
verl/recipe/sppo/dp_actor.py:62
Methodupdate_policy
(self, data: DataProto)
verl/recipe/vla/dp_rob.py:231
Methodupdate_policy
Update the policy with an iterator of DataProto Args: dataloader (Iterable[DataProto]): an iterator over the DataProto that retur
verl/verl/workers/actor/megatron_actor.py:655
Methodupdate_rm
(self, data: DataProto)
verl/recipe/prime/prime_fsdp_workers.py:308
Methodupdate_weights
Update the weights of the rollout model. Args: weights: A generator that yields the name of the weight tensor and the tensor itse
verl/recipe/r1_ascend/vllm_rollout_spmd.py:337
Methodupdate_weights
Update model weights using tensor buckets, similar to THUDM/slime's implementation. Notes: - For the best performance of `
verl/verl/workers/rollout/sglang_rollout/sglang_rollout.py:1518
Methodupdate_weights
Update model weights using tensor buckets, similar to THUDM/slime's implementation. Notes: - For the best performance of `
verl/verl/workers/rollout/sglang_rollout/sglang_rollout.py:1601
Methodupdate_weights
Update the weights of the rollout model. Args: weights: A generator that yields the name of the weight tensor and the tensor itse
verl/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:481
Methodupdate_weights
Update the weights of the rollout model. Args: weights: A generator that yields the name of the weight tensor and the tensor itse
verl/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:643
Methodupdate_weights_from_tensor
Update model weights from tensor data asynchronously. Args: serialized_named_tensors (List[str]): List of serialized tensor data
verl/verl/workers/rollout/sglang_rollout/http_server_engine.py:747
Methodupdate_weights_from_tensor
(self, update_weights_request: UpdateWeightsFromTensorReqInput)
verl/verl/workers/rollout/sglang_rollout/sglang_rollout.py:155
Methodvalidate
Validate Megatron critic configuration with runtime parameters.
verl/verl/workers/config/critic.py:167
Methodvalidate
Validate FSDP critic configuration with runtime parameters.
verl/verl/workers/config/critic.py:207
Methodvalidate_input
(keys)
verl/verl/protocol.py:766
Functionvalidate_num_fncall_results
(messages: List[Message], support_multimodal_input: bool)
demo/qwen_agent/llm/function_calling.py:167
Methodvalue
(self)
demo/qwen_agent/llm/schema.py:127
Functionvalue_loss
(config: CriticConfig, model_output, data: TensorDict, dp_group=None)
verl/verl/workers/roles/utils/losses.py:157
Methodverify_rank
(self)
verl/tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:510
Methodvisit_AsyncFunctionDef
Visit async function definitions and check for docstrings.
verl/tests/special_sanity/check_docstrings.py:45
Methodvisit_ClassDef
Visit class definitions and check for docstrings.
verl/tests/special_sanity/check_docstrings.py:56
Methodvisit_FunctionDef
Visit function definitions and check for docstrings.
verl/tests/special_sanity/check_docstrings.py:34
Functionvocab_parallel_log_probs_from_logits_response_rmpad
Similar to log_probs_from_logits_response_rmpad, but the logits_rmpad is now spliited across tensor parallel region. This will further reduce
verl/verl/utils/megatron/tensor_parallel.py:161
Methodvocab_size
(self)
verl/tests/special_e2e/envs/digit_completion/tokenizer.py:83
Methodvocab_size
`int`: Size of the base vocabulary (without the added tokens).
verl/verl/workers/rollout/tokenizer.py:31
Methodvocab_size
(self)
demo/qwen_agent/utils/tokenization_qwen.py:200
Functionwait
()
verl/verl/utils/ulysses.py:147
← previousnext →4,601–4,700 of 4,735, ranked by callers