MCPcopy Create free account

hub / github.com/DataArcTech/DataArc-SynData-Toolkit / functions

Functions2,774 in github.com/DataArcTech/DataArc-SynData-Toolkit

Functionfetch_params
(module)
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:70
Functionfetch_params
(module)
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:72
Methodfinalize_interaction
(self, instance_id: str, **kwargs)
verl/interactions/weather_interaction.py:78
Methodfinalize_interaction
Finalizes the interaction session and releases any associated state or resources. Simulates: release state
verl/interactions/base.py:66
Methodfinalize_interaction
(self, instance_id: str, **kwargs)
verl/interactions/gsm8k_interaction.py:86
Methodfinalize_save_fn
()
verl/utils/checkpoint/megatron_checkpoint_manager.py:631
Methodfinish
(self)
verl/utils/tracking.py:223
Methodfinish
(self)
verl/utils/tracking.py:264
Methodflush_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
Functionfold_batch_dim
Fold a batch dim from [bsz, xxx] into [new_bsz, bsz // new_bsz, xxx]
verl/protocol.py:213
Methodforward
(ctx, input, indices)
verl/utils/npu_flash_attn_utils.py:24
Methodforward
(ctx, values, indices, first_axis_dim)
verl/utils/npu_flash_attn_utils.py:58
Methodforward
(ctx, tensor, cpu_offload_handler)
verl/utils/activation_offload.py:119
Methodforward
( ctx: Any, group: dist.ProcessGroup, local_input: Tensor, scatter_dim: int,
verl/utils/ulysses.py:167
Methodforward
( ctx: Any, group: dist.ProcessGroup, local_tensor: Tensor, gather_dim: int,
verl/utils/ulysses.py:196
Methodforward
(self, *args, **kwargs)
verl/utils/model.py:54
Methodforward
(ctx, vocab_parallel_logits: torch.Tensor)
verl/utils/megatron/tensor_parallel.py:111
Methodforward
_summary_ Args: ctx (_type_): _description_ hidden (torch.Tensor): (batch_size, num_tokens, hidden_size) -> (batch_si
verl/utils/kernel/linear_cross_entropy.py:40
Methodforward
( ctx, hidden_states: torch.FloatTensor, vocab_weights: torch.FloatTensor, inp
verl/utils/experimental/torch_functional.py:77
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:183
Methodforward
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
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:324
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:403
Methodforward
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
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:641
Methodforward
( self, *, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:725
Methodforward
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
Methodforward
( self, hidden_states: torch.Tensor, position_ids: Optional[torch.LongTensor] = None,
verl/models/qwen2/megatron/layers/parallel_decoder.py:114
Methodforward
(self, x)
verl/models/qwen2/megatron/layers/parallel_mlp.py:71
Methodforward
(self, x, seq_len=None)
verl/models/qwen2/megatron/layers/parallel_attention.py:68
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
verl/models/qwen2/megatron/layers/parallel_attention.py:234
Methodforward
( self, hidden_states: torch.Tensor, position_ids: Optional[torch.LongTensor] = None,
verl/models/qwen2/megatron/layers/parallel_attention.py:322
Methodforward
(self, hidden_states)
verl/models/qwen2/megatron/layers/parallel_rmsnorm.py:41
Methodforward
Forward pass for the linear layer. This method computes the linear transformation and handles sequence parallelism if enable
verl/models/mcore/bridge.py:66
Methodforward
(self, hidden_states: torch.Tensor)
verl/models/mcore/qwen2_5_vl/vision_model.py:51
Methodforward
(self, seqlen: int)
verl/models/mcore/qwen2_5_vl/vision_model.py:67
Methodforward
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
Methodforward
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
Methodforward
Perform a forward pass through the attention module. Args: hidden_states (Tensor): Hidden states. attention_
verl/models/mcore/qwen2_5_vl/attention.py:28
Methodforward
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
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
verl/models/llama/megatron/modeling_llama_megatron.py:182
Methodforward
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
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
verl/models/llama/megatron/modeling_llama_megatron.py:323
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
verl/models/llama/megatron/modeling_llama_megatron.py:402
Methodforward
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
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
verl/models/llama/megatron/modeling_llama_megatron.py:591
Methodforward
( self, *, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.
verl/models/llama/megatron/modeling_llama_megatron.py:676
Methodforward
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
Methodforward
( self, hidden_states: torch.Tensor, position_ids: Optional[torch.LongTensor] = None,
verl/models/llama/megatron/layers/parallel_decoder.py:114
Methodforward
(self, x)
verl/models/llama/megatron/layers/parallel_mlp.py:71
Methodforward
(self, x, seq_len=None)
verl/models/llama/megatron/layers/parallel_attention.py:63
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
verl/models/llama/megatron/layers/parallel_attention.py:288
Methodforward
( self, hidden_states: torch.Tensor, position_ids: Optional[torch.LongTensor] = None,
verl/models/llama/megatron/layers/parallel_attention.py:381
Methodforward
( self, input_, weight=None, runtime_gather_output=None, )
verl/models/llama/megatron/layers/parallel_linear.py:96
Methodforward
(self, hidden_states)
verl/models/llama/megatron/layers/parallel_rmsnorm.py:41
Methodforward
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
Methodforward
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
Methodforward
(self, hidden_states: torch.Tensor)
verl/models/transformers/npu_patch.py:215
Methodforward_backward_batch
(self, data: TensorDict, loss_function: Callable, forward_only=False)
verl/workers/engine/megatron/transformer_impl.py:493
Methodforward_backward_batch
(self, data: TensorDict, loss_function: Callable, forward_only=False)
verl/workers/engine/fsdp/transformer_impl.py:487
Methodforward_step
(batch_iter, model)
verl/workers/critic/megatron_critic.py:241
Methodforward_step
(self, batch_iter, model, postprocess_micro_batch_func)
verl/workers/engine/megatron/transformer_impl.py:578
Methodforward_step
(self, batch_iter: Iterator[TensorDict], model, postprocess_micro_batch_func)
verl/workers/engine/megatron/transformer_impl.py:641
Methodforward_step
(self, batch_iter, model, postprocess_micro_batch_func)
verl/workers/engine/megatron/transformer_impl.py:732
Methodforward_step
(self, micro_batch: TensorDict, loss_function, forward_only)
verl/workers/engine/fsdp/transformer_impl.py:941
Methodforward_step
Args: batch_iter: the batch iterator model: the model return_schedule_plan: whether to re
verl/workers/actor/megatron_actor.py:545
Methodforward_step
(batch_iter, model)
verl/workers/reward_model/megatron/reward_model.py:273
Functionforward_with_normal_backend
( self: Glm4vForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torch.
verl/models/transformers/glm4v.py:451
Functionforward_with_normal_backend
( self: Qwen2VLForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torc
verl/models/transformers/qwen2_vl.py:466
Functionforward_with_normal_backend
( self: "Qwen3VLForConditionalGeneration", input_ids: torch.LongTensor = None, labels: Optional[to
verl/models/transformers/qwen3_vl.py:255
Functionforward_with_torch_backend
( self: Glm4vForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torch.
verl/models/transformers/glm4v.py:468
Functionforward_with_torch_backend
( self: Qwen2VLForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torc
verl/models/transformers/qwen2_vl.py:483
Functionforward_with_torch_backend
( self: "Qwen3VLForConditionalGeneration", input_ids: torch.LongTensor = None, labels: Optional[to
verl/models/transformers/qwen3_vl.py:272
Functionforward_with_torch_backend
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = None, pos
verl/models/transformers/dense_common.py:71
Functionforward_with_triton_backend
( self: Glm4vForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torch.
verl/models/transformers/glm4v.py:502
Functionforward_with_triton_backend
( self: Qwen2VLForConditionalGeneration, input_ids: torch.LongTensor = None, labels: Optional[torc
verl/models/transformers/qwen2_vl.py:517
Functionforward_with_triton_backend
( self: "Qwen3VLForConditionalGeneration", input_ids: torch.LongTensor = None, labels: Optional[to
verl/models/transformers/qwen3_vl.py:306
Functionforward_with_triton_backend
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = None, pos
verl/models/transformers/dense_common.py:133
Methodfreeze
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
Functionfreeze_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
Methodfrom_dict
(cls, config: Dict)
sdgsystem/configs/config.py:71
Methodfrom_dict
(cls, config: Dict)
sdgsystem/configs/config.py:97
Methodfrom_dict
(cls, config: Dict)
sdgsystem/configs/config.py:115
Methodfrom_dict
(cls, config: Dict)
sdgsystem/configs/config.py:141
Methodfrom_dict
(cls, config: Dict)
sdgsystem/configs/config.py:172
Methodfrom_dict
Parse image modality config with global config injection
sdgsystem/configs/config.py:189
Methodfrom_dict
Parse text modality config with global config injection
sdgsystem/configs/config.py:225
Methodfrom_dict
(cls, config: Dict)
sdgsystem/configs/config.py:265
Methodfrom_dict
(cls, config: Dict)
sdgsystem/configs/config.py:363
Methodfrom_dict
(cls, config: Dict)
sdgsystem/configs/config.py:389
Methodfrom_dict
(cls, config: Dict)
sdgsystem/configs/config.py:404
Methodfrom_dict
(config: Dict, method: str)
sdgsystem/configs/config.py:432
Methodfrom_dict
(config: Dict)
sdgsystem/configs/config.py:444
Methodfrom_dict
(cls, config: Dict)
sdgsystem/configs/config.py:506
Methodfrom_dict
(cls, config: Dict)
sdgsystem/configs/config.py:523
Methodfrom_dict
(config: Dict)
sdgsystem/configs/config.py:549
Methodfrom_dict
(cls, config: Dict)
sdgsystem/configs/config.py:615
Methodfrom_dict
(config: Dict)
sdgsystem/configs/config.py:637
Methodfrom_dict
(cls, config: Dict)
sdgsystem/configs/config.py:684
Methodfrom_dict
(cls, config_dict: Dict[str, Dict])
sdgsystem/models/processor_arguments.py:27
← previousnext →2,101–2,200 of 2,774, ranked by callers