MCPcopy Create free account

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

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

↓ 2 callersMethodgenerate_response
Generates a response for the current turn of interaction. Returns a tuple containing: - should_terminate_sequence (bool): Tru
verl/verl/interactions/base.py:39
↓ 2 callersMethodgenerate_sequences
(self, prompts: DataProto, sampling_params: dict)
verl/verl/experimental/reward/reward_model.py:132
↓ 2 callersMethodget
(self)
verl/verl/protocol.py:1219
↓ 2 callersFunctionget_avatar_image
(name: str = 'user')
demo/qwen_agent/gui/utils.py:42
↓ 2 callersFunctionget_batch_logps
Compute the log probabilities of the given labels under the given logits. Args: logits: Logits of the model (e.g., huggingface Causa
verl/recipe/spin/core_algos.py:161
↓ 2 callersFunctionget_common_default_kwargs_for_parallel_linear
()
verl/verl/utils/megatron/tensor_parallel.py:52
↓ 2 callersFunctionget_data
()
verl/verl/utils/tensordict_utils.py:294
↓ 2 callersMethodget_data_parallel_size
(self)
verl/verl/workers/engine/fsdp/transformer_impl.py:466
↓ 2 callersFunctionget_entropy_reduction_enum
Get the enum for the reduction method of cross entropy.
verl/verl/utils/kernel/kernels.py:99
↓ 2 callersMethodget_env_fn_params
(self, env_idx=None)
verl/recipe/vla/envs/libero_env/libero_env.py:115
↓ 2 callersFunctionget_gsm8k_data
()
verl/tests/utils/dataset/test_rl_dataset_on_cpu.py:21
↓ 2 callersFunctionget_hf_auto_model_class
(hf_config)
verl/verl/utils/model.py:665
↓ 2 callersFunctionget_huggingface_actor_config
(model_name: str, override_config_kwargs=None, trust_remote_code=False)
verl/verl/utils/model.py:72
↓ 2 callersFunctionget_mcore_forward_no_padding_fn
Get the forward function for given model architecture.
verl/verl/models/mcore/registry.py:244
↓ 2 callersFunctionget_npu_profiler
Generate and return an NPU profiler object. Args: contents (list[str]): A list of options to control the collection content,
verl/verl/utils/profiler/mstx_profile.py:89
↓ 2 callersFunctionget_peft_cls
Get PEFT class from model config. Args: model_config: Model configuration object. bridge: Megatron-Bridge AutoBridge instance.
verl/verl/workers/config/megatron_peft.py:17
↓ 2 callersMethodget_per_tensor_param
Get a generator that yields per-tensor parameters and optional peft config. Returns: Generator[tuple[str, torch.Tensor]]
verl/verl/workers/engine/base.py:129
↓ 2 callersFunctionget_plain_doc
(doc: list)
demo/qwen_agent/tools/simple_doc_parser.py:371
↓ 2 callersMethodget_ray_class_with_init_args
Get rollout worker actor class for colocated and standalone mode.
verl/verl/workers/rollout/replica.py:186
↓ 2 callersMethodget_reset_state_ids_all
(self)
verl/recipe/vla/envs/libero_env/libero_env.py:157
↓ 2 callersFunctionget_result
(file)
verl/tests/special_e2e/sft/compare_sft_engine_results.py:21
↓ 2 callersFunctionget_rope_index
Gets the position ids for GLM4V in padding-free format. The batch dim has been removed and the input_ids should be a 1D tensor representing a
verl/verl/models/transformers/glm4v.py:64
↓ 2 callersMethodget_router_address
(self)
verl/verl/experimental/reward/reward_model.py:101
↓ 2 callersMethodget_state
(self)
verl/recipe/vla/envs/isaac_env/isaac_env.py:302
↓ 2 callersMethodget_statistics
(self)
verl/recipe/fully_async_policy/fully_async_rollouter.py:695
↓ 2 callersMethodget_statistics_sync
Get statistics (sync - deprecated, use get_statistics instead)
verl/recipe/fully_async_policy/message_queue.py:259
↓ 2 callersFunctionget_tensordict
Create a TensorDict from tensors and non-tensor data. Automatically handles nested structures in lists by converting them to NonTensorStack.
verl/verl/utils/tensordict_utils.py:145
↓ 2 callersMethodget_topk
(self, chunk_and_score: List[Tuple[str, int, float]], docs: List[Record],
demo/qwen_agent/tools/search_tools/base_search.py:107
↓ 2 callersFunctionget_trajectory_tracker
()
verl/verl/utils/debug/trajectory_tracker.py:79
↓ 2 callersMethodget_transformers_auto_model_class
(self)
verl/scripts/legacy_model_merger.py:115
↓ 2 callersMethodget_transformers_auto_model_class
(self)
verl/verl/model_merger/base_model_merger.py:191
↓ 2 callersFunctionget_ulysses_sequence_parallel_rank
Get ulysses sequence parallel rank.
verl/verl/utils/ulysses.py:54
↓ 2 callersFunctionget_upper_triangle
(tensor_x)
verl/recipe/prime/prime_core_algos.py:126
↓ 2 callersMethodget_vocab
(self)
verl/tests/special_e2e/envs/digit_completion/tokenizer.py:86
↓ 2 callersFunctiongrade
(model_answer: str, gt_answer: str, fast: bool = True)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:1013
↓ 2 callersFunctionhighlight_keyword
(content: str, keyword: Optional[str])
verl/scripts/rollout_viewer.py:100
↓ 2 callersMethodhijack
()
verl/verl/utils/vllm/utils.py:33
↓ 2 callersMethodinit
(self)
verl/tests/single_controller/test_worker_group_torch.py:34
↓ 2 callersMethodinit_hybrid
Init hybrid rollout server, rollout engine and training engine(fsdp/megatron) fused in same process. Args: worker_group: RayWorke
verl/verl/workers/rollout/replica.py:122
↓ 2 callersMethodinit_model
(self)
verl/verl/workers/fsdp_workers.py:754
↓ 2 callersMethodinit_resource_pool_mgr
Initialize resource pool manager.
verl/verl/trainer/main_ppo.py:198
↓ 2 callersFunctioninit_totals
()
parallel_tts/verifier_test_multi_api.py:54
↓ 2 callersMethodinit_workers
Initialize distributed training workers using Ray backend. Creates: 1. Ray resource pools from configuration 2. Worker groups
verl/verl/trainer/ppo/ray_trainer.py:674
↓ 2 callersMethodinitialize
(self, test_case_idx: int, temperature: float = 1.5)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:192
↓ 2 callersMethodinitialize
(self, config_path, rate_limit: float = 10.0)
verl/verl/tools/utils/mcp_clients/McpClientManager.py:35
↓ 2 callersFunctioninitialize_dashscope
(cfg: Optional[Dict] = None)
demo/qwen_agent/llm/qwen_dashscope.py:162
↓ 2 callersFunctionis_empty_value
判断一个值是否为空: - None - 字符串为纯空白 - 字符串只含 Markdown代码围栏 ```(可能伴随换行、空格)
verl/tool_server/clean_cache.py:4
↓ 2 callersMethodis_padding_enabled
Check if padding is enabled for the DataProto. Returns: bool: True if padding is enabled, False otherwise.
verl/verl/protocol.py:847
↓ 2 callersFunctionis_tensor_parallel_param
(param)
verl/verl/utils/megatron/tensor_parallel.py:95
↓ 2 callersFunctionis_version_ge
check if the package version is greater than or equal to the minimum version
verl/verl/utils/vllm/utils.py:120
↓ 2 callersFunctionlist_of_dict_to_dict_of_list
Convert a list of dictionaries to a dictionary of lists. Args: list_of_dict: List of dictionaries with same keys Returns:
verl/recipe/vla/envs/action_utils.py:218
↓ 2 callersFunctionload_adapter_checkpoint
Load adapter parameters from checkpoint. Loads from Megatron's distributed checkpoint structure: reads from checkpoint_path/mp_rank_{tp:02d}_
verl/verl/utils/megatron_peft_utils.py:125
↓ 2 callersMethodload_checkpoint
Load an FSDP checkpoint for this rank. Downloads and loads: - model and optimizer shards - extra state dict (sch
verl/verl/utils/checkpoint/fsdp_checkpoint_manager.py:98
↓ 2 callersFunctionload_corpus
(corpus_path: str)
verl/examples/sglang_multiturn/search_r1_like/local_dense_retriever/retrieval_server.py:34
↓ 2 callersFunctionload_dist_checkpointing
(sharded_state_dict, ckpt_dir)
verl/verl/utils/megatron/dist_checkpointing.py:47
↓ 2 callersMethodload_from_disk
(filepath)
verl/verl/protocol.py:438
↓ 2 callersFunctionload_path
(p: Path, data: dict, mask_strs: str, idx: int, pbar)
verl/scripts/rollout_viewer.py:54
↓ 2 callersFunctionload_state_dict_to_megatron_gptmodel
Load merged state_dict to sharded Megatron module in training.
verl/verl/models/mcore/loader.py:56
↓ 2 callersMethodlog
(self, func, *args, **kwargs)
verl/verl/utils/profiler/performance.py:109
↓ 2 callersFunctionlog_probs_from_logits_all_rmpad
Compute the log_probs from logits with rmpad input_ids and logits. Note that logits_rmpad = model(input_ids_rmpad). For each sentences, there is a
verl/verl/utils/torch_functional.py:465
↓ 2 callersFunctionls_apply_patch
(ls_module: LayerScale)
verl/recipe/vla/models/openvla_oft/modeling_prismatic.py:76
↓ 2 callersFunctionmake_map_fn
(data_source)
verl/recipe/open_math_reasoning/prepare_eval_dataset.py:29
↓ 2 callersFunctionmake_map_fn
(split)
verl/examples/data_preprocess/gsm8k_multiturn_sft.py:60
↓ 2 callersFunctionmake_map_fn
(split)
verl/examples/data_preprocess/gsm8k_tool_agent_loop.py:62
↓ 2 callersFunctionmake_map_fn
(split)
verl/examples/data_preprocess/gsm8k_multiturn_w_interaction.py:62
↓ 2 callersFunctionmake_map_fn
(split)
verl/examples/data_preprocess/geo3k.py:58
↓ 2 callersFunctionmake_map_fn
(split)
verl/examples/data_preprocess/gsm8k.py:60
↓ 2 callersFunctionmake_map_fn
(split)
verl/examples/data_preprocess/gsm8k_multiturn_w_tool.py:62
↓ 2 callersFunctionmake_map_fn
(split)
verl/examples/data_preprocess/geo3k_multiturn_w_tool.py:60
↓ 2 callersFunctionmake_map_fn
(split)
verl/examples/data_preprocess/math_dataset.py:63
↓ 2 callersMethodmake_minibatch_iterator
Make minibatch iterator for updating the actor Args: data (DataProto): a DataProto containing keys ``input_ids``
verl/verl/workers/actor/megatron_actor.py:282
↓ 2 callersFunctionmark_end_range
End a mark range in the profiler. Args: range_id (str): The id of the mark range to end.
verl/verl/utils/profiler/nvtx_profile.py:48
↓ 2 callersFunctionmark_start_range
Start a mark range in the profiler. Args: message (str, optional): The message to be displayed in the profiler. Defaults to N
verl/verl/utils/profiler/nvtx_profile.py:27
↓ 2 callersFunctionmasked_rloo
(reward_tensor_original, mask_tensor)
verl/recipe/prime/prime_core_algos.py:23
↓ 2 callersFunctionmath_equal
Exact match of math if and only if: 1. numerical equal: both can convert to float and are equal 2. symbolic equal: both can convert to sy
verl/verl/utils/reward_score/prime_math/grader.py:174
↓ 2 callersMethodmaybe_filter_out_long_prompts
(self, dataframe: datasets.Dataset = None)
verl/verl/utils/dataset/rl_dataset.py:175
↓ 2 callersFunctionmaybe_patch_fsdp_module
(model)
verl/verl/utils/fsdp_utils.py:489
↓ 2 callersFunctionmcp2openai
Convert a MCP Tool to an OpenAI ChatCompletionTool.
verl/verl/tools/utils/mcp_clients/utils.py:45
↓ 2 callersFunctionmd5_encode
Generate an MD5 hash of a path string. This function is used to create unique identifiers for paths, typically for creating cache directories
verl/verl/utils/fs.py:46
↓ 2 callersMethodmy_method_with_exception
(self)
verl/tests/utils/test_rollout_trace_on_cpu.py:62
↓ 2 callersFunctionneed_critic
Given a config, do we need critic.
verl/verl/trainer/ppo/utils.py:86
↓ 2 callersFunctionnormalize
(answer, pi)
verl/recipe/entropy/reward_score/entropy_math/grader.py:121
↓ 2 callersFunctionnormalize
(answer, pi)
verl/verl/utils/reward_score/prime_math/grader.py:121
↓ 2 callersFunctionnormalize_final_answer
Normalize a final answer to a quantitative reasoning question. This code comes from https://arxiv.org/pdf/2206.14858.pdf, page18.
verl/recipe/entropy/reward_score/entropy_math/__init__.py:440
↓ 2 callersFunctionnormalize_model_name
Transform the model name in each model_chunk in each pp stage into the name in inference engine
verl/verl/utils/model.py:323
↓ 2 callersFunctionnp__deltas
(N: int, K: int)
verl/verl/trainer/ppo/unit_test.py:37
↓ 2 callersFunctionnpu_group_gemm
(x, weight, group_list)
verl/verl/models/transformers/npu_patch.py:84
↓ 2 callersMethodoffload
Offload.
verl/verl/utils/activation_offload.py:173
↓ 2 callersMethodoffload_params_to_cpu
(self)
verl/verl/workers/reward_model/megatron/reward_model.py:335
↓ 2 callersMethodon_group_commit_forward
On group commit forward.
verl/verl/utils/activation_offload.py:161
↓ 2 callersFunctionpad_2d_list_to_length
pad a 2D list (e.g. responses, logprobs) to a 2D tensor.
verl/verl/utils/torch_functional.py:307
↓ 2 callersFunctionpad_sequence_to_length
pad a 2D tensors (e.g. responses, logprobs) in the last dim to max_seq_length. input shape: [bs, seq_length] output shape: [bs, max_seq_l
verl/recipe/vla/naive_rollout_rob.py:45
↓ 2 callersMethodpadding
Pad the DataProto by concating with padding_candidate.repeat(padding_size) Args: padding_size (int): the number of repeated paddi
verl/verl/protocol.py:856
↓ 2 callersFunctionparallel_compute_score_async
( evaluation_func, completions, references, tasks, extra_info=None, num_processes=64 )
verl/verl/workers/reward_manager/prime.py:44
↓ 2 callersFunctionparse_string
(s, pos)
verl/recipe/collabllm/collabllm_interation.py:240
↓ 2 callersFunctionparse_string
(s, pos)
verl/recipe/collabllm/utils.py:86
↓ 2 callersFunctionpostprocess_batch_func
postprocess the output of a forward_backward_batch. output_lst is a list of dict containing outputs for each micro-batch reorder entropy and o
verl/verl/workers/engine/utils.py:59
↓ 2 callersMethodpostprocess_data
(self, data: DataProto)
verl/verl/workers/sharding_manager/base.py:34
↓ 2 callersFunctionpostprocess_packed_seqs_for_dict_output
_summary_ For fused kernels, the output is a dictionary with keys like 'log_probs', 'entropy', etc. This function post-processes each tensor i
verl/verl/models/mcore/util.py:404
↓ 2 callersFunctionpostprocess_packed_seqs_no_padding
Postprocess packed sequences
verl/verl/models/mcore/util.py:277
← previousnext →901–1,000 of 4,735, ranked by callers