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
compute_score_baseline
( solution_str: str, ground_truth: str, **kwargs, )
verl/recipe/fapo/reward_fn_reasoning_remote.py:37
↓ 1 callers
Function
compute_sppo_loss
SPPO Loss computation.
verl/recipe/sppo/dp_actor.py:34
↓ 1 callers
Function
compute_throughout_metrics_decorated
(batch, timing_raw: dict[str, float], n_gpus: int)
verl/recipe/transfer_queue/ray_trainer.py:318
↓ 1 callers
Function
compute_timing_metrics_decorated
(batch, timing_raw: dict[str, float])
verl/recipe/transfer_queue/ray_trainer.py:313
↓ 1 callers
Function
compute_total_num_group_envs
(task_suite: Benchmark)
verl/recipe/vla/prepare_libero_dataset.py:42
↓ 1 callers
Function
compute_val_reward_decorated
(reward_fn, data, return_dict)
verl/recipe/transfer_queue/ray_trainer.py:330
↓ 1 callers
Function
compute_value_loss
Compute the clipped value-function loss for PPO. Copied from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py#L1151
verl/verl/trainer/ppo/core_algos.py:1443
↓ 1 callers
Function
compute_weights
Compute importance weights for resampling based on scores. Args: scores (torch.Tensor): Tensor of scores to compute weights from.
verl/verl/trainer/ppo/core_algos.py:1566
↓ 1 callers
Function
concat_dict_to_str
(dict: dict, step)
verl/verl/utils/logger/aggregate_logger.py:26
↓ 1 callers
Function
concat_nested_tensors
(tensors: list[torch.Tensor])
verl/verl/utils/tensordict_utils.py:101
↓ 1 callers
Function
concat_tensordict
Concatenates tensordicts into a single tensordict on dim zero. Support nested tensor
verl/verl/utils/tensordict_utils.py:114
↓ 1 callers
Function
connect_to_redis_with_retry
尝试连接 Redis,如果失败则重试。
verl/tool_server/api_server_redis.py:658
↓ 1 callers
Function
contains_html_tags
(text: str)
demo/qwen_agent/utils/utils.py:226
↓ 1 callers
Function
convert_checkpoint_from_transformers_to_megatron_qwen2_5_vl
(hfmodel, mgmodel, hf_config)
verl/scripts/converter_hf_to_mcore.py:223
↓ 1 callers
Function
convert_fncall_to_text
(messages: List[Dict])
demo/qwen_agent/gui/utils.py:66
↓ 1 callers
Function
convert_gate_up_shard
(full_tensor, gate_name, up_name)
verl/verl/utils/megatron_utils.py:668
↓ 1 callers
Function
convert_hf_to_mcore
( hf_model_path, output_path, pp_size=1, ep_size=1, use_cpu_initialization=False, test=False, trust_remote
verl/scripts/converter_hf_to_mcore.py:445
↓ 1 callers
Function
convert_history_to_chatbot
(messages)
demo/qwen_agent/gui/utils.py:49
↓ 1 callers
Function
convert_json_to_parquet
(json_path, train_data_ratio, output_dir, seed)
verl/recipe/r1_ascend/json_to_parquet.py:46
↓ 1 callers
Function
convert_qkv_shard
(full_tensor, q_name, k_name, v_name)
verl/verl/utils/megatron_utils.py:620
↓ 1 callers
Function
copy_megatron_model_to_cpu
Copy Megatron model parameters to CPU memory (non-destructive copy). Unlike offload_megatron_model_to_cpu which moves data, this function cre
verl/recipe/fully_async_policy/megatron_utils.py:21
↓ 1 callers
Function
copy_to_shm
Load the model into /dev/shm to make the process of loading the model multiple times more efficient.
verl/verl/utils/fs.py:141
↓ 1 callers
Function
count_adapter_parameters
Count the number of trainable adapter parameters. Args: model: PyTorch model Returns: Tuple of (adapter_params, total_params
verl/verl/utils/megatron_peft_utils.py:186
↓ 1 callers
Function
count_answer_tags
(text)
verl/verl/utils/reward_score/search_r1_like_qa_em.py:89
↓ 1 callers
Function
count_unknown_letters_in_expr
(expr: str)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:856
↓ 1 callers
Function
count_unknown_letters_in_expr
(expr: str)
verl/verl/utils/reward_score/prime_math/__init__.py:193
↓ 1 callers
Function
covert_image_to_base64
(image_path)
demo/qwen_agent/gui/gradio_utils.py:18
↓ 1 callers
Function
create_actor_model
(tmp_path, config)
verl/tests/models/test_engine.py:278
↓ 1 callers
Function
create_colocated_worker_cls_fused
This function returns a RayClassWithInitArgs instance of FusedWorker, which is an replacement of `create_colocated_worker_cls`. WorkerGroup c
verl/verl/single_controller/ray/base.py:993
↓ 1 callers
Function
create_data_samples
()
verl/tests/experimental/reward/test_reward_model.py:41
↓ 1 callers
Function
create_device_mesh
Create a device mesh for distributed training based on the world size and FSDP size. Args: world_size (int): Total number of process
verl/verl/workers/engine/fsdp/utils.py:19
↓ 1 callers
Function
create_huggingface_actor
Args: model_name: override_config_kwargs: Returns:
verl/verl/utils/model.py:101
↓ 1 callers
Function
create_model
()
verl/tests/models/test_engine.py:162
↓ 1 callers
Function
create_nccl_communicator_in_ray
( rank: int, world_size: int, group_name: str, max_retries: int = 100, interval_s: int = 5 )
verl/verl/utils/rendezvous/ray_backend.py:45
↓ 1 callers
Function
create_prompt_response
(min_length=3, max_length=5)
verl/recipe/char_count/create_dataset.py:34
↓ 1 callers
Method
create_resource_pool
Create Ray resource pools for distributed training. Initializes resource pools based on the resource pool specification, with each po
verl/recipe/transfer_queue/ray_trainer.py:107
↓ 1 callers
Method
create_resource_pool
(self)
verl/verl/trainer/ppo/ray_trainer_ts.py:89
↓ 1 callers
Function
create_rl_sampler
Create a sampler for the dataset. Arguments: data_config: The data config. dataset (Dataset): The dataset. Returns:
verl/recipe/entropy/main_entropy.py:232
↓ 1 callers
Function
create_role_worker_mapping
Create mapping from roles to worker classes Args: config: Configuration object Returns: dict: Mapping from roles to wor
verl/recipe/fully_async_policy/fully_async_main.py:72
↓ 1 callers
Function
create_trainer
Create and initialize a trainer instance with the given config. Args: config: Configuration object with training parameters Returns:
verl/tests/special_e2e/sft/test_sp_loss_match.py:90
↓ 1 callers
Method
create_transferqueue_client
(self, config)
verl/verl/single_controller/base/worker.py:166
↓ 1 callers
Method
create_transferqueue_client_for_workers
(self)
verl/recipe/transfer_queue/agent_loop.py:83
↓ 1 callers
Method
create_weight_sync_group
(self)
verl/recipe/one_step_off_policy/ray_trainer.py:278
↓ 1 callers
Function
custom_compare_
(output, ground_truth)
verl/verl/utils/reward_score/prime_code/testing_util.py:556
↓ 1 callers
Method
data_stream
(self)
verl/recipe/fully_async_policy/unittest/simple_streaming_demo.py:30
↓ 1 callers
Function
dedup_by_prompt
(dataset)
verl/recipe/collabllm/process_dataset.py:186
↓ 1 callers
Method
delete
(self, key, path: Optional[str] = None)
demo/qwen_agent/tools/storage.py:94
↓ 1 callers
Function
detect_format_and_flatten
支持两种输入: 1) grouped: {api_name: {query: value}} 2) flat: {"api:query": value} 返回统一的 flat dict: {"api:query": value}
verl/tool_server/merge_cache.py:6
↓ 1 callers
Function
detect_robot_platform
()
verl/recipe/vla/models/openvla_oft/constants.py:67
↓ 1 callers
Function
diag_localhost_8001
(base_url: str, curl_timeout: float = 1.0)
verl/verl/tools/utils/api_utils.py:63
↓ 1 callers
Function
discover_allowed_modules
Return the set of first-level directories that tests may live under.
verl/tests/special_sanity/validate_structure.py:39
↓ 1 callers
Method
dispatch_fn
(x, i, chunks)
verl/verl/protocol.py:1210
↓ 1 callers
Function
dispatch_nd_compute
(dp_rank_mapping: list[int], dp_size, worker_group, *args, **kwargs)
verl/verl/single_controller/base/decorator.py:220
↓ 1 callers
Function
dispatch_nd_compute_dataproto
(dp_rank_mapping: list[int], dp_size, worker_group, *args, **kwargs)
verl/verl/single_controller/base/decorator.py:268
↓ 1 callers
Function
display_image_if_exists
Display image if it exists and Jupyter is available.
demo/qwen_agent/utils/output_beautify.py:62
↓ 1 callers
Function
distributed_masked_mean
Compute global mean of non-masked elements across distributed processes. Args: local_tensor (torch.Tensor): Input tensor with local value
verl/verl/utils/torch_functional.py:758
↓ 1 callers
Function
distributed_mean_max_min_std
Compute distributed statistics across all processes. Args: local_tensor: Tensor containing local values compute_max: Include maxi
verl/verl/utils/torch_functional.py:715
↓ 1 callers
Method
do_nothing
(self, data)
verl/tests/single_controller/test_data_transfer.py:38
↓ 1 callers
Function
download_files_distributed
(download_fn)
verl/verl/utils/dataset/rm_dataset.py:26
↓ 1 callers
Method
dp_compute
(self, data: DataProto)
verl/tests/single_controller/test_decorator_on_cpu.py:48
↓ 1 callers
Function
dump_data
(data, name)
verl/verl/utils/debug/trajectory_tracker.py:69
↓ 1 callers
Function
em_check
(prediction, golden_answers)
verl/verl/utils/reward_score/search_r1_like_qa_em.py:40
↓ 1 callers
Function
enable_memory_visualize
Enables memory history recording for CUDA allocations. This function should be called before any large-scale CUDA allocations. For DDP or
verl/verl/utils/memory_utils.py:146
↓ 1 callers
Method
enable_token2text
(cls)
verl/verl/utils/rollout_trace.py:112
↓ 1 callers
Function
encode_audio_as_base64
(path: str)
demo/qwen_agent/utils/utils.py:560
↓ 1 callers
Function
encode_image_as_base64
(path: str, max_short_side_length: int = -1)
demo/qwen_agent/utils/utils.py:545
↓ 1 callers
Function
encode_video_as_base64
(path: str)
demo/qwen_agent/utils/utils.py:565
↓ 1 callers
Function
entropy_from_logits
Calculate entropy from logits.
verl/verl/utils/torch_functional.py:145
↓ 1 callers
Method
exec_code
(self, code_piece: str)
demo/qwen_agent/tools/python_executor.py:46
↓ 1 callers
Method
execute
( code, get_answer_from_stdout=None, runtime=None, answer_symbol=None,
demo/qwen_agent/tools/python_executor.py:149
↓ 1 callers
Method
execute_func_rank_zero
Execute a function in rank zero execution mode. Args: func: Function to execute *args:
verl/verl/single_controller/base/worker.py:342
↓ 1 callers
Method
execute_function
(self, tool_name, tool_args: dict)
demo/qwen_agent/tools/mcp_manager.py:399
↓ 1 callers
Method
execute_with_func_generator
Execute a function with function generator dispatch mode. Args: func: Function to execute *args:
verl/verl/single_controller/base/worker.py:327
↓ 1 callers
Method
execute_with_retry
Executes a search query with a built-in retry mechanism.
verl/tool_server/api_server_redis.py:480
↓ 1 callers
Function
extract_all_json_objects
(text)
parallel_tts/traj_group.py:3
↓ 1 callers
Function
extract_all_json_objects
(text)
parallel_tts/traj_group_split_imageo.py:4
↓ 1 callers
Function
extract_all_json_objects
(text)
parallel_tts/traj_group_split_mapbench.py:5
↓ 1 callers
Function
extract_all_json_objects
从一个复杂字符串中提取所有可能的 JSON 对象(匹配大括号包围的内容) 如果括号嵌套复杂,可进一步用手动栈解析。
api_evaluation/api_test.py:9
↓ 1 callers
Function
extract_all_json_objects
从一个复杂字符串中提取所有可能的 JSON 对象(匹配大括号包围的内容) 如果括号嵌套复杂,可进一步用手动栈解析。
verl/verl/utils/reward_score/localization.py:22
↓ 1 callers
Function
extract_and_parse_json
Try to extract and parse JSON from a string. Args: input_string: The input string wrapper: JSON wrapper symbols, can be '{}'
verl/recipe/infigui-g1/reward_fn.py:73
↓ 1 callers
Function
extract_boxed_answer
Extract the answer from inside a LaTeX \\boxed{} command
verl/recipe/entropy/reward_score/entropy_math/__init__.py:950
↓ 1 callers
Function
extract_json
(s)
verl/recipe/collabllm/collabllm_interation.py:207
↓ 1 callers
Function
extract_program
extract the program after "```python", and before "```"
demo/qwen_agent/agents/tir_agent.py:33
↓ 1 callers
Function
extract_reward_from_line
(line)
verl/tests/special_e2e/check_results.py:20
↓ 1 callers
Function
extract_solution
Expect JSON like {"lat": 12.34, "lon": 56.78, "city":"...", "country":"..."}. Robust: try to find {...} then json.loads; fallback regex.
parallel_tts/verifier_test_multi.py:56
↓ 1 callers
Function
extract_solution
(solution_str: str)
parallel_tts/verifier_test_multi_api.py:131
↓ 1 callers
Function
extract_solution
(solution_str)
parallel_tts/traj_group.py:35
↓ 1 callers
Function
extract_solution
(solution_str)
api_evaluation/api_test.py:48
↓ 1 callers
Function
extract_solution
(solution_str, method="strict")
verl/verl/utils/reward_score/gsm8k.py:20
↓ 1 callers
Function
extract_solution
(solution_str)
verl/verl/utils/reward_score/localization.py:61
↓ 1 callers
Function
extract_solution
(solution_str)
verl/examples/data_preprocess/gsm8k_tool_agent_loop.py:29
↓ 1 callers
Function
extract_solution
(solution_str)
verl/examples/data_preprocess/gsm8k_multiturn_w_interaction.py:29
↓ 1 callers
Function
extract_solution
(solution_str)
verl/examples/data_preprocess/gsm8k.py:27
↓ 1 callers
Function
extract_solution
(solution_str)
verl/examples/data_preprocess/gsm8k_multiturn_w_tool.py:29
↓ 1 callers
Function
extract_solution
(solution_str)
verl/examples/data_preprocess/math_dataset.py:28
↓ 1 callers
Function
extract_tables
(pdf, page_num)
demo/qwen_agent/tools/simple_doc_parser.py:349
↓ 1 callers
Function
extract_think_format
Check if the predicted string meets format requirements and extract thinking and answer parts. Args: predict_str: The predicted stri
verl/recipe/infigui-g1/reward_fn.py:30
↓ 1 callers
Method
extract_tool_calls
(self, responses_ids: list[int])
verl/verl/experimental/agent_loop/tool_parser.py:134
↓ 1 callers
Method
fetch_tool_schemas
(self, tool_selected_list: list[str])
verl/verl/tools/utils/mcp_clients/McpClientManager.py:67
↓ 1 callers
Method
filter_and_downsample
downsample the batch according to oversample_factor samples passing the filters will be prioritized
verl/recipe/prime/prime_ray_trainer.py:557
← previous
next →
1,701–1,800 of 4,735, ranked by callers