MCPcopy Create free account

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

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

↓ 1 callersFunctionbuild_dapo_train_dataset
()
verl/recipe/fapo/prepare_fapo_data.py:107
↓ 1 callersFunctionbuild_ensemble_sample_from_line
(obj: Dict[str, Any], idx: int)
parallel_tts/verifier_test_multi.py:165
↓ 1 callersFunctionbuild_ensemble_sample_from_line
(obj: Dict[str, Any], idx: int)
parallel_tts/verifier_test_multi_api.py:235
↓ 1 callersFunctionbuild_generate_fn
(gen_bs, n)
verl/tests/utils/test_rollout_skip_on_cpu.py:36
↓ 1 callersFunctionbuild_gpqa_diamond_dataset
()
verl/recipe/fapo/prepare_fapo_data.py:67
↓ 1 callersFunctionbuild_image_bound
(input_ids, tokenizer, new_schema=True, logger=None)
verl/recipe/minicpmo/rl_dataset.py:50
↓ 1 callersFunctionbuild_memory_reference
Build the memory references. The memory buffers are built using the build_memory_buffer API. This API will allocate a weight buffer pointer to the
verl/verl/utils/memory_buffer.py:117
↓ 1 callersFunctionbuild_memory_reference_from_module
( module: torch.nn.Module, memory_buffers: dict[torch.dtype, MemoryBuffer], maintain_weight=True )
verl/verl/utils/memory_buffer.py:101
↓ 1 callersFunctionbuild_transform
()
verl/recipe/minicpmo/rl_dataset.py:39
↓ 1 callersMethodbulk_reload_group
Bulk reload group.
verl/verl/utils/activation_offload.py:355
↓ 1 callersMethodcalc_reward
Calculate the reward of the tool. Args: instance_id: The instance id of the tool. Returns: The reward of the
verl/verl/tools/base_tool.py:76
↓ 1 callersMethodcalc_reward
(self, instance_id: str, **kwargs)
verl/verl/tools/geo3k_tool.py:92
↓ 1 callersMethodcalc_reward
(self, instance_id: str, **kwargs)
verl/verl/tools/gsm8k_tool.py:100
↓ 1 callersFunctioncalculate_debug_metrics_decorated
(data)
verl/recipe/transfer_queue/ray_trainer.py:323
↓ 1 callersFunctioncalculate_log_prob_diff
(log_probs1: torch.Tensor, log_probs2: torch.Tensor, mask: torch.Tensor)
verl/verl/utils/debug/metrics.py:58
↓ 1 callersMethodcalculate_score
(self, instance_id: str, **kwargs)
verl/verl/interactions/weather_interaction.py:71
↓ 1 callersMethodcalculate_score
(self, instance_id: str, **kwargs)
verl/verl/interactions/gsm8k_interaction.py:77
↓ 1 callersMethodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/image_search.py:153
↓ 1 callersMethodcall
(self, params: Union[str, dict], **kwargs)
demo/qwen_agent/tools/google_map_search.py:48
↓ 1 callersFunctioncall_method
(method, inputs)
verl/verl/utils/reward_score/prime_code/testing_util.py:577
↓ 1 callersMethodcancel
Cancel each rollout server.
verl/recipe/fully_async_policy/vllm_rollout/vllm_async_server.py:147
↓ 1 callersFunctioncenter_crop_image
(image: Image.Image)
verl/recipe/vla/envs/action_utils.py:292
↓ 1 callersFunctioncenter_word_with_equals_exactly
(word: str, total_length: int, char: str = "=")
verl/scripts/rollout_viewer.py:90
↓ 1 callersFunctionchat_complete
(router_address: str, chat_complete_request: dict)
verl/tests/experimental/reward/reward_fn.py:41
↓ 1 callersMethodchat_complete
(self, chat_complete_request: dict)
verl/verl/experimental/reward/reward_model.py:118
↓ 1 callersFunctionchat_completions_aiohttp
(address, **chat_complete_request)
verl/recipe/fapo/reward_fn_reasoning_remote.py:75
↓ 1 callersFunctioncheck_config_converter_results
(tf_config: TransformerConfig | MLATransformerConfig, hf_config: PretrainedConfig)
verl/tests/special_distributed/test_mcore_config_converter.py:36
↓ 1 callersFunctioncheck_configs
Check if the original config and new config are compatible. This is a placeholder function; actual implementation may vary based on requireme
verl/scripts/init_random_model.py:60
↓ 1 callersFunctioncheck_congratulations_in_file
(output_file)
verl/tests/special_e2e/check_custom_rwd_fn.py:18
↓ 1 callersMethodcheck_consistency
Check the consistency of the DataProto. Mainly for batch and non_tensor_batch We expose this function as a public one so that user can call th
verl/verl/protocol.py:461
↓ 1 callersFunctioncheck_correctness
Check correctness of code generation with a global timeout. The global timeout is to catch some extreme/rare cases not handled by the timeouts
verl/recipe/r1/tasks/livecodebench.py:31
↓ 1 callersFunctioncheck_correctness
Checks the correctness of code generation using the remote sandbox API, processing test cases concurrently. Args: sandbox_fusion
verl/verl/utils/reward_score/sandbox_fusion/utils.py:449
↓ 1 callersFunctioncheck_cuda_versions
()
verl/scripts/diagnose.py:187
↓ 1 callersFunctioncheck_environment
()
verl/scripts/diagnose.py:170
↓ 1 callersFunctioncheck_file
( file_path: Path, changed_lines: set[int], debug: bool = False )
verl/tests/special_sanity/type_coverage_check.py:85
↓ 1 callersFunctioncheck_file_docstrings
Check docstrings in a single file.
verl/tests/special_sanity/check_docstrings.py:72
↓ 1 callersFunctioncheck_hardware
()
verl/scripts/diagnose.py:135
↓ 1 callersFunctioncheck_image_url_accessibility
Check if an image URL is accessible (synchronous version) Args: url: Image URL to check timeout: Request timeout in seconds
demo/qwen_agent/tools/image_search.py:181
↓ 1 callersMethodcheck_kernel_storage
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:455
↓ 1 callersFunctioncheck_local_tool_server_once
Run inside Ray worker process. - Wait for /healthz up to wait_seconds - Print listen state (ss/netstat) and curl result
verl/verl/tools/map_tool.py:51
↓ 1 callersFunctioncheck_module
Import *qualname* and check it (and sub-modules).
verl/tests/special_sanity/check_api_docs.py:92
↓ 1 callersFunctioncheck_network
(args)
verl/scripts/diagnose.py:151
↓ 1 callersFunctioncheck_os
()
verl/scripts/diagnose.py:126
↓ 1 callersFunctioncheck_output_path
(output_path: str)
verl/scripts/init_random_model.py:51
↓ 1 callersFunctioncheck_pip
()
verl/scripts/diagnose.py:78
↓ 1 callersFunctioncheck_pip_package_versions
()
verl/scripts/diagnose.py:177
↓ 1 callersFunctioncheck_pr_description
Compare the first NUM_LINES lines of the PR body to the template lines. If they match exactly, the placeholder was not modified.
verl/tests/special_sanity/check_pr_description.py:67
↓ 1 callersFunctioncheck_python
()
verl/scripts/diagnose.py:70
↓ 1 callersMethodcheck_storage_all
(self)
verl/tests/utils/test_linear_cross_entropy.py:344
↓ 1 callersFunctioncheck_system_info
()
verl/scripts/diagnose.py:253
↓ 1 callersFunctioncheck_textual_version
()
verl/scripts/rollout_viewer.py:42
↓ 1 callersMethodcheck_torch_storage
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:331
↓ 1 callersFunctioncheck_verl
()
verl/scripts/diagnose.py:101
↓ 1 callersFunctionchunked
(lst, n)
parallel_tts/verifier_test_multi.py:50
↓ 1 callersFunctionchunked
(lst, n)
parallel_tts/verifier_test_multi_api.py:49
↓ 1 callersFunctionclean_en_token
(token: str)
demo/qwen_agent/tools/search_tools/keyword_search.py:95
↓ 1 callersMethodcleanup
(self)
verl/verl/model_merger/megatron_model_merger.py:545
↓ 1 callersMethodcleanup
(self)
demo/qwen_agent/tools/mcp_manager.py:461
↓ 1 callersMethodclear_cpu_model
(self, n)
verl/recipe/fully_async_policy/fsdp_workers.py:148
↓ 1 callersMethodclear_queue
Clear the queue
verl/recipe/fully_async_policy/message_queue.py:143
↓ 1 callersMethodcode_interpreter
Execute the code in the sandbox. Args: code: The code to be executed. Returns: str: The output of the code e
verl/examples/tutorial/agent_loop_get_started/sandbox.py:28
↓ 1 callersFunctioncollate_fn
Collate a batch of sample dicts into batched tensors and arrays. Args: data_list: List of dicts mapping feature names to torch.Tenso
verl/verl/utils/dataset/rl_dataset.py:38
↓ 1 callersMethodcollate_variable_batch
Collates a list of samples into a single batch. Args: batch: A list of dictionary samples from the dataset. Ret
verl/verl/utils/dataset/dataset_utils.py:49
↓ 1 callersFunctioncollect_dp_compute
(worker_group, output)
verl/verl/single_controller/base/decorator.py:176
↓ 1 callersFunctioncollect_nd_compute
(collect_mask: list[bool], worker_group, output)
verl/verl/single_controller/base/decorator.py:254
↓ 1 callersFunctioncollect_nd_compute_dataproto
(collect_mask: list[bool], worker_group, output)
verl/verl/single_controller/base/decorator.py:273
↓ 1 callersFunctioncompare_results
(golden_results, other_result)
verl/tests/special_e2e/sft/compare_sft_engine_results.py:31
↓ 1 callersFunctioncompute_advantage
Compute advantage estimates for policy optimization. This function computes advantage estimates using various estimators like GAE, GRPO, REINFORC
verl/recipe/transfer_queue/ray_trainer.py:233
↓ 1 callersFunctioncompute_advantage
(data: DataProto, adv_estimator, config)
verl/recipe/prime/prime_ray_trainer.py:43
↓ 1 callersFunctioncompute_advantage
Compute advantage estimates for policy optimization. This function computes advantage estimates using various estimators like GAE, GRPO, REINFORC
verl/verl/trainer/ppo/ray_trainer.py:182
↓ 1 callersFunctioncompute_advantage
Compute advantage estimates for policy optimization. This function computes advantage estimates using various estimators like GAE, GRPO, REINFORC
verl/verl/trainer/ppo/ray_trainer_ts.py:213
↓ 1 callersFunctioncompute_ce_dpo_loss_rm
(token_level_scores, acc, response_mask, beta)
verl/recipe/prime/prime_core_algos.py:82
↓ 1 callersFunctioncompute_data_metrics_decorated
(batch, use_critic: bool = True)
verl/recipe/transfer_queue/ray_trainer.py:308
↓ 1 callersFunctioncompute_distance_score
(solution_str, ground_truth)
api_evaluation/api_test.py:56
↓ 1 callersFunctioncompute_distance_score
(solution_str, ground_truth, data_source=None, **kwargs)
verl/verl/utils/reward_score/localization.py:69
↓ 1 callersFunctioncompute_dpo_data_metrics
Computes and returns metrics relevant for the DPO-like process. Assumes 'batch' contains results after generation and preference marking,
verl/recipe/spin/spin_trainer.py:158
↓ 1 callersMethodcompute_flowrl_cispo_clip
( self, log_prob=None, ref_log_prob=None, old_log_prob=None, log_z=Non
verl/recipe/flowrl/flowrl_actor.py:441
↓ 1 callersMethodcompute_flowrl_cispo_clip_ablation
Ablation study: Remove hard CISPO mask, only use importance weight clipping. This version uses response_mask only (no condition-based
verl/recipe/flowrl/flowrl_actor.py:519
↓ 1 callersFunctioncompute_grpo_vectorized_outcome_advantage
Vectorized GRPO(outcome-only): For each group g: a_i = \\frac{r_i - \\mu_g}{\\sigma_g} (or without dividing by \\sigma_g), then
verl/verl/trainer/ppo/core_algos.py:334
↓ 1 callersFunctioncompute_is_metrics
Compute comprehensive metrics for truncated importance sampling weights. This function calculates statistics for truncated IS weights (TIS), usin
verl/verl/trainer/ppo/rollout_corr_helper.py:438
↓ 1 callersMethodcompute_log_prob
(self, data: DataProto)
verl/verl/workers/megatron_workers.py:825
↓ 1 callersMethodcompute_log_prob
(self, data: DataProto)
verl/verl/workers/engine_workers.py:130
↓ 1 callersMethodcompute_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/dp_actor.py:310
↓ 1 callersFunctioncompute_onlineDPO_pref
Wrapper to compute DPO preference and add it to the DataProto batch. Includes debugging prints.
verl/recipe/spin/spin_trainer.py:284
↓ 1 callersFunctioncompute_online_dpo_loss
( policy_chosen_logps: torch.Tensor, policy_rejected_logps: torch.Tensor, reference_chosen_logps:
verl/recipe/spin/core_algos.py:131
↓ 1 callersFunctioncompute_policy_loss_with_rollout_correction
Compute policy loss with pure rollout correction (no PPO clipping). This function implements policy gradient with importance sampling correction
verl/verl/trainer/ppo/core_algos.py:1628
↓ 1 callersFunctioncompute_position_id_with_mask
(mask)
verl/tests/single_controller/detached_worker/client.py:27
↓ 1 callersFunctioncompute_response_mask
(data: DataProto)
verl/recipe/spin/spin_trainer.py:277
↓ 1 callersFunctioncompute_response_mask
Compute the attention mask for the response part of the sequence. This function extracts the portion of the attention mask that corresponds to th
verl/recipe/transfer_queue/ray_trainer.py:206
↓ 1 callersFunctioncompute_response_mask
(data: DataProto)
verl/recipe/prime/prime_ray_trainer.py:120
↓ 1 callersMethodcompute_reward
Computing reward given input_ids. The transformers should output a tensor with shape [batch_size, sequence_length], and the value at [EOS]
verl/verl/workers/reward_model/base.py:42
↓ 1 callersFunctioncompute_reward_async_decorated
(data, reward_fn)
verl/recipe/transfer_queue/ray_trainer.py:160
↓ 1 callersFunctioncompute_reward_decorated
(data, reward_fn)
verl/recipe/transfer_queue/ray_trainer.py:155
↓ 1 callersFunctioncompute_rloo_outcome_advantage
Compute advantage for RLOO based on https://arxiv.org/abs/2402.14740 Args: token_level_rewards: `(torch.Tensor)` shape:
verl/verl/trainer/ppo/core_algos.py:519
↓ 1 callersFunctioncompute_rloo_vectorized_outcome_advantage
Compute advantage for RLOO based on https://arxiv.org/abs/2402.14740 Args: token_level_rewards: `(torch.Tensor)` shape:
verl/verl/trainer/ppo/core_algos.py:763
↓ 1 callersFunctioncompute_rollout_correction_weights
Compute importance sampling weights to correct for off-policy distribution shifts. This function calculates IS weights (π_train / π_rollout) usin
verl/verl/trainer/ppo/rollout_corr_helper.py:318
↓ 1 callersFunctioncompute_rollout_rejection_mask
Compute rejection mask for outlier handling in off-policy RL training. This function identifies and masks outlier tokens/sequences using precompu
verl/verl/trainer/ppo/rollout_corr_helper.py:82
↓ 1 callersFunctioncompute_rs_metrics
Compute comprehensive metrics for rejection sampling. This function calculates statistics for IS weights used in rejection sampling, balancin
verl/verl/trainer/ppo/rollout_corr_helper.py:196
↓ 1 callersFunctioncompute_score
(model_output: str, ground_truth: str)
verl/recipe/r1/tasks/math_reward.py:23
↓ 1 callersFunctioncompute_score
(predict_str: str, ground_truth: str, use_boxed: bool = True, format_score: float = 0.1)
verl/verl/utils/reward_score/geo3k.py:33
← previousnext →1,601–1,700 of 4,735, ranked by callers