Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DataArcTech/DataArc-SynData-Toolkit
/ functions
Functions
2,774 in github.com/DataArcTech/DataArc-SynData-Toolkit
⨍
Functions
2,774
◇
Types & classes
564
↳
Endpoints
80
Function
fetch_params
(module)
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:70
Function
fetch_params
(module)
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:72
Method
finalize_interaction
(self, instance_id: str, **kwargs)
verl/interactions/weather_interaction.py:78
Method
finalize_interaction
Finalizes the interaction session and releases any associated state or resources. Simulates: release state
verl/interactions/base.py:66
Method
finalize_interaction
(self, instance_id: str, **kwargs)
verl/interactions/gsm8k_interaction.py:86
Method
finalize_save_fn
()
verl/utils/checkpoint/megatron_checkpoint_manager.py:631
Method
finish
(self)
verl/utils/tracking.py:223
Method
finish
(self)
verl/utils/tracking.py:264
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/workers/rollout/sglang_rollout/http_server_engine.py:779
Function
fold_batch_dim
Fold a batch dim from [bsz, xxx] into [new_bsz, bsz // new_bsz, xxx]
verl/protocol.py:213
Method
forward
(ctx, input, indices)
verl/utils/npu_flash_attn_utils.py:24
Method
forward
(ctx, values, indices, first_axis_dim)
verl/utils/npu_flash_attn_utils.py:58
Method
forward
(ctx, tensor, cpu_offload_handler)
verl/utils/activation_offload.py:119
Method
forward
( ctx: Any, group: dist.ProcessGroup, local_input: Tensor, scatter_dim: int,
verl/utils/ulysses.py:167
Method
forward
( ctx: Any, group: dist.ProcessGroup, local_tensor: Tensor, gather_dim: int,
verl/utils/ulysses.py:196
Method
forward
(self, *args, **kwargs)
verl/utils/model.py:54
Method
forward
(ctx, vocab_parallel_logits: torch.Tensor)
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/utils/kernel/linear_cross_entropy.py:40
Method
forward
( ctx, hidden_states: torch.FloatTensor, vocab_weights: torch.FloatTensor, inp
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/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/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/models/qwen2/megatron/modeling_qwen2_megatron.py:324
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
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/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/models/qwen2/megatron/modeling_qwen2_megatron.py:641
Method
forward
( self, *, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.
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/models/qwen2/megatron/layers/parallel_decoder.py:47
Method
forward
( self, hidden_states: torch.Tensor, position_ids: Optional[torch.LongTensor] = None,
verl/models/qwen2/megatron/layers/parallel_decoder.py:114
Method
forward
(self, x)
verl/models/qwen2/megatron/layers/parallel_mlp.py:71
Method
forward
(self, x, seq_len=None)
verl/models/qwen2/megatron/layers/parallel_attention.py:68
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
verl/models/qwen2/megatron/layers/parallel_attention.py:234
Method
forward
( self, hidden_states: torch.Tensor, position_ids: Optional[torch.LongTensor] = None,
verl/models/qwen2/megatron/layers/parallel_attention.py:322
Method
forward
(self, hidden_states)
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/models/mcore/bridge.py:66
Method
forward
(self, hidden_states: torch.Tensor)
verl/models/mcore/qwen2_5_vl/vision_model.py:51
Method
forward
(self, seqlen: int)
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/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/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/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/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/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/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/models/llama/megatron/modeling_llama_megatron.py:323
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
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/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/models/llama/megatron/modeling_llama_megatron.py:591
Method
forward
( self, *, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.
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/models/llama/megatron/layers/parallel_decoder.py:47
Method
forward
( self, hidden_states: torch.Tensor, position_ids: Optional[torch.LongTensor] = None,
verl/models/llama/megatron/layers/parallel_decoder.py:114
Method
forward
(self, x)
verl/models/llama/megatron/layers/parallel_mlp.py:71
Method
forward
(self, x, seq_len=None)
verl/models/llama/megatron/layers/parallel_attention.py:63
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
verl/models/llama/megatron/layers/parallel_attention.py:288
Method
forward
( self, hidden_states: torch.Tensor, position_ids: Optional[torch.LongTensor] = None,
verl/models/llama/megatron/layers/parallel_attention.py:381
Method
forward
( self, input_, weight=None, runtime_gather_output=None, )
verl/models/llama/megatron/layers/parallel_linear.py:96
Method
forward
(self, hidden_states)
verl/models/llama/megatron/layers/parallel_rmsnorm.py:41
Method
forward
Grouped Matmul(GMM) for Ascend NPU. Args: x (torch.Tensor): Input tensor, shape (tokens_num * top_k, hidden_size)
verl/models/transformers/npu_patch.py:58
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 would
verl/models/transformers/npu_patch.py:159
Method
forward
(self, hidden_states: torch.Tensor)
verl/models/transformers/npu_patch.py:215
Method
forward_backward_batch
(self, data: TensorDict, loss_function: Callable, forward_only=False)
verl/workers/engine/megatron/transformer_impl.py:493
Method
forward_backward_batch
(self, data: TensorDict, loss_function: Callable, forward_only=False)
verl/workers/engine/fsdp/transformer_impl.py:487
Method
forward_step
(batch_iter, model)
verl/workers/critic/megatron_critic.py:241
Method
forward_step
(self, batch_iter, model, postprocess_micro_batch_func)
verl/workers/engine/megatron/transformer_impl.py:578
Method
forward_step
(self, batch_iter: Iterator[TensorDict], model, postprocess_micro_batch_func)
verl/workers/engine/megatron/transformer_impl.py:641
Method
forward_step
(self, batch_iter, model, postprocess_micro_batch_func)
verl/workers/engine/megatron/transformer_impl.py:732
Method
forward_step
(self, micro_batch: TensorDict, loss_function, forward_only)
verl/workers/engine/fsdp/transformer_impl.py:941
Method
forward_step
Args: batch_iter: the batch iterator model: the model return_schedule_plan: whether to re
verl/workers/actor/megatron_actor.py:545
Method
forward_step
(batch_iter, model)
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/models/transformers/glm4v.py:451
Function
forward_with_normal_backend
( self: Qwen2VLForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torc
verl/models/transformers/qwen2_vl.py:466
Function
forward_with_normal_backend
( self: "Qwen3VLForConditionalGeneration", input_ids: torch.LongTensor = None, labels: Optional[to
verl/models/transformers/qwen3_vl.py:255
Function
forward_with_torch_backend
( self: Glm4vForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torch.
verl/models/transformers/glm4v.py:468
Function
forward_with_torch_backend
( self: Qwen2VLForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torc
verl/models/transformers/qwen2_vl.py:483
Function
forward_with_torch_backend
( self: "Qwen3VLForConditionalGeneration", input_ids: torch.LongTensor = None, labels: Optional[to
verl/models/transformers/qwen3_vl.py:272
Function
forward_with_torch_backend
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = None, pos
verl/models/transformers/dense_common.py:71
Function
forward_with_triton_backend
( self: Glm4vForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torch.
verl/models/transformers/glm4v.py:502
Function
forward_with_triton_backend
( self: Qwen2VLForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torc
verl/models/transformers/qwen2_vl.py:517
Function
forward_with_triton_backend
( self: "Qwen3VLForConditionalGeneration", input_ids: torch.LongTensor = None, labels: Optional[to
verl/models/transformers/qwen3_vl.py:306
Function
forward_with_triton_backend
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = None, pos
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/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/models/mcore/bridge.py:138
Method
from_dict
(cls, config: Dict)
sdgsystem/configs/config.py:71
Method
from_dict
(cls, config: Dict)
sdgsystem/configs/config.py:97
Method
from_dict
(cls, config: Dict)
sdgsystem/configs/config.py:115
Method
from_dict
(cls, config: Dict)
sdgsystem/configs/config.py:141
Method
from_dict
(cls, config: Dict)
sdgsystem/configs/config.py:172
Method
from_dict
Parse image modality config with global config injection
sdgsystem/configs/config.py:189
Method
from_dict
Parse text modality config with global config injection
sdgsystem/configs/config.py:225
Method
from_dict
(cls, config: Dict)
sdgsystem/configs/config.py:265
Method
from_dict
(cls, config: Dict)
sdgsystem/configs/config.py:363
Method
from_dict
(cls, config: Dict)
sdgsystem/configs/config.py:389
Method
from_dict
(cls, config: Dict)
sdgsystem/configs/config.py:404
Method
from_dict
(config: Dict, method: str)
sdgsystem/configs/config.py:432
Method
from_dict
(config: Dict)
sdgsystem/configs/config.py:444
Method
from_dict
(cls, config: Dict)
sdgsystem/configs/config.py:506
Method
from_dict
(cls, config: Dict)
sdgsystem/configs/config.py:523
Method
from_dict
(config: Dict)
sdgsystem/configs/config.py:549
Method
from_dict
(cls, config: Dict)
sdgsystem/configs/config.py:615
Method
from_dict
(config: Dict)
sdgsystem/configs/config.py:637
Method
from_dict
(cls, config: Dict)
sdgsystem/configs/config.py:684
Method
from_dict
(cls, config_dict: Dict[str, Dict])
sdgsystem/models/processor_arguments.py:27
← previous
next →
2,101–2,200 of 2,774, ranked by callers