MCPcopy Create free account

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

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

↓ 2 callersFunctionprepare_micro_batches
Prepare micro batches from data.
verl/verl/workers/engine/utils.py:25
↓ 2 callersMethodprepare_model_inputs
(self, batch: TensorDict)
verl/verl/workers/engine/megatron/transformer_impl.py:594
↓ 2 callersFunctionpreprocess
(text)
verl/examples/data_preprocess/hellaswag.py:28
↓ 2 callersMethodpreprocess_data
AllGather data from sp region This is because the data is first sharded along the FSDP dimension as we utilize the DP_COMPUTE
verl/verl/workers/sharding_manager/fsdp_ulysses.py:52
↓ 2 callersFunctionpreprocess_packed_seqs_no_padding
Preprocess packed sequences CP splits sequence into CP*2 chunks, and each GPU gets 2 chunks (GPU0 gets first and last chunks, GPU1 gets s
verl/verl/models/mcore/util.py:178
↓ 2 callersMethodprime_norm
(self, token_level_scores)
verl/recipe/prime/prime_dp_rm.py:242
↓ 2 callersFunctionprocess_fn
(example, idx)
verl/recipe/open_math_reasoning/prepare_eval_dataset.py:30
↓ 2 callersFunctionprocess_multi_modal_inputs_for_minicpmo
(input_ids, attention_mask, position_ids, cu_seqlens, multi_modal_inputs)
verl/verl/utils/dataset/vision_utils.py:103
↓ 2 callersFunctionprocess_position_ids
(position_ids: torch.Tensor)
verl/verl/models/transformers/qwen2_vl.py:395
↓ 2 callersFunctionprocess_video
Converts a video dict into a [n_frames, 3, H, W] tensor Add video sample FPS in a future MR
verl/verl/utils/dataset/vision_utils.py:62
↓ 2 callersFunctionput_info_on_image
Put information dictionary and extra lines on an image. Args: image: Input image info: Dictionary of key-value pairs to disp
verl/recipe/vla/envs/action_utils.py:197
↓ 2 callersMethodput_sample
Put a batch sample into the queue Args: sample: Sample data param_version: Parameter version number
verl/recipe/fully_async_policy/message_queue.py:67
↓ 2 callersFunctionranks
(seq)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:478
↓ 2 callersFunctionray_noset_visible_devices
(env_vars=os.environ)
verl/verl/utils/ray_utils.py:26
↓ 2 callersMethodregister
Register a new rollout replica type.
verl/verl/workers/rollout/replica.py:220
↓ 2 callersMethodrelease_memory_occupation
Release GPU memory occupation temporarily. Args: tags (Optional[List[str]], optional): List of tags to specify which memory to re
verl/verl/workers/rollout/sglang_rollout/http_server_engine.py:535
↓ 2 callersMethodreload
Reload.
verl/verl/utils/activation_offload.py:188
↓ 2 callersMethodremove_previous_save_local_path
(self, path)
verl/verl/utils/checkpoint/checkpoint_manager.py:134
↓ 2 callersMethodrename
Note that this function only rename the key in the batch
verl/verl/protocol.py:761
↓ 2 callersMethodrepeat_dict
Repeat the batch dict a specified number of times. Args: repeat_times (int): Number of times to repeat the data.
verl/recipe/transfer_queue/ray_trainer.py:1170
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
verl/verl/models/qwen2/megatron/layers/parallel_attention.py:139
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
verl/verl/models/llama/megatron/layers/parallel_attention.py:167
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=2, repeats=n_rep). The hidden states go from (batch, seqlen, num_key_value_heads, he
verl/verl/models/transformers/monkey_patch.py:37
↓ 2 callersFunctionrepeatness
(s: str)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:477
↓ 2 callersMethodreset
(self, env_idx: Optional[int | list[int] | np.ndarray] = None, options: Optional[dict] = None)
verl/recipe/vla/envs/isaac_env/isaac_env.py:151
↓ 2 callersFunctionresize_image
Takes numpy array corresponding to a single image and returns resized image as numpy array. Args: img: Input image as numpy array
verl/recipe/vla/envs/action_utils.py:259
↓ 2 callersMethodrestore_model_from_cpu
(self, n)
verl/recipe/fully_async_policy/fsdp_workers.py:142
↓ 2 callersMethodresume
(self, dependency_ref: ObjectRef = None)
verl/recipe/fully_async_policy/fully_async_rollouter.py:684
↓ 2 callersFunctionrgx
(key)
parallel_tts/verifier_test_multi.py:77
↓ 2 callersFunctionrgx
(key)
parallel_tts/verifier_test_multi_api.py:147
↓ 2 callersFunctionrm_unsupported_modality
(messages: List[Message])
demo/qwen_agent/llm/qwenvl_dashscope.py:182
↓ 2 callersMethodrollout_mode
Context switch hybridengine to rollout mode.
verl/verl/workers/megatron_workers.py:648
↓ 2 callersMethodrollout_mode
Context switch hybridengine to rollout mode.
verl/verl/workers/fsdp_workers.py:652
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
verl/verl/models/transformers/kimi_vl.py:35
↓ 2 callersMethodround_by_factor
Returns the closest integer to 'number' that is divisible by 'factor'.
demo/qwen_agent/tools/image_zoom_in_qwen3vl.py:64
↓ 2 callersMethodrun
Main entrance, supports interruption/recovery Args: sampling_params: Sampling parameters cancellation_event:
verl/recipe/fully_async_policy/agent_loop/partial_tool_agent_loop.py:42
↓ 2 callersMethodrun
Execute the main PPO training workflow. This method sets up the distributed training environment, initializes workers, datasets, and
verl/verl/trainer/main_ppo.py:260
↓ 2 callersFunctionrun_ppo
Initialize Ray cluster and run distributed PPO training process. Args: config: Training configuration object containing all necessary par
verl/recipe/r1_ascend/main_ppo.py:47
↓ 2 callersFunctionrun_test
if test(generated_code) is not None it'll try to run the code. otherwise it'll just return an input and output pair.
verl/verl/utils/reward_score/prime_code/testing_util.py:88
↓ 2 callersFunctionrun_unvicorn
(app: FastAPI, server_args, server_address, max_retries=5)
verl/verl/workers/rollout/utils.py:48
↓ 2 callersMethodsample_level_repeat
Repeat each row of the batch data a specified number of times. Args: repeat_times (torch.tensor, list, tuple, ndarray):
verl/verl/protocol.py:1061
↓ 2 callersMethodsample_str_prompts
(self)
verl/tests/special_e2e/envs/digit_completion/task.py:93
↓ 2 callersFunctionsanitize_chrome_file_path
(file_path: str)
demo/qwen_agent/utils/utils.py:142
↓ 2 callersFunctionsanitize_windows_file_path
(file_path: str)
demo/qwen_agent/utils/utils.py:156
↓ 2 callersFunctionsaveWidth
(width)
verl/docs/_static/js/resizable-sidebar.js:23
↓ 2 callersMethodsave_checkpoint
(self, local_global_step_folder: str)
verl/recipe/fully_async_policy/fully_async_rollouter.py:250
↓ 2 callersMethodsave_checkpoint
Save an FSDP checkpoint for this rank. Writes: - model & optimizer shard files - extra state dict (scheduler + R
verl/verl/utils/checkpoint/fsdp_checkpoint_manager.py:180
↓ 2 callersFunctionsave_dist_checkpointing
(sharded_state_dict, ckpt_path, async_save=False)
verl/verl/utils/megatron/dist_checkpointing.py:27
↓ 2 callersMethodsave_hf_model_and_tokenizer
(self, merged_state_dict)
verl/verl/model_merger/megatron_model_merger.py:422
↓ 2 callersMethodsave_model_to_cpu
(self, n)
verl/recipe/fully_async_policy/fsdp_workers.py:136
↓ 2 callersFunctionsave_parquet
(ds_split: Dataset, filename: str, out_dir: str)
verl/recipe/collabllm/process_dataset.py:125
↓ 2 callersFunctionsave_rollout_video
Saves an MP4 replay of an episode. Args: rollout_images: List of images from the episode output_dir: Directory to save the v
verl/recipe/vla/envs/action_utils.py:241
↓ 2 callersFunctionsave_text_to_file
(path: str, text: str)
demo/qwen_agent/utils/utils.py:209
↓ 2 callersMethodsave_to_disk
(self, filepath)
verl/verl/protocol.py:433
↓ 2 callersFunctionsave_url_to_local_work_dir
(url: str, save_dir: str, save_filename: str = '')
demo/qwen_agent/utils/utils.py:182
↓ 2 callersMethodset_state
(self, state)
verl/tests/special_e2e/envs/digit_completion/task.py:66
↓ 2 callersFunctionshould_check_type
(arg_name: str)
verl/tests/special_sanity/type_coverage_check.py:61
↓ 2 callersMethodshutdown
Shutdown the message queue
verl/recipe/fully_async_policy/message_queue.py:150
↓ 2 callersFunctionsloo_minus_one
(g: torch.Tensor, K: int)
verl/verl/trainer/ppo/PKPO.py:85
↓ 2 callersFunctionslow_task_in_thread
()
verl/tests/utils/test_timeout_decorator_cpu.py:164
↓ 2 callersFunctionsort_placement_group_by_node_ip
Sort the placement groups by node ip, all bundles in a single placement group should be on the same node. FSDPCheckpointManager saves sharde
verl/verl/single_controller/ray/base.py:63
↓ 2 callersMethodsplit_doc_to_chunk
(self, doc: List[dict], path: str,
demo/qwen_agent/tools/doc_parser.py:152
↓ 2 callersFunctionsplit_tuple
Split the elements in a tuple/interval, while handling well-formatted commas in large numbers
verl/recipe/entropy/reward_score/entropy_math/__init__.py:894
↓ 2 callersFunctionsplit_tuple
Split the elements in a tuple/interval, while handling well-formatted commas in large numbers
verl/verl/utils/reward_score/prime_math/__init__.py:227
↓ 2 callersMethodstart_interaction
( self, instance_id: Optional[str] = None, ground_truth: Optional[str] = None, **kwargs )
verl/recipe/collabllm/collabllm_interation.py:107
↓ 2 callersMethodstart_interaction
Create a tool instance. Args: instance_id: The instance id of the tool. Returns: The instance id of the tool
verl/verl/interactions/base.py:25
↓ 2 callersFunctionstateless_init_process_group
vLLM provides `StatelessProcessGroup` to create a process group without considering the global process group in torch.distributed. It is
verl/recipe/one_step_off_policy/distributed_util.py:18
↓ 2 callersFunctionstrip_string
(string)
verl/verl/utils/reward_score/math_reward.py:162
↓ 2 callersFunctionstripped_string_compare
(s1, s2)
verl/verl/utils/reward_score/prime_code/testing_util.py:571
↓ 2 callersMethodsub
(self, data: DataProto)
verl/tests/single_controller/test_colocated_workers_fused.py:46
↓ 2 callersMethodsub
(self, x)
verl/tests/single_controller/test_fused_workers_on_cpu.py:45
↓ 2 callersFunctionsupport_distributed_convert
(hf_config: AutoConfig)
verl/scripts/converter_hf_to_mcore.py:438
↓ 2 callersFunctionsync_model_parameters_global
(layer)
verl/tests/models/test_transformers_ulysses.py:87
↓ 2 callersMethodsync_rollout_weights
(self)
verl/recipe/one_step_off_policy/ray_trainer.py:297
↓ 2 callersMethodsync_rollout_weights
(self)
verl/recipe/fully_async_policy/fsdp_workers.py:71
↓ 2 callersFunctiontemp_dir
()
verl/tests/utils/test_rollout_skip_on_cpu.py:28
↓ 2 callersFunctiontile_images
Copied from maniskill https://github.com/haosulab/ManiSkill Tile multiple images to a single image comprised of nrows and an appropriate
verl/recipe/vla/envs/action_utils.py:87
↓ 2 callersMethodupdate_weights
(self, weights_iterator, **kwargs)
verl/recipe/vla/naive_rollout_rob.py:197
↓ 2 callersMethodupload_to_huggingface
(self)
verl/scripts/legacy_model_merger.py:241
↓ 2 callersMethodupload_to_huggingface
(self)
verl/verl/model_merger/base_model_merger.py:319
↓ 2 callersMethodvalidate
Validate critic configuration with runtime parameters. Args: n_gpus: Total number of GPUs available train_batch_size:
verl/verl/workers/config/critic.py:108
↓ 2 callersMethodwake_up
(self)
verl/recipe/fully_async_policy/agent_loop/agent_loop.py:320
↓ 1 callersMethod__enter__
(self)
verl/verl/utils/activation_offload.py:73
↓ 1 callersMethod__enter__
(self)
verl/verl/workers/engine/fsdp/transformer_impl.py:668
↓ 1 callersMethod__exit__
(self, *args: Any)
verl/verl/utils/activation_offload.py:77
↓ 1 callersMethod__exit__
(self, exc_type, exc_value, traceback)
verl/verl/workers/engine/fsdp/transformer_impl.py:676
↓ 1 callersMethod__init__
(self, config: ModelMergerConfig)
verl/scripts/legacy_model_merger.py:98
↓ 1 callersMethod__init__
(self, config: DictConfig, role: str)
verl/recipe/one_step_off_policy/megatron_workers.py:131
↓ 1 callersMethod__init__
(self, hidden_size: int, num_layers: int = 3, dropout: float = 0.1)
verl/recipe/flowrl/flowrl_actor.py:38
↓ 1 callersMethod__init__
(self, env_fns: list[Callable[[], gym.Env]], **kwargs: Any)
verl/recipe/vla/envs/libero_env/venv.py:149
↓ 1 callersMethod__init__
( self, norm_stats: Optional[dict[str, dict[str, dict[str, dict[str, list[float]]]]]] = None,
verl/recipe/vla/models/openvla_oft/configuration_prismatic.py:148
↓ 1 callersMethod__init__
( self, image_processor: Optional[ImageProcessingMixin] = None, tokenizer: Optional[Pr
verl/recipe/vla/models/openvla_oft/processing_prismatic.py:197
↓ 1 callersMethod__init__
( self, replica_rank: int, config: RolloutConfig | RewardModelConfig, model_co
verl/recipe/fully_async_policy/vllm_rollout/vllm_async_server.py:136
↓ 1 callersMethod__init__
(self, size)
verl/tests/single_controller/test_worker_group_torch.py:30
↓ 1 callersMethod__init__
(self)
verl/tests/single_controller/test_colocated_workers_fused.py:30
↓ 1 callersMethod__init__
(self)
verl/tests/single_controller/test_colocated_workers.py:30
↓ 1 callersMethod__init__
(self, x)
verl/tests/single_controller/test_nested_worker.py:25
↓ 1 callersMethod__init__
(self)
verl/tests/single_controller/test_fused_workers_on_cpu.py:29
↓ 1 callersMethod__init__
(self, enable_global_rate_limit=True, rate_limit=10)
verl/verl/tools/sandbox_fusion_tools.py:65
↓ 1 callersMethod__init__
(self, name: str, value: int)
verl/verl/utils/py_functional.py:241
← previousnext →1,001–1,100 of 4,735, ranked by callers