MCPcopy Create free account

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

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

↓ 4 callersFunction_get_gpt_model
(model)
verl/verl/models/mcore/loader.py:68
↓ 4 callersFunction_get_gpt_model
(model)
verl/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:69
↓ 4 callersFunction_get_gpt_model
(model)
verl/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:69
↓ 4 callersMethod_handle_pending_state
Handle the pending state: prepare the prompt and start generation.
verl/verl/experimental/agent_loop/tool_agent_loop.py:187
↓ 4 callersFunction_is_non_local
(path: str)
verl/verl/utils/hdfs_io.py:148
↓ 4 callersFunction_iter_opts
(opt)
verl/verl/utils/megatron_utils.py:474
↓ 4 callersMethod_log_validation_data
Log validation data
verl/recipe/fully_async_policy/fully_async_trainer.py:490
↓ 4 callersFunction_normalize
Normalize answer expressions.
verl/recipe/entropy/reward_score/entropy_math/__init__.py:783
↓ 4 callersMethod_optimizer_step
(self)
verl/recipe/vla/dp_rob.py:165
↓ 4 callersMethod_run_all
(self, tasks: list[asyncio.Task])
verl/verl/experimental/agent_loop/agent_loop.py:850
↓ 4 callersMethod_start_profiling
Start profiling for all worker groups if profiling is enabled.
verl/recipe/transfer_queue/ray_trainer.py:1104
↓ 4 callersMethod_stop_profiling
Stop profiling for all worker groups if profiling is enabled.
verl/recipe/transfer_queue/ray_trainer.py:1115
↓ 4 callersFunction_timer
Inner function that handles the core timing logic. Args: name (str): The name/identifier for this timing measurement. timing_raw
verl/verl/utils/profiler/performance.py:140
↓ 4 callersFunction_truncate_message
(msg: Message, max_tokens: int, keep_both_sides: bool = False)
demo/qwen_agent/llm/base.py:632
↓ 4 callersMethod_update_input_ids
Update the input_ids, attention_mask, position_ids, and loss_mask of the request in additive manner.
verl/verl/workers/rollout/schemas.py:299
↓ 4 callersFunctionaccumulate_totals
(totals: Dict[str, float], metrics: Dict[str, Any])
parallel_tts/verifier_test_multi_api.py:68
↓ 4 callersFunctionare_lists_similar
(a, b, threshold=10)
verl/tests/workers/rollout/utils_sglang.py:40
↓ 4 callersMethodasync_generate
Async generate method that mirrors AsyncEngine.async_generate interface. This method provides compatibility with AsyncEngine's async_generate
verl/verl/workers/rollout/sglang_rollout/http_server_engine.py:849
↓ 4 callersFunctionbootstrap_metric
Performs bootstrap resampling to estimate statistics of metrics. This function uses bootstrap resampling to estimate the mean and standard d
verl/verl/trainer/ppo/metric_utils.py:305
↓ 4 callersFunctionbroadcast_pyobj
from https://github.com/sgl-project/sglang/blob/844e2f227ab0cce6ef818a719170ce37b9eb1e1b/python/sglang/srt/utils.py#L905 Broadcast inputs from sr
verl/verl/workers/rollout/sglang_rollout/utils.py:26
↓ 4 callersFunctioncheck_exclude_modules
A helper method to check if the passed module's key name matches any of the exclude modules in the adapter_config. Adapted from https://githu
verl/verl/utils/model.py:249
↓ 4 callersMethodcheck_storage
(self, method_name, run_forward)
verl/tests/utils/test_linear_cross_entropy.py:322
↓ 4 callersFunctioncheck_target_modules
A helper method to check if the passed module's key name matches any of the target modules in the adapter_config. Adapted from https://github
verl/verl/utils/model.py:272
↓ 4 callersFunctionclean_torchelastic_env
()
verl/tests/workers/rollout/utils_sglang.py:82
↓ 4 callersMethodcleanup
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:199
↓ 4 callersMethodcompute_ref_log_prob
(self, data: DataProto)
verl/verl/workers/fsdp_workers.py:1000
↓ 4 callersFunctioncompute_rollout_correction_and_add_to_batch
Compute rollout correction weights and apply rejection sampling. Computes importance sampling weights to correct for off-policy issues between
verl/verl/trainer/ppo/rollout_corr_helper.py:816
↓ 4 callersFunctioncreate_sft_dataset
Create a dataset.
verl/verl/trainer/fsdp_sft_trainer.py:841
↓ 4 callersFunctioncreate_transferqueue_client
( client_id: str, config, )
verl/verl/utils/transferqueue_utils.py:44
↓ 4 callersFunctionensure_divide
(length, patch_size)
verl/recipe/minicpmo/rl_dataset.py:255
↓ 4 callersMethodexecute
Executes an API search query, caching by API type.
verl/tool_server/api_server_redis.py:367
↓ 4 callersFunctionextract_json
(s)
verl/recipe/collabllm/utils.py:53
↓ 4 callersMethodfinalize
( self, processing_class: PreTrainedTokenizer | PreTrainedTokenizerFast | ProcessorMixin,
verl/verl/workers/rollout/schemas.py:551
↓ 4 callersMethodflush_cache
Flush the cache of the server. This method repeatedly attempts to flush the server cache until successful. The flush operation will n
verl/verl/workers/rollout/sglang_rollout/http_server_engine.py:502
↓ 4 callersFunctionformat_as_multimodal_message
( msg: Message, add_upload_info: bool, add_multimodel_upload_info: bool, add_audio_upload_info
demo/qwen_agent/utils/utils.py:327
↓ 4 callersMethodforward
( self, hidden_states: torch.FloatTensor, vocab_weights: torch.FloatTensor, in
verl/verl/utils/experimental/torch_functional.py:202
↓ 4 callersMethodfrom_tensordict
Create a DataProto from a TensorDict. This assumes that 1. All the tensor in tensor_dict have the same dim0 2. Only dim0 is the batch
verl/verl/protocol.py:553
↓ 4 callersFunctionfsdp2_clip_grad_norm_
torch.nn.utils.clip_grad_norm_ cann't run on cpu parameter DTensor
verl/verl/utils/fsdp_utils.py:553
↓ 4 callersMethodgenerate_backward_inputs
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:256
↓ 4 callersMethodgenerate_forward_inputs
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:242
↓ 4 callersFunctiongenerate_hf_output
(model, input_ids, attention_mask, tokenizer, max_response_length)
verl/tests/workers/rollout/utils_sglang.py:107
↓ 4 callersMethodgenerate_hyper
(self)
verl/tests/utils/test_special_linear_cross_entropy_tp.py:207
↓ 4 callersFunctionget_dynamic_pipeline_shards
Calculate the pipeline sharding configuration for Megatron-LM. Args: layer_num: Total number of layers in the model. pp_size: Num
verl/verl/model_merger/megatron_model_merger.py:57
↓ 4 callersMethodget_generation_prompt_ids
Get the generation prompt ids for rollout engine. Because rollout engine(SGLang) requires the ids to be a list, we need to convert t
verl/verl/workers/rollout/schemas.py:348
↓ 4 callersFunctionget_hf_model_path
(config)
verl/verl/utils/model.py:453
↓ 4 callersFunctionget_megatron_optimizer
( model, config: OptimizerConfig, no_weight_decay_cond=None, scale_lr_cond=None, lr_mult=1
verl/verl/utils/megatron/optimizer.py:63
↓ 4 callersFunctionget_model_config
(model)
verl/verl/utils/megatron_utils.py:45
↓ 4 callersFunctionget_predefined_dispatch_fn
(dispatch_mode)
verl/verl/single_controller/base/decorator.py:354
↓ 4 callersMethodget_processor
(self)
verl/verl/workers/config/model.py:156
↓ 4 callersFunctionget_random_string
(length: int)
verl/verl/single_controller/ray/base.py:34
↓ 4 callersMethodget_resource_pool
Get the resource pool of the worker_cls
verl/verl/trainer/ppo/ray_trainer_ts.py:102
↓ 4 callersFunctionget_rollout_replica_class
(rollout: str)
verl/verl/workers/rollout/replica.py:266
↓ 4 callersFunctionget_shard_placement_fn
Choose the dimension that can divide fsdp_size to avoid padding
verl/verl/utils/fsdp_utils.py:540
↓ 4 callersFunctionget_visible_devices_keyword
Function that gets visible devices keyword name. Returns: 'CUDA_VISIBLE_DEVICES' or `ASCEND_RT_VISIBLE_DEVICES`
verl/verl/utils/device.py:32
↓ 4 callersFunctionhash_sha256
(text: str)
demo/qwen_agent/utils/utils.py:78
↓ 4 callersFunctioninit_execution_pool
( num_workers: int, enable_global_rate_limit=True, rate_limit=10, mode: PoolMode = PoolMode.ThreadMode )
verl/verl/tools/sandbox_fusion_tools.py:87
↓ 4 callersFunctioninit_megatron_optim_config
(optim_config: dict, fp16: bool = False)
verl/verl/utils/megatron/optimizer.py:24
↓ 4 callersMethodinitialize
(self, **kwargs)
verl/verl/models/mcore/model_initializer.py:141
↓ 4 callersFunctioninitialize_global_process_group
(timeout_second=36000, spmd=False)
verl/tests/workers/rollout/utils_sglang.py:55
↓ 4 callersFunctionis_digit
(s)
verl/recipe/entropy/reward_score/entropy_math/grader.py:109
↓ 4 callersFunctionis_digit
(s)
verl/verl/utils/reward_score/prime_math/grader.py:109
↓ 4 callersFunctionis_nvtx_available
()
verl/verl/utils/import_utils.py:55
↓ 4 callersFunctionkl_penalty
Compute KL divergence given logprob and ref_logprob. Optionally using straight through to bind k2 on other kl penalty compute method for unbiased
verl/verl/trainer/ppo/core_algos.py:1485
↓ 4 callersFunctionlatex_eval
(latex)
verl/recipe/entropy/reward_score/entropy_math/__init__.py:536
↓ 4 callersFunctionleft_right_2_no_padding
Convert TensorDict from left-right padding to no-padding format. Args: data: TensorDict with "input_ids", "attention_mask", "respons
verl/verl/workers/roles/utils/padding.py:30
↓ 4 callersFunctionload_megatron_optimizer
(optimizers)
verl/verl/utils/megatron_utils.py:568
↓ 4 callersFunctionload_tokenizer_and_model
(local_model_path, dtype="bfloat16")
verl/tests/workers/rollout/utils_sglang.py:88
↓ 4 callersFunctionlog_seqlen_unbalance
Calculate and log metrics related to sequence length imbalance before and after partitioning. Args: seqlen_list (List[int]): A list
verl/verl/utils/seqlen_balancing.py:205
↓ 4 callersFunctionmapping_string_to_attn_backend
(args: dict)
verl/verl/models/mcore/config_converter.py:391
↓ 4 callersFunctionmathd_normalize_answer
(answer: Optional[str])
verl/recipe/entropy/reward_score/entropy_math/__init__.py:67
↓ 4 callersFunctionnormalize_answer
(s)
verl/verl/utils/reward_score/search_r1_like_qa_em.py:23
↓ 4 callersFunctionparse_messages
Args: messages: List[dict] List of dictionaries with keys 'role' and 'content' Example: messages = [{'role': 'use
verl/recipe/collabllm/utils.py:23
↓ 4 callersMethodpreprocess_data
All gather across tp group to make each rank has identical input.
verl/recipe/one_step_off_policy/vllm_sharding_manager.py:58
↓ 4 callersFunctionprocess_image
(image: dict | Image.Image, image_patch_size: int = 14)
verl/verl/utils/dataset/vision_utils.py:23
↓ 4 callersMethodprocess_tensor
(self, tensor, pad_id)
verl/recipe/vla/dp_rob.py:57
↓ 4 callersFunctionread_text_from_file
(path: str)
demo/qwen_agent/utils/utils.py:214
↓ 4 callersFunctionreduce_metrics
Reduces a dictionary of metric lists by computing the mean of each list. Args: metrics: A dictionary mapping metric names to lists o
verl/verl/trainer/ppo/metric_utils.py:30
↓ 4 callersFunctionreduce_timing
Reduce timing information across all processes. This function uses distributed communication to gather and sum the timing information from al
verl/verl/utils/profiler/performance.py:198
↓ 4 callersFunctionremove_incomplete_special_tokens
(text: str)
demo/qwen_agent/llm/fncall_prompts/qwen_fncall_prompt.py:369
↓ 4 callersFunctionrotate_half
Rotates half the hidden dims of the input.
verl/verl/models/qwen2/megatron/layers/parallel_attention.py:124
↓ 4 callersFunctionrotate_half
Rotates half the hidden dims of the input.
verl/verl/models/llama/megatron/layers/parallel_attention.py:152
↓ 4 callersFunctionset_numa_affinity
()
verl/verl/utils/distributed.py:26
↓ 4 callersFunctionset_ulysses_sequence_parallel_group
Set ulysses sequence parallel process group.
verl/verl/utils/ulysses.py:30
↓ 4 callersMethodshared_embedding_or_output_weight
(self)
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:622
↓ 4 callersMethodsleep
Sleep all rollout replica instances.
verl/verl/experimental/agent_loop/agent_loop.py:846
↓ 4 callersFunctionsplit_text_into_keywords
(text: str)
demo/qwen_agent/tools/search_tools/keyword_search.py:159
↓ 4 callersMethodstep
(self, actions=None)
verl/recipe/vla/envs/libero_env/libero_env.py:303
↓ 4 callersMethodsync_to_json
(self, batch_size: int = 5000, max_keys: int | None = None)
verl/tool_server/api_server_redis.py:142
↓ 4 callersMethodto
Move FSDP model and/or optimizer to CPU or GPU with offload support.
verl/verl/workers/engine/fsdp/transformer_impl.py:553
↓ 4 callersFunctiontopk_reduce_ratio_min_max
Calculate topk items take-up ratio, and min/max timing across all ranks.
verl/verl/utils/profiler/performance.py:226
↓ 4 callersFunctionulysses_pad
(input_ids_rmpad: torch.Tensor, position_ids_rmpad: Optional[torch.Tensor] = None, sp_size: int = 1)
verl/verl/utils/ulysses.py:278
↓ 4 callersMethodupdate
(self, batch: DataProto)
verl/verl/experimental/dataset/sampler.py:39
↓ 4 callersMethodupdate_weights
Update the weights of the rollout model. Args: weights: A generator that yields the name of the weight tensor and the tensor itse
verl/verl/workers/rollout/base.py:52
↓ 3 callersMethod__init__
(self, use_fused_vision_backbone: bool, vision_dim: int, llm_dim: int)
verl/recipe/vla/models/openvla_oft/modeling_prismatic.py:248
↓ 3 callersMethod__init__
(self, dim, max_position_embeddings=2048, base=10000, device=None)
verl/verl/models/qwen2/megatron/layers/parallel_attention.py:44
↓ 3 callersMethod__init__
(self, cfg: Optional[dict] = None)
demo/qwen_agent/tools/base.py:114
↓ 3 callersMethod_bind_worker_method
Binds worker methods to the WorkerGroup based on registered attributes. Args: user_defined_cls (type): The class containing metho
verl/verl/single_controller/base/worker_group.py:185
↓ 3 callersFunction_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:186
↓ 3 callersFunction_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl/verl/models/mcore/loader.py:186
↓ 3 callersFunction_broadcast_tp_shard_tensor
broadcast tensor in tp shards across mp_group
verl/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:188
← previousnext →401–500 of 4,735, ranked by callers