Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AMAP-ML/Thinking-with-Map
/ functions
Functions
4,735 in github.com/AMAP-ML/Thinking-with-Map
⨍
Functions
4,735
◇
Types & classes
687
↳
Endpoints
185
↓ 1 callers
Function
get_model_size
(model: nn.Module, scale="auto")
verl/verl/utils/model.py:147
↓ 1 callers
Function
get_module_from_param_name
(model, name: str)
verl/verl/utils/vllm/vllm_fp8_utils.py:61
↓ 1 callers
Method
get_n_gpus
Get the number of gpus in this cluster.
verl/recipe/transfer_queue/ray_trainer.py:131
↓ 1 callers
Method
get_n_gpus
Get the number of gpus in this cluster.
verl/verl/trainer/ppo/ray_trainer.py:99
↓ 1 callers
Method
get_n_gpus
Get the number of gpus in this cluster.
verl/verl/trainer/ppo/ray_trainer_ts.py:106
↓ 1 callers
Function
get_nccl_id_store_by_name
(name)
verl/verl/utils/rendezvous/ray_backend.py:32
↓ 1 callers
Function
get_next_actions_mask
(token_ids)
verl/recipe/vla/models/openvla_oft/train_utils.py:41
↓ 1 callers
Method
get_output_embeddings
(self)
verl/recipe/vla/models/openvla_oft/modeling_prismatic.py:385
↓ 1 callers
Method
get_partitions
(self)
verl/verl/utils/seqlen_balancing.py:70
↓ 1 callers
Function
get_predefined_execute_fn
Note that here we only asks execute_all and execute_rank_zero to be implemented Leave the choice of how these two functions handle argument '
verl/verl/single_controller/base/decorator.py:377
↓ 1 callers
Function
get_py_files
get py files under a dir. if already py file return it Args: path_arg (Path): path to scan for py files Returns: Iterable[Pa
verl/tests/special_sanity/check_license.py:43
↓ 1 callers
Method
get_queue_size
Get current queue length
verl/recipe/fully_async_policy/message_queue.py:125
↓ 1 callers
Method
get_rag_files
(self, messages: List[Message])
demo/qwen_agent/memory/memory.py:146
↓ 1 callers
Function
get_refine_size
(original_size, grid, scale_resolution, patch_size, allow_upscale=False)
verl/recipe/minicpmo/rl_dataset.py:270
↓ 1 callers
Function
get_response
(problem, solution_str, ground_truth)
verl/recipe/genrm_remote/reward_function.py:45
↓ 1 callers
Function
get_retriever
(config)
verl/examples/sglang_multiturn/search_r1_like/local_dense_retriever/retrieval_server.py:273
↓ 1 callers
Function
get_reward_loop_manager_cls
Get the reward loop manager class with a given name. Args: name: `(str)` The name of the reward loop manager. Returns:
verl/verl/experimental/reward/reward_loop/registry.py:43
↓ 1 callers
Method
get_rng_state
collect rng state across data parallel ranks
verl/verl/utils/checkpoint/megatron_checkpoint_manager.py:161
↓ 1 callers
Function
get_rope_index
Calculate the 3D rope index based on image and video's temporal, height and width in LLM. Explanation: Each embedding sequence cont
verl/verl/models/mcore/qwen2_5_vl/rope_utils.py:32
↓ 1 callers
Method
get_rope_scaling_args
Get rope scaling args.
verl/verl/models/mcore/model_initializer.py:41
↓ 1 callers
Method
get_sample_sync
Get single sample from queue (sync - deprecated, use get_sample instead)
verl/recipe/fully_async_policy/message_queue.py:255
↓ 1 callers
Function
get_sandbox_fusion_messages
()
verl/tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:46
↓ 1 callers
Function
get_search_messages
()
verl/tests/workers/rollout/test_sglang_async_rollout_mcp_tools.py:52
↓ 1 callers
Function
get_search_messages
()
verl/tests/workers/rollout/test_sglang_async_rollout_search_tools.py:56
↓ 1 callers
Function
get_sharding_strategy
Determine the appropriate sharding strategy based on the number of dimensions of the device mesh. Args: device_mesh (torch.distribut
verl/verl/workers/engine/fsdp/utils.py:40
↓ 1 callers
Method
get_supported_archs
()
verl/verl/models/registry.py:61
↓ 1 callers
Method
get_temperature_date
Get temperature at a location and date. Args: location: The location to get the temperature for, in the format "City, State, Coun
verl/tests/experimental/agent_loop/test_basic_agent_loop.py:166
↓ 1 callers
Method
get_tensors
(self)
verl/tests/single_controller/test_ray_collectives.py:67
↓ 1 callers
Function
get_tool_call_parser_type
( processing_class: PreTrainedTokenizer | PreTrainedTokenizerFast | ProcessorMixin, )
verl/verl/workers/rollout/sglang_rollout/sglang_rollout.py:230
↓ 1 callers
Function
get_tool_class
(cls_name)
verl/verl/tools/utils/tool_registry.py:68
↓ 1 callers
Method
get_tool_parser
(cls, name: str, tokenizer)
verl/verl/experimental/agent_loop/tool_parser.py:61
↓ 1 callers
Function
get_transferqueue_client
()
verl/verl/utils/transferqueue_utils.py:56
↓ 1 callers
Function
get_transformer_config_checkpoint_path
(checkpoint_path)
verl/verl/utils/megatron_utils.py:604
↓ 1 callers
Function
get_transformer_layer_offset
Get the index offset of any pipeline stage, given the level of pipelining. Make pipeline_rank and vp_stage as two arguments to make it more
verl/verl/utils/megatron_utils.py:1039
↓ 1 callers
Method
get_transformer_layer_spec
Get the transformer layer specification. https://github.com/NVIDIA/Megatron-LM/blob/main/megatron/core/models/gpt/gpt_layer_specs.py
verl/verl/models/mcore/model_initializer.py:36
↓ 1 callers
Method
get_transformer_layer_spec
(self, vp_stage=None)
verl/verl/models/mcore/model_initializer.py:172
↓ 1 callers
Method
get_transformer_layer_spec
(self, vp_stage=None)
verl/verl/models/mcore/model_initializer.py:209
↓ 1 callers
Method
get_validate_sync
(self)
verl/recipe/fully_async_policy/message_queue.py:217
↓ 1 callers
Method
get_value
(self)
verl/tests/utils/_test_module.py:23
↓ 1 callers
Function
get_vision_model_config
(config: TransformerConfig)
verl/verl/models/mcore/qwen2_5_vl/vision_config.py:22
↓ 1 callers
Function
get_vision_projection_config
( config: TransformerConfig, embed_dim: int, spatial_merge_size: int )
verl/verl/models/mcore/qwen2_5_vl/vision_config.py:68
↓ 1 callers
Function
get_weight_buffer_meta_from_module
Return a dictionary containing name to a shape and dtype.
verl/verl/utils/memory_buffer.py:62
↓ 1 callers
Function
get_weight_loader
(arch: str)
verl/verl/models/weight_loader_registry.py:16
↓ 1 callers
Function
get_weight_saver
(arch: str)
verl/verl/models/weight_loader_registry.py:32
↓ 1 callers
Method
get_window_index
(self, grid_thw)
verl/verl/models/mcore/qwen2_5_vl/vision_model.py:191
↓ 1 callers
Function
get_wsd_schedule_with_warmup
Create a Warmup-Stable-Decay learning rate scheduler. The schedule follows three phases: 1. Warmup: Learning rate increases linearly fro
verl/verl/utils/torch_functional.py:647
↓ 1 callers
Function
grade_answer_mathd
(given_answer: str, ground_truth: str)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:997
↓ 1 callers
Function
grade_answer_sympy
(given_answer: str, ground_truth: str)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:957
↓ 1 callers
Method
groupid_reset
Groupid reset.
verl/verl/utils/activation_offload.py:151
↓ 1 callers
Function
handle_base
(x)
verl/recipe/entropy/reward_score/entropy_math/grader.py:141
↓ 1 callers
Function
handle_base
(x)
verl/verl/utils/reward_score/prime_math/grader.py:141
↓ 1 callers
Function
handle_pi
(string, pi)
verl/recipe/entropy/reward_score/entropy_math/grader.py:150
↓ 1 callers
Function
handle_pi
(string, pi)
verl/verl/utils/reward_score/prime_math/grader.py:150
↓ 1 callers
Function
handler
(signum, frame)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:45
↓ 1 callers
Function
handler
(signum, frame)
verl/verl/utils/py_functional.py:84
↓ 1 callers
Function
has_type_annotations
(node: ast.AST, debug: bool = False)
verl/tests/special_sanity/type_coverage_check.py:69
↓ 1 callers
Function
hydra_entry
(cfg: DictConfig)
verl/tests/special_e2e/sft/test_sp_loss_match.py:147
↓ 1 callers
Function
image_path_to_data_url_resized
(path_or_fileurl: str, max_side: int = 1024)
parallel_tts/verifier_test_multi.py:30
↓ 1 callers
Function
image_path_to_data_url_resized
(path_or_fileurl: str, max_side: int = 1024)
parallel_tts/verifier_test_multi_api.py:29
↓ 1 callers
Function
image_to_data_url
(image_path)
api_evaluation/vllm_gen.py:28
↓ 1 callers
Function
image_to_data_url
(image_path)
api_evaluation/api_gen.py:23
↓ 1 callers
Method
incr
(self, delta: int = 1)
verl/tool_server/api_server_redis.py:72
↓ 1 callers
Method
initConfig
(self, config: Dict)
demo/qwen_agent/tools/mcp_manager.py:138
↓ 1 callers
Method
init_cache_engine
(self)
verl/recipe/r1_ascend/vllm_rollout_spmd.py:224
↓ 1 callers
Method
init_class
Initialize class state shared across all instances.
verl/verl/experimental/reward/reward_loop/base.py:56
↓ 1 callers
Method
init_colocated
Init colocated rollout server, rollout engine and hybrid engine colocated in same ray placement group but in separate processes. Args
verl/verl/workers/rollout/replica.py:135
↓ 1 callers
Function
init_config
(n_gpus_per_node)
verl/tests/workers/rollout/perf/vllm_async_rollout.py:48
↓ 1 callers
Method
init_config_async
(self, config: Dict)
demo/qwen_agent/tools/mcp_manager.py:151
↓ 1 callers
Function
init_minicpmo_config
Initialize MiniCPM-o specific configuration
verl/recipe/minicpmo/rl_dataset.py:343
↓ 1 callers
Method
init_model
(self)
verl/recipe/vla/fsdp_workers.py:195
↓ 1 callers
Function
init_parallel_state
(tensor_parallel_size)
verl/recipe/r1_ascend/vllm_parallel_state.py:83
↓ 1 callers
Function
init_predefined_dispatch_mode
()
verl/verl/single_controller/base/decorator.py:42
↓ 1 callers
Function
init_predefined_execute_mode
()
verl/verl/single_controller/base/decorator.py:65
↓ 1 callers
Function
init_random_model
(hf_model_path, new_config_path, output_path, trust_remote_code: bool = False)
verl/scripts/init_random_model.py:77
↓ 1 callers
Function
init_search_execution_pool
Initialize search execution pool.
verl/verl/tools/map_tool.py:162
↓ 1 callers
Function
init_search_execution_pool
Initialize search execution pool.
verl/verl/tools/search_tool.py:103
↓ 1 callers
Function
init_visual_execution_pool
Initialize visual execution pool.
verl/verl/tools/image_zoom_in_tool_qwen3vl.py:101
↓ 1 callers
Function
init_visual_execution_pool
Initialize visual execution pool.
verl/verl/tools/image_zoom_in_tool.py:101
↓ 1 callers
Method
init_workers
Initialize distributed training workers using Ray backend. Creates: 1. Ray resource pools from configuration 2. Worker groups
verl/recipe/transfer_queue/ray_trainer.py:869
↓ 1 callers
Method
init_workers
Initialize distributed training workers using Ray backend. Creates: 1. Ray resource pools from configuration 2. Worker groups
verl/recipe/one_step_off_policy/ray_trainer.py:170
↓ 1 callers
Method
init_workers
(self)
verl/recipe/vla/rob_ray_trainer.py:112
↓ 1 callers
Method
init_workers
Initialize distributed training workers using Ray backend. Creates: 1. Ray resource pools from configuration 2. Worker groups
verl/recipe/fully_async_policy/ray_trainer.py:53
↓ 1 callers
Function
initialize
(config, backend)
verl/tests/workers/rollout/perf/vllm_async_rollout.py:77
↓ 1 callers
Function
initialize_mcp_tool
(tool_cls, tool_config)
verl/verl/tools/utils/tool_registry.py:36
↓ 1 callers
Function
initialize_system_prompt
Initialize system prompt tokens for chat templates that support them. Args: tokenizer: The tokenizer with a chat template **
verl/verl/utils/chat_template.py:11
↓ 1 callers
Function
input
(*args, **kwargs)
demo/qwen_agent/tools/resource/code_interpreter_init_kernel.py:30
↓ 1 callers
Method
intersect
(self, other: "ProfilerConfig")
verl/verl/utils/profiler/config.py:138
↓ 1 callers
Function
invert_gripper_action
Flip the sign of the gripper action (last dimension of action vector). This is necessary for environments where -1 = open, +1 = close, since
verl/recipe/vla/envs/libero_env/utils.py:119
↓ 1 callers
Function
is_allowed
Return True if `path` matches any entry in ALLOW_LIST.
verl/tests/special_sanity/check_docs_time_info.py:41
↓ 1 callers
Function
is_correct_minerva
Check if the solution is correct according to Minerva criteria. Args: solution_str: The solution string to check gt: The ground t
verl/verl/utils/reward_score/math_dapo.py:165
↓ 1 callers
Function
is_correct_strict_box
Check if the prediction is correct using strict boxed answer criteria. Args: pred: The prediction string gt: The ground truth ans
verl/verl/utils/reward_score/math_dapo.py:193
↓ 1 callers
Method
is_empty
(self)
verl/verl/tools/schemas.py:119
↓ 1 callers
Function
is_equiv
(str1, str2, verbose=False)
verl/verl/utils/reward_score/math_reward.py:32
↓ 1 callers
Function
is_fp8_model
(vllm_config)
verl/verl/utils/vllm/vllm_fp8_utils.py:52
↓ 1 callers
Function
is_fp8_weight
(name, model)
verl/verl/utils/vllm/vllm_fp8_utils.py:91
↓ 1 callers
Function
is_ipv6
Check if the given string is an IPv6 address Args: ip_str: The IP address string to check Returns: bool: Returns True i
verl/verl/utils/net_utils.py:47
↓ 1 callers
Function
is_latex_equal
(given_answer: str, ground_truth: str)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:629
↓ 1 callers
Function
is_roman_numeral
(s)
demo/qwen_agent/agents/write_from_scratch.py:28
↓ 1 callers
Method
is_text_only
(self)
verl/verl/tools/schemas.py:122
↓ 1 callers
Function
is_tool_schema
Check if obj is a valid JSON schema describing a tool compatible with OpenAI's tool calling. Example valid schema: { "name": "get_c
demo/qwen_agent/tools/base.py:62
← previous
next →
1,901–2,000 of 4,735, ranked by callers