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
find_coords_json
(text)
parallel_tts/traj_group.py:22
↓ 1 callers
Function
find_coords_json
(text)
parallel_tts/traj_group_split_imageo.py:23
↓ 1 callers
Function
find_coords_json
(text)
parallel_tts/traj_group_split_mapbench.py:24
↓ 1 callers
Function
find_coords_json
提取包含 lat/lon/city/country 的 JSON 对象
api_evaluation/api_test.py:32
↓ 1 callers
Function
find_coords_json
提取包含 lat/lon/city/country 的 JSON 对象
verl/verl/utils/reward_score/localization.py:45
↓ 1 callers
Function
find_violations
Return a list of error strings for test files in the wrong place.
verl/tests/special_sanity/validate_structure.py:46
↓ 1 callers
Method
fit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to const
verl/recipe/transfer_queue/ray_trainer.py:1240
↓ 1 callers
Method
fit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to const
verl/recipe/one_step_off_policy/ray_trainer.py:400
↓ 1 callers
Method
fit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to const
verl/recipe/dapo/dapo_ray_trainer.py:76
↓ 1 callers
Method
fit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to const
verl/recipe/prime/prime_ray_trainer.py:373
↓ 1 callers
Method
fit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to const
verl/recipe/sppo/sppo_ray_trainer.py:127
↓ 1 callers
Method
fit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to const
verl/recipe/entropy/entropy_ray_trainer.py:66
↓ 1 callers
Method
fit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to const
verl/recipe/vla/rob_ray_trainer.py:193
↓ 1 callers
Method
fit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to const
verl/recipe/fully_async_policy/ray_trainer.py:162
↓ 1 callers
Method
fit
(self)
verl/verl/trainer/sft_trainer.py:206
↓ 1 callers
Method
fit
(self)
verl/verl/trainer/fsdp_sft_trainer.py:706
↓ 1 callers
Method
fit_dpo
The training loop of Online DPO using a periodically updated reference model. The driver process calls worker groups for computation.
verl/recipe/spin/spin_trainer.py:823
↓ 1 callers
Function
fix_a_slash_b
(string)
verl/verl/utils/reward_score/math_reward.py:122
↓ 1 callers
Function
fix_fracs
(string)
verl/verl/utils/reward_score/math_reward.py:90
↓ 1 callers
Function
fix_sqrt
(string)
verl/verl/utils/reward_score/math_reward.py:147
↓ 1 callers
Function
flatten_trajectories
(data: DataProto)
verl/recipe/vla/rob_ray_trainer.py:84
↓ 1 callers
Method
flush_video
(self, video_sub_dir: Optional[str] = None)
verl/recipe/vla/envs/libero_env/libero_env.py:390
↓ 1 callers
Method
fn
(i)
verl/tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:637
↓ 1 callers
Function
fold_batch_dim
Fold a batch dim from [bsz, xxx] into [new_bsz, bsz // new_bsz, xxx]
verl/verl/protocol.py:213
↓ 1 callers
Method
foo
(self, x)
verl/tests/single_controller/test_fused_workers_on_cpu.py:59
↓ 1 callers
Method
foo
(self, wait_time)
verl/tests/single_controller/check_worker_alive/main.py:32
↓ 1 callers
Method
foo_all_to_all
(self, x, y)
verl/tests/single_controller/test_worker_group_basics.py:60
↓ 1 callers
Method
foo_custom
(self, x, y)
verl/tests/single_controller/test_worker_group_basics.py:64
↓ 1 callers
Method
foo_one_to_all
(self, x, y)
verl/tests/single_controller/test_worker_group_basics.py:56
↓ 1 callers
Method
foo_rank_zero
(self, x, y)
verl/tests/single_controller/test_worker_group_basics.py:52
↓ 1 callers
Function
format_cover_html
(bot_name, bot_description, bot_avatar)
demo/qwen_agent/gui/gradio_utils.py:34
↓ 1 callers
Method
format_docs
(self, docs: List[Union[Record, str, List[str]]])
demo/qwen_agent/tools/search_tools/base_search.py:139
↓ 1 callers
Function
format_gpt_oss_tool_response_manually
Format tool response for gpt-oss model. Args: tool_response: Tool response string tool_call_name: Name of the tool that was called
verl/verl/experimental/agent_loop/utils.py:77
↓ 1 callers
Function
format_intervals
(prediction)
verl/recipe/entropy/reward_score/entropy_math/grader.py:362
↓ 1 callers
Function
format_intervals
(prediction)
verl/verl/utils/reward_score/prime_math/grader.py:362
↓ 1 callers
Function
format_reward
(predict_str: str)
verl/verl/utils/reward_score/geo3k.py:19
↓ 1 callers
Method
forward
(self, module, forward_method, *args, **kwargs)
verl/verl/utils/activation_offload.py:469
↓ 1 callers
Method
forward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
verl/verl/workers/reward_model/megatron/reward_model.py:215
↓ 1 callers
Method
forward_step
(self, micro_batch: TensorDict, loss_function, forward_only)
verl/verl/workers/engine/fsdp/transformer_impl.py:507
↓ 1 callers
Method
free_cache_engine
(self)
verl/recipe/r1_ascend/vllm_rollout_spmd.py:260
↓ 1 callers
Method
from_openai_function_parsed_schema
( parsed_schema: OpenAIFunctionParsedSchema, )
verl/verl/tools/schemas.py:69
↓ 1 callers
Method
from_str
(cls, value: str)
verl/verl/workers/rollout/schemas.py:45
↓ 1 callers
Function
fsdp2_sharded_load_from_cpu
Sharded Load: Each process only loads the CPU shard it is responsible for to the GPU, keeping sharding rules unchanged. Ar
verl/recipe/fully_async_policy/fsdp2_utils.py:70
↓ 1 callers
Function
fsdp2_sharded_save_to_cpu
Sharded Save: Each process only saves the local DTensor shard from its own GPU to CPU memory. Args: model: FSDP2-wrapped model whose
verl/recipe/fully_async_policy/fsdp2_utils.py:28
↓ 1 callers
Function
func_generator
(self, method_name, dispatch_fn, collect_fn, execute_fn, blocking)
verl/verl/single_controller/ray/base.py:42
↓ 1 callers
Method
fuse
Fuse multiple worker groups into the current worker group. Args: prefix_set: Set of prefixes to fuse into the worker group
verl/verl/single_controller/ray/base.py:656
↓ 1 callers
Function
gather_from_labels
Gather the label from data. The value in label should be [0, vocab_size) Args: data: (..., vocab_size) label (torch.IntTensor) :
verl/verl/utils/torch_functional.py:49
↓ 1 callers
Function
generate
( server_addresses: list, model_path: str, n_samples: int, sampling_params: dict, chat_numpy: np.ndarray )
verl/verl/trainer/main_generation_server.py:106
↓ 1 callers
Method
generate
(self, dataset: Dataset)
verl/verl/experimental/dynamic_dataset/dynamicgen_dataset.py:63
↓ 1 callers
Method
generate_action_verl
Predict actions from input sequence, with options for different prediction methods. Args: input_ids: Input token ids
verl/recipe/vla/models/openvla_oft/modeling_prismatic.py:1833
↓ 1 callers
Function
generate_aiohttp
(router_address: str, prompt_ids: list[int], sampling_params: dict)
verl/recipe/fapo/reward_fn_reasoning.py:77
↓ 1 callers
Function
generate_config_from_args
(args: argparse.Namespace)
verl/verl/model_merger/base_model_merger.py:127
↓ 1 callers
Method
generate_data_proto
(self, data: DataProto)
verl/tests/single_controller/test_device_mesh_register.py:55
↓ 1 callers
Function
generate_function
(name, key=key)
verl/verl/single_controller/ray/base.py:822
↓ 1 callers
Function
generate_ground_truth_response
Generate ground truth response given a prompt.
verl/tests/special_e2e/envs/digit_completion/task.py:119
↓ 1 callers
Method
generate_image
Generate a simple image based on description. Args: description: The description of the image to generate. size: The
verl/tests/experimental/agent_loop/test_multi_modal.py:62
↓ 1 callers
Method
generate_nested_tensor
(self, data: TensorDict)
verl/tests/single_controller/test_device_mesh_register.py:89
↓ 1 callers
Function
generate_per_replica
(server_address, model_path: str, n_samples: int, sampling_params: dict, chat_lst: list)
verl/verl/trainer/main_generation_server.py:82
↓ 1 callers
Function
generate_rl_dataset
(target_hdfs_path_dir, local_dir="~/data/full_hh_rlhf/rl", local_dataset_path=None)
verl/examples/data_preprocess/full_hh_rlhf.py:93
↓ 1 callers
Function
generate_rm_dataset
(target_hdfs_path_dir, local_dir="~/data/full_hh_rlh/rm", local_dataset_path=None)
verl/examples/data_preprocess/full_hh_rlhf.py:61
↓ 1 callers
Method
generate_sequences
(self, prompts: DataProto)
verl/verl/workers/rollout/hf_rollout.py:45
↓ 1 callers
Function
generate_sft_dataset
(target_hdfs_path_dir, local_dir="~/data/full_hh_rlh/sft", local_dataset_path=None)
verl/examples/data_preprocess/full_hh_rlhf.py:30
↓ 1 callers
Method
generate_single_sample_async
Asynchronously process a single sample Args: sample: Single sample data partial_output_list: Optional[List[A
verl/recipe/fully_async_policy/agent_loop/agent_loop.py:282
↓ 1 callers
Method
generate_tensordict
(self, data: TensorDict)
verl/tests/single_controller/test_device_mesh_register.py:62
↓ 1 callers
Function
getInitialWidth
()
verl/docs/_static/js/resizable-sidebar.js:18
↓ 1 callers
Method
get_action_stats
Get all the logged statistics for the given dataset.
verl/recipe/vla/models/openvla_oft/modeling_prismatic.py:1997
↓ 1 callers
Function
get_activation_offload_context
( num_layers: int = 1, model_layers: int = 1, tensor_need_offloading_checker=(lambda t: True) )
verl/verl/utils/activation_offload.py:398
↓ 1 callers
Method
get_actor_weights_info
(self)
verl/recipe/one_step_off_policy/fsdp_workers.py:138
↓ 1 callers
Method
get_actor_weights_info
(self)
verl/recipe/fully_async_policy/fsdp_workers.py:116
↓ 1 callers
Function
get_adapter_state_dict
Extract only adapter parameters from a model. Args: model: PyTorch model (possibly wrapped in DDP/Float16Module) Returns: Di
verl/verl/utils/megatron_peft_utils.py:53
↓ 1 callers
Method
get_aggregated_metrics
aggregated metrics
verl/recipe/fully_async_policy/detach_utils.py:306
↓ 1 callers
Function
get_aux_metrics
(self, test_proto)
verl/tests/single_controller/test_driverfunc_to_worker.py:41
↓ 1 callers
Method
get_available_master_addr_port
(self)
verl/verl/single_controller/base/worker.py:71
↓ 1 callers
Function
get_changed_files
()
verl/tests/special_sanity/type_coverage_check.py:27
↓ 1 callers
Function
get_changed_lines
(file_path: Path)
verl/tests/special_sanity/type_coverage_check.py:34
↓ 1 callers
Function
get_chat_model
The interface of instantiating LLM objects. Args: cfg: The LLM configuration, one example is: cfg = { # Use the m
demo/qwen_agent/llm/__init__.py:30
↓ 1 callers
Method
get_city_adcode
(self, city_name)
demo/qwen_agent/tools/amap_weather.py:51
↓ 1 callers
Method
get_client_with_tool_name
(self, tool_name: str)
verl/verl/tools/utils/mcp_clients/McpClientManager.py:82
↓ 1 callers
Function
get_cluster_info
()
verl/recipe/r1_ascend/vllm_parallel_state.py:65
↓ 1 callers
Method
get_config
(self)
verl/tests/special_e2e/envs/digit_completion/tokenizer.py:129
↓ 1 callers
Function
get_content_type_by_head_request
(path: str)
demo/qwen_agent/utils/utils.py:231
↓ 1 callers
Function
get_current_action_mask
(token_ids)
verl/recipe/vla/models/openvla_oft/train_utils.py:24
↓ 1 callers
Method
get_current_temperature
Get current temperature at a location. Args: location: The location to get the temperature for, in the format "City, State, Count
verl/tests/experimental/agent_loop/test_basic_agent_loop.py:132
↓ 1 callers
Method
get_data_parallel_size
(self)
verl/verl/workers/engine/megatron/transformer_impl.py:401
↓ 1 callers
Function
get_default_model_parallel_config
()
verl/verl/utils/megatron/tensor_parallel.py:46
↓ 1 callers
Function
get_device_flops
Get the theoretical FLOPS (Floating Point Operations Per Second) capacity of the current device. Args: unit (str): The unit to return the
verl/verl/utils/flops_counter.py:41
↓ 1 callers
Method
get_engine_cls
(cls, model_type: str, backend: str)
verl/verl/workers/engine/base.py:248
↓ 1 callers
Method
get_env_fns
(self)
verl/recipe/vla/envs/libero_env/libero_env.py:101
↓ 1 callers
Function
get_font
(element)
demo/qwen_agent/tools/simple_doc_parser.py:330
↓ 1 callers
Function
get_fsdp_full_state_dict
Get the full state dict from an FSDP model. Args: model (torch.nn.Module): The FSDP model to get state dict from offload_to_
verl/verl/utils/fsdp_utils.py:415
↓ 1 callers
Function
get_function_description
Text description of function
demo/qwen_agent/llm/fncall_prompts/qwen_fncall_prompt.py:335
↓ 1 callers
Function
get_grid_placeholder
(tokenizer, grid, query_num, new_schema=False)
verl/recipe/minicpmo/rl_dataset.py:309
↓ 1 callers
Function
get_inference_model
get models according to different types of inference_engine Args: rollout: rollout object Returns: model: model object
verl/recipe/fully_async_policy/fsdp_workers.py:45
↓ 1 callers
Function
get_inference_model
get models according to different types of inference_engine Args: rollout: rollout object Returns: model: model object
verl/recipe/fully_async_policy/megatron_worker.py:41
↓ 1 callers
Function
get_layers
(module)
verl/verl/utils/activation_offload.py:524
↓ 1 callers
Function
get_libero_image
Extracts image from observations and preprocesses it. Args: obs: Observation dictionary from LIBERO environment Returns:
verl/recipe/vla/envs/libero_env/utils.py:26
↓ 1 callers
Function
get_local_temp_path
Generate a unique local cache path for an HDFS resource. Creates a MD5-hashed subdirectory in cache_dir to avoid name conflicts, then returns
verl/verl/utils/fs.py:61
↓ 1 callers
Function
get_lora_rank_from_adapter
Extract LoRA rank from adapter configuration file. Args: adapter_path: Path to LoRA adapter directory Returns: LoRA ran
verl/verl/utils/model.py:729
↓ 1 callers
Function
get_mcore_forward_fused_fn
Get the forward function for given model architecture.
verl/verl/models/mcore/registry.py:253
↓ 1 callers
Function
get_memory_info
Get detailed GPU memory information
verl/verl/utils/memory_utils.py:85
← previous
next →
1,801–1,900 of 4,735, ranked by callers