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
Method
finalize_interaction
(self, instance_id: str, **kwargs)
verl/verl/interactions/gsm8k_interaction.py:86
Method
finalize_save_fn
()
verl/verl/utils/checkpoint/megatron_checkpoint_manager.py:627
Method
finish
(self)
verl/verl/utils/tracking.py:223
Method
finish
(self)
verl/verl/utils/tracking.py:264
Function
fit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to construct the PPO
verl/examples/split_placement/split_monkey_patch.py:38
Method
fit
Start the async rollouter - entry point that sets up and runs async tasks Main async fit method that coordinates all coroutines
verl/recipe/fully_async_policy/fully_async_rollouter.py:580
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/fully_async_trainer.py:224
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/verl/trainer/ppo/ray_trainer_ts.py:1036
Method
flush_cache
Flush the cache of the server asynchronously. Similar to the sync version, this method retries until the cache is successfully flushe
verl/verl/workers/rollout/sglang_rollout/http_server_engine.py:779
Method
flush_video
(self, video_sub_dir: Optional[str] = None)
verl/recipe/vla/envs/isaac_env/isaac_env.py:282
Method
flushed
(self)
demo/qwen_agent/gui/web_ui.py:325
Method
fn
(i)
verl/tests/workers/rollout/test_sglang_async_rollout_sf_tools.py:571
Method
fn1
()
verl/tests/trainer/ppo/test_core_algos_on_cpu.py:110
Method
fn2
()
verl/tests/trainer/ppo/test_core_algos_on_cpu.py:114
Method
foo
(self, y)
verl/tests/single_controller/test_worker_group_basics.py:48
Method
format_input_doc
(doc: List[str], url: str = '')
demo/qwen_agent/tools/search_tools/base_search.py:141
Method
format_plaintext_train_samples
( self, messages: List[Union[Message, dict]], functions: List[dict], lang: Lit
demo/qwen_agent/llm/fncall_prompts/base_fncall_prompt.py:48
Method
forward
(self, x)
verl/recipe/flowrl/flowrl_actor.py:55
Method
forward
Implements the forward pass for the vision backbone. If `self.use_fused_vision_backbone == True`, uses both SigLIP and DINOv2 transf
verl/recipe/vla/models/openvla_oft/modeling_prismatic.py:202
Method
forward
(self, img_patches: torch.Tensor)
verl/recipe/vla/models/openvla_oft/modeling_prismatic.py:266
Method
forward
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:1091
Method
forward
( ctx, hidden: torch.Tensor, weight: torch.Tensor, labels: torch.Tensor,
verl/tests/utils/test_special_linear_cross_entropy_tp.py:86
Method
forward
(self, input_ids, attention_mask=None, position_ids=None, use_cache=False, **kwargs)
verl/tests/workers/actor/test_special_dp_actor.py:40
Method
forward
(ctx, input, indices)
verl/verl/utils/npu_flash_attn_utils.py:24
Method
forward
(ctx, values, indices, first_axis_dim)
verl/verl/utils/npu_flash_attn_utils.py:58
Method
forward
(ctx, tensor, cpu_offload_handler)
verl/verl/utils/activation_offload.py:119
Method
forward
( ctx: Any, group: dist.ProcessGroup, local_input: Tensor, scatter_dim: int,
verl/verl/utils/ulysses.py:167
Method
forward
( ctx: Any, group: dist.ProcessGroup, local_tensor: Tensor, gather_dim: int,
verl/verl/utils/ulysses.py:196
Method
forward
(self, *args, **kwargs)
verl/verl/utils/model.py:51
Method
forward
(ctx, vocab_parallel_logits: torch.Tensor)
verl/verl/utils/megatron/tensor_parallel.py:111
Method
forward
_summary_ Args: ctx (_type_): _description_ hidden (torch.Tensor): (batch_size, num_tokens, hidden_size) -> (batch_si
verl/verl/utils/kernel/linear_cross_entropy.py:40
Method
forward
( ctx, hidden_states: torch.FloatTensor, vocab_weights: torch.FloatTensor, inp
verl/verl/utils/experimental/torch_functional.py:77
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:183
Method
forward
Args: input_ids: input ids. shape (1, totol_nnz) position_ids: position ids. shape (batch_size, seq_length)
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:251
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:324
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:403
Method
forward
Args: input_ids: input ids. shape (1, totol_nnz) position_ids: position ids. shape (batch_size, seq_length)
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:482
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:641
Method
forward
( self, *, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:725
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
verl/verl/models/qwen2/megatron/layers/parallel_decoder.py:47
Method
forward
( self, hidden_states: torch.Tensor, position_ids: Optional[torch.LongTensor] = None,
verl/verl/models/qwen2/megatron/layers/parallel_decoder.py:114
Method
forward
(self, x)
verl/verl/models/qwen2/megatron/layers/parallel_mlp.py:71
Method
forward
(self, x, seq_len=None)
verl/verl/models/qwen2/megatron/layers/parallel_attention.py:68
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
verl/verl/models/qwen2/megatron/layers/parallel_attention.py:234
Method
forward
( self, hidden_states: torch.Tensor, position_ids: Optional[torch.LongTensor] = None,
verl/verl/models/qwen2/megatron/layers/parallel_attention.py:322
Method
forward
(self, hidden_states)
verl/verl/models/qwen2/megatron/layers/parallel_rmsnorm.py:41
Method
forward
Forward pass for the linear layer. This method computes the linear transformation and handles sequence parallelism if enable
verl/verl/models/mcore/bridge.py:66
Method
forward
(self, hidden_states: torch.Tensor)
verl/verl/models/mcore/qwen2_5_vl/vision_model.py:51
Method
forward
(self, seqlen: int)
verl/verl/models/mcore/qwen2_5_vl/vision_model.py:67
Method
forward
Forward function of the Qwen2 Vision Model. This function passes the input tensors through the embedding layer and then the transformer.
verl/verl/models/mcore/qwen2_5_vl/vision_model.py:232
Method
forward
Perform the forward pass through the transformer block. This method handles the core computation of the transformer, including
verl/verl/models/mcore/qwen2_5_vl/vision_transformer_block.py:120
Method
forward
Perform a forward pass through the attention module. Args: hidden_states (Tensor): Hidden states. attention_
verl/verl/models/mcore/qwen2_5_vl/attention.py:28
Method
forward
Forward function of the Qwen2VL model. ### there is a workaround for supporting sequence packing with context parallelism # cp split w
verl/verl/models/mcore/qwen2_5_vl/model.py:195
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
verl/verl/models/llama/megatron/modeling_llama_megatron.py:182
Method
forward
Args: input_ids: input ids. shape (1, totol_nnz) position_ids: position ids. shape (batch_size, seq_length)
verl/verl/models/llama/megatron/modeling_llama_megatron.py:250
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
verl/verl/models/llama/megatron/modeling_llama_megatron.py:323
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
verl/verl/models/llama/megatron/modeling_llama_megatron.py:402
Method
forward
Args: input_ids: input ids. shape (1, totol_nnz) position_ids: position ids. shape (batch_size, seq_length)
verl/verl/models/llama/megatron/modeling_llama_megatron.py:482
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
verl/verl/models/llama/megatron/modeling_llama_megatron.py:591
Method
forward
( self, *, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.
verl/verl/models/llama/megatron/modeling_llama_megatron.py:676
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
verl/verl/models/llama/megatron/layers/parallel_decoder.py:47
Method
forward
( self, hidden_states: torch.Tensor, position_ids: Optional[torch.LongTensor] = None,
verl/verl/models/llama/megatron/layers/parallel_decoder.py:114
Method
forward
(self, x)
verl/verl/models/llama/megatron/layers/parallel_mlp.py:71
Method
forward
(self, x, seq_len=None)
verl/verl/models/llama/megatron/layers/parallel_attention.py:63
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
verl/verl/models/llama/megatron/layers/parallel_attention.py:288
Method
forward
( self, hidden_states: torch.Tensor, position_ids: Optional[torch.LongTensor] = None,
verl/verl/models/llama/megatron/layers/parallel_attention.py:381
Method
forward
( self, input_, weight=None, runtime_gather_output=None, )
verl/verl/models/llama/megatron/layers/parallel_linear.py:96
Method
forward
(self, hidden_states)
verl/verl/models/llama/megatron/layers/parallel_rmsnorm.py:41
Method
forward
(ctx, x, weight, group_list, split_size)
verl/verl/models/transformers/npu_patch.py:91
Method
forward
(ctx, x, weight, group_list)
verl/verl/models/transformers/npu_patch.py:187
Method
forward
When training it is more efficient to just loop over the experts and compute the output for each expert as otherwise the memory wou
verl/verl/models/transformers/npu_patch.py:226
Method
forward
(self, hidden_states: torch.Tensor)
verl/verl/models/transformers/npu_patch.py:281
Method
forward_backward_batch
(self, data: TensorDict, loss_function: Callable, forward_only=False)
verl/verl/workers/engine/megatron/transformer_impl.py:454
Method
forward_backward_batch
(self, data: TensorDict, loss_function: Callable, forward_only=False)
verl/verl/workers/engine/fsdp/transformer_impl.py:475
Method
forward_step
(batch_iter, model)
verl/verl/workers/critic/megatron_critic.py:241
Method
forward_step
(self, batch_iter, model, postprocess_micro_batch_func)
verl/verl/workers/engine/megatron/transformer_impl.py:539
Method
forward_step
(self, batch_iter: Iterator[TensorDict], model, postprocess_micro_batch_func)
verl/verl/workers/engine/megatron/transformer_impl.py:639
Method
forward_step
(self, batch_iter, model, postprocess_micro_batch_func)
verl/verl/workers/engine/megatron/transformer_impl.py:725
Method
forward_step
(self, micro_batch: TensorDict, loss_function, forward_only)
verl/verl/workers/engine/fsdp/transformer_impl.py:939
Method
forward_step
Args: batch_iter: the batch iterator model: the model return_schedule_plan: whether to re
verl/verl/workers/actor/megatron_actor.py:512
Method
forward_step
(batch_iter, model)
verl/verl/workers/reward_model/megatron/reward_model.py:273
Function
forward_with_normal_backend
( self: Glm4vForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torch.
verl/verl/models/transformers/glm4v.py:451
Function
forward_with_normal_backend
( self: Qwen2VLForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torc
verl/verl/models/transformers/qwen2_vl.py:466
Function
forward_with_normal_backend
( self: "Qwen3VLForConditionalGeneration", input_ids: torch.LongTensor = None, labels: Optional[to
verl/verl/models/transformers/qwen3_vl.py:254
Function
forward_with_torch_backend
( self: Glm4vForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torch.
verl/verl/models/transformers/glm4v.py:468
Function
forward_with_torch_backend
( self: Qwen2VLForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torc
verl/verl/models/transformers/qwen2_vl.py:483
Function
forward_with_torch_backend
( self: "Qwen3VLForConditionalGeneration", input_ids: torch.LongTensor = None, labels: Optional[to
verl/verl/models/transformers/qwen3_vl.py:271
Function
forward_with_torch_backend
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = None, pos
verl/verl/models/transformers/dense_common.py:71
Function
forward_with_triton_backend
( self: Glm4vForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torch.
verl/verl/models/transformers/glm4v.py:502
Function
forward_with_triton_backend
( self: Qwen2VLForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torc
verl/verl/models/transformers/qwen2_vl.py:517
Function
forward_with_triton_backend
( self: "Qwen3VLForConditionalGeneration", input_ids: torch.LongTensor = None, labels: Optional[to
verl/verl/models/transformers/qwen3_vl.py:305
Function
forward_with_triton_backend
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = None, pos
verl/verl/models/transformers/dense_common.py:133
Method
freeze
Freeze model modules. Make specific modules non-trainable by setting requires_grad to False for the module's parameters. Args:
verl/verl/models/mcore/qwen2_5_vl/model.py:173
Function
freeze_moe_router
Pre-wrap hook to freeze MoE router parameters. Args: model: List of MegatronModule instances or single module Returns: The m
verl/verl/models/mcore/bridge.py:138
Method
from_name
(cls, name: str)
verl/verl/utils/py_functional.py:276
Method
function
(self)
demo/qwen_agent/tools/base.py:165
Function
fused_forward_model
( model, input_ids: Tensor, position_ids: Tensor, attention_mask: Tensor,
verl/verl/models/mcore/model_forward_fused.py:66
Function
gather_outpus_and_unpad
(*args, **kwargs)
verl/verl/utils/ulysses.py:237
Method
generate
( self, prompt_ids: list[int], sampling_params: dict[str, Any], request_id: st
verl/verl/workers/megatron_workers.py:935
Method
generate
( self, prompt_ids: list[int], sampling_params: dict[str, Any], request_id: st
verl/verl/workers/fsdp_workers.py:1954
← previous
next →
3,401–3,500 of 4,735, ranked by callers