MCPcopy Create free account

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

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

Methodbackward
(ctx, grad_output)
verl/verl/utils/npu_flash_attn_utils.py:36
Methodbackward
(ctx, grad_output)
verl/verl/utils/npu_flash_attn_utils.py:69
Methodbackward
(ctx, grad_output)
verl/verl/utils/activation_offload.py:127
Methodbackward
(ctx: Any, *grad_output: Tensor)
verl/verl/utils/ulysses.py:182
Methodbackward
(ctx, grad_output: torch.Tensor)
verl/verl/utils/megatron/tensor_parallel.py:130
Methodbackward
(ctx, dlogprobs: torch.Tensor, dentropy: torch.Tensor)
verl/verl/utils/kernel/linear_cross_entropy.py:90
Methodbackward
(ctx, dlog_probs: Optional[torch.FloatTensor], dentropy: Optional[torch.FloatTensor])
verl/verl/utils/experimental/torch_functional.py:132
Methodbackward
(ctx, grad_outputs)
verl/verl/models/transformers/npu_patch.py:100
Methodbackward
(ctx, grad_output)
verl/verl/models/transformers/npu_patch.py:196
Functionbase_config_mock
Fixture to create a mock BaseConfig instance with test attributes.
verl/tests/test_base_config_on_cpu.py:21
Functionbasic_adapter_kwargs
Provide basic kwargs for creating HTTP server adapters.
verl/tests/workers/rollout/rollout_sglang/test_http_server_engine.py:71
Functionbuild_aime2024_dataset
()
verl/recipe/r1/data_process.py:39
Functionbuild_cnmo2024_dataset
()
verl/recipe/r1/data_process.py:84
Functionbuild_gpqa_dimond_dataset
()
verl/recipe/r1/data_process.py:53
Methodbuild_inputs_with_special_tokens
( self, token_ids_0: list[int], token_ids_1: Optional[list[int]] = None )
verl/tests/special_e2e/envs/digit_completion/tokenizer.py:101
Functionbuild_livecodebench_dataset
()
verl/recipe/r1/data_process.py:107
Methodbuild_memory_reference
(self)
verl/verl/utils/memory_buffer.py:203
Functionbuild_text_completion_prompt
( messages: List[Message], allow_special: bool = False, default_system: str = DEFAULT_SYSTEM_MESSA
demo/qwen_agent/utils/utils.py:492
Functioncalc_reward
(self, instance_id: str, **kwargs)
verl/verl/tools/tool_test.py:77
Methodcalc_reward
(self, instance_id: str, **kwargs)
verl/verl/tools/map_tool.py:326
Methodcalc_reward
(self, instance_id: str, **kwargs)
verl/verl/tools/map_tool.py:456
Methodcalc_reward
(self, instance_id: str, **kwargs)
verl/verl/tools/mcp_base_tool.py:113
Methodcalc_reward
(self, instance_id: str, **kwargs)
verl/verl/tools/sandbox_fusion_tools.py:191
Methodcalc_reward
(self, instance_id: str, **kwargs)
verl/verl/tools/search_tool.py:274
Methodcalc_reward_and_release_fn
(name: str, tool: BaseTool)
verl/verl/workers/rollout/sglang_rollout/sglang_rollout.py:1030
Functioncalculate_point_reward
Calculate the final reward for 'point' type data. Implements the full logic including format checks, collinearity checks, and the zero-c
verl/recipe/infigui-g1/reward_fn.py:260
Functioncalculate_reward
(data: DataProto, return_dict: bool = False)
verl/recipe/vla/main_ppo.py:34
Functioncalculate_token_list_diff
(tensor1: torch.Tensor, tensor2: torch.Tensor, mask: torch.Tensor)
verl/verl/utils/debug/metrics.py:23
Methodcall
RAG tool. Step1: Parse and save files Step2: Retrieval related content according to query Args: params: The file
demo/qwen_agent/tools/retrieval.py:79
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/mcp_manager.py:272
Methodcall
Extracting and blocking Returns: Parse doc as the following chunks: { 'url': 'This is the url of th
demo/qwen_agent/tools/doc_parser.py:80
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/storage.py:58
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/amap_weather.py:59
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/amap_api.py:40
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/amap_api.py:84
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/amap_api.py:136
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/amap_api.py:190
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/amap_api.py:231
Methodcall
(self, params: Union[str, dict], files: List[str] = None, **kwargs)
demo/qwen_agent/tools/base.py:205
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/image_gen.py:38
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/web_extractor.py:35
Methodcall
Parse pdf by url, and return the formatted content. Returns: Extracted doc as plain text or the following list format:
demo/qwen_agent/tools/simple_doc_parser.py:403
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/web_search.py:42
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/image_zoom_in_qwen3vl.py:128
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/extract_doc_vocabulary.py:52
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/python_executor.py:129
Methodcall
(self, params: Union[str, dict], files: List[str] = None, timeout: Optional[int] = 30, **kwargs)
demo/qwen_agent/tools/code_interpreter.py:105
Methodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/google_map_search.py:112
Methodcall
The basic search algorithm Args: params: The dict parameters. docs: The list of parsed doc, each doc has unique url.
demo/qwen_agent/tools/search_tools/base_search.py:56
Functioncall_openai_sync
(client: OpenAI, model: str, messages, temperature=0.0, max_tokens=256)
parallel_tts/verifier_test_multi_api.py:298
Functioncan_generate
(self)
verl/verl/utils/model.py:607
Methodcancel
(self)
verl/recipe/fully_async_policy/vllm_rollout/vllm_async_server.py:120
Methodcancel
(cls)
demo/qwen_agent/tools/resource/code_interpreter_init_kernel.py:54
Methodcancel_agent_loops
Set the shared cancellation event to stop all agent loops.
verl/recipe/fully_async_policy/agent_loop/agent_loop.py:202
Methodchange_agent
(self, agent_selector)
demo/qwen_agent/gui/web_ui.py:214
Functionchar_count_reward_function
(data_source, solution_str, ground_truth, extra_info=None)
verl/recipe/char_count/reward_function.py:22
Methodchat_completion
(self, json_request)
verl/verl/workers/megatron_workers.py:930
Methodchat_completion
(self, json_request)
verl/verl/workers/fsdp_workers.py:1949
Methodchat_completion
(self, json_request)
verl/verl/workers/engine_workers.py:203
Functioncheck_device_is_available
Some modules must be imported after CUDA is initialized. Such as sglang's sharding manager. This context manager checks if CUDA is available
verl/verl/utils/torch_functional.py:703
Methodcheck_exclusivity
(self)
demo/qwen_agent/llm/schema.py:96
Methodcheck_health
(self)
verl/verl/workers/rollout/vllm_rollout/vllm_async_server.py:120
Methodcheck_mutually_exclusive
(mbs, mbs_per_gpu, name: str)
verl/verl/trainer/ppo/ray_trainer_ts.py:418
Functioncheck_workers_alive
Continuously monitors worker processes and raises SIGABRT if any worker dies. Args: workers (List): List of worker objects to
verl/verl/single_controller/base/worker_group.py:102
Methodcheckpath
(local_path: str, hdfs_path: str)
verl/verl/utils/checkpoint/checkpoint_manager.py:130
Methodcheckpoint_handler
Determines whether to use the `te_checkpoint` or `tensor_parallel.checkpoint`
verl/verl/models/mcore/qwen2_5_vl/vision_transformer_block.py:58
Methodchunk
(self, chunks: int)
verl/verl/protocol.py:1204
Methodchunk_step
(self, chunk_actions)
verl/recipe/vla/envs/isaac_env/isaac_env.py:202
Methodchunk_step
(self, chunk_actions)
verl/recipe/vla/envs/libero_env/libero_env.py:340
Functionclean_env
Fixture to clean up environment variables before and after each test.
verl/tests/utils/test_temp_env_on_cpu.py:23
Methodcleanup
(self)
verl/verl/model_merger/base_model_merger.py:361
Methodcleanup
Cleanup temporary files if needed.
verl/verl/model_merger/fsdp_model_merger.py:262
Methodclear_cpu_model
(self, n)
verl/recipe/fully_async_policy/megatron_worker.py:108
Methodclear_queue
Clear queue (async)
verl/recipe/fully_async_policy/message_queue.py:235
Functionclip_by_value
Tensor extenstion to torch.clamp https://github.com/pytorch/pytorch/issues/2793#issuecomment-428784713
verl/verl/utils/torch_functional.py:136
Functioncollapse_example
(example: dict[str, Any])
verl/recipe/collabllm/process_dataset.py:83
Functioncollate_fn
(x: list["DataProtoItem"])
verl/verl/protocol.py:307
Functioncollect_all_to_all
(worker_group, output)
verl/verl/single_controller/base/decorator.py:138
Functioncollect_dp_compute_data_proto
(worker_group, output)
verl/verl/single_controller/base/decorator.py:208
Functioncollect_lazy_compute_data_proto
(mesh_name, worker_group, *args, **kwargs)
verl/verl/single_controller/base/decorator.py:302
Methodcompose
(self)
verl/scripts/rollout_viewer.py:200
Functioncompute_actions_l1_loss
(action_tokenizer, predicted_token_ids, ground_truth_token_ids, mask)
verl/recipe/vla/models/openvla_oft/train_utils.py:64
Functioncompute_attention_mask
(prompts, pad_token_id)
verl/tests/special_e2e/envs/digit_completion/task.py:109
Functioncompute_entropy_loss
Compute categorical entropy loss (For backward compatibility) Args: logits (torch.Tensor): shape is (bs, response_length, vocab_size)
verl/verl/trainer/ppo/core_algos.py:1426
Functioncompute_gpg_outcome_advantage
Compute advantage for GPG, operating only on Outcome reward (with only one scalar reward for each response). Args: token_level_re
verl/verl/trainer/ppo/core_algos.py:700
Functioncompute_grad_norm
(model: nn.Module)
verl/verl/utils/torch_functional.py:249
Functioncompute_grpo_passk_outcome_advantage
Compute advantage for Pass@k using a GRPO-style outcome reward formulation. Only the best response per group gets a non-zero advantage: r_max
verl/verl/trainer/ppo/core_algos.py:403
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
verl/recipe/spin/dp_actor.py:34
Methodcompute_log_prob
Compute the log probability of the responses given input_ids, attention_mask and position_ids Args: data (DataProto): a DataProto
verl/verl/workers/actor/megatron_actor.py:168
Methodcompute_log_prob
(self, data: DataProto)
verl/verl/workers/roles/actor.py:108
Functioncompute_logits
( self, *args, **kwargs, )
verl/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:514
Methodcompute_logprobs_fn
(output, data, use_dynamic_bsz=False, indices=None)
verl/verl/workers/actor/megatron_actor.py:197
Methodcompute_old_log_prob
(batch)
verl/recipe/fully_async_policy/ray_trainer.py:352
Functioncompute_onlinedpo_pref
Computes preferences between pairs of sequences based on summed rewards and returns a mask aligned with the interleaved batch. Assumes i
verl/recipe/spin/core_algos.py:59
Functioncompute_opo_outcome_advantage
Compute advantage for OPO based on https://arxiv.org/pdf/2505.23585 Args: token_level_rewards: `(torch.Tensor)` shape: (
verl/verl/trainer/ppo/core_algos.py:571
Functioncompute_passkpo_outcome_advantage
( token_level_rewards: torch.Tensor, response_mask: torch.Tensor, index: np.ndarray, epsilon:
verl/verl/trainer/ppo/core_algos.py:361
Functioncompute_pf_ppo_reweight_data
Reweight the data based on the token_level_scores. Args: data: DataProto object, containing batch, non_tensor_batch and meta_info
verl/verl/trainer/ppo/core_algos.py:1549
Functioncompute_policy_loss
Compute the clipped policy objective and related metrics for PPO. Adapted from https://github.com/huggingface/trl/blob/main/trl/trainer/
verl/verl/trainer/ppo/core_algos.py:874
Functioncompute_policy_loss_clip_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:1156
Functioncompute_policy_loss_geo_mean
Compute the clipped policy objective and related metrics for GMPO. Adapted from paper https://arxiv.org/abs/2507.20673 https://github.co
verl/verl/trainer/ppo/core_algos.py:1341
← previousnext →3,101–3,200 of 4,735, ranked by callers