MCPcopy Create free account

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

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

Functiononmessage
(msg)
sdgsystem/webui/src/pages/training-page/components/training-export.tsx:397
Functiononmessage
(msg)
sdgsystem/webui/src/pages/generate-task-page/index.tsx:114
Functiononmessage
(event)
sdgsystem/webui/src/pages/configuration-page/index.tsx:362
Functiononmessage
(msg)
sdgsystem/webui/src/hooks/use-sse.ts:67
Functiononopen
(response)
sdgsystem/webui/src/pages/training-page/components/training-export.tsx:349
Functiononopen
(response)
sdgsystem/webui/src/pages/generate-task-page/index.tsx:86
Functiononopen
(response)
sdgsystem/webui/src/pages/configuration-page/index.tsx:350
Functiononopen
(response)
sdgsystem/webui/src/hooks/use-sse.ts:57
FunctionopenModal
()
sdgsystem/webui/src/contexts/generation-core-modal-context.tsx:16
Functionoptimize_memory_for_inference
Optimize GPU memory usage for inference
verl/utils/memory_utils.py:118
Functionoptimize_memory_for_training
Optimize GPU memory usage for training
verl/utils/memory_utils.py:132
Methodoptimizer_step
Perform an optimization step to update model parameters based on accumulated gradients. Returns: grad_norm (float): The
verl/workers/engine/megatron/transformer_impl.py:380
Methodoptimizer_step
Clip gradients, skip update if non-finite, and step optimizer. Returns: grad_norm (float): Norm of gradients before clip
verl/workers/engine/fsdp/transformer_impl.py:528
Methodoptimizer_zero_grad
Zero out gradients of all parameters before starting a new backward pass.
verl/workers/engine/megatron/transformer_impl.py:370
Functionpad_2d_list_to_length
pad a 2D list (e.g. responses, logprobs) to a 2D tensor.
verl/utils/torch_functional.py:333
Functionpad_input
Arguments: hidden_states: (total_nnz, ...), where total_nnz = number of tokens in selected in attention_mask. indices: (total_nnz
verl/utils/npu_flash_attn_utils.py:81
Functionpad_packed_inputs
pad the tokens such that the total length is a multiple of size. This function is useful when applying sequence parallel and context parallel
verl/utils/model.py:504
Functionpad_to_divisor
Pad a TensorDict to size divisible by size_divisor Args: size_divisor (int): size divisor Returns: data: (TensorDict): the p
verl/utils/tensordict_utils.py:412
Methodpad_token_id
`Optional[int]`: Id of the padding token in the vocabulary. Returns `None` if the token has not been set.
verl/workers/rollout/tokenizer.py:39
Functionparallel_init_module_fn
Generate a function to initialize sub-modules in the `module` with `shard_states` from huggingface checkpoint. Args: module (tor
verl/utils/fsdp_utils.py:315
Functionparallel_load_safetensors
Parallel load safetensors from huggingface checkpoint Huggingface checkpoint contains: - config.json: a json file for model configurati
verl/utils/fsdp_utils.py:259
Methodparse_document
Parse a document and extract structured content. Args: document_path: Path to the document file inside config.document_d
sdgsystem/documents/parse.py:28
Functionpatch_get_query_key_value_tensors
Derives `query`, `key` and `value` tensors from `hidden_states`.
verl/models/mcore/patch_v012.py:32
Functionpatched_forward
(self, hidden_states: torch.Tensor)
verl/models/transformers/qwen3_vl.py:359
Functionpatched_init
(self, *args, **kwargs)
verl/utils/megatron/router_replay_patch.py:340
Functionpatched_routing
Top-k routing function Args: logits (torch.Tensor): Logits tensor after gating. Returns: probs (torch.Tensor): The probabili
verl/utils/megatron/router_replay_patch.py:238
Functionpatched_tf_config_init
(self, *args, **kwargs)
verl/utils/megatron/router_replay_patch.py:320
Functionpeft_pre_wrap_hook
Pre-wrap hook that applies PEFT transformation.
verl/utils/megatron_utils.py:218
Methodpg_geo_rs_seq_tis
Policy Gradient with Geo-RS-Seq-TIS (Bypass mode). Combines geometric rejection with sequence-level IS in bypass mode with policy gra
verl/trainer/config/algorithm.py:370
Methodpg_is
Policy Gradient with IS Correction. Uses policy gradient loss with explicit IS correction. No PPO clipping. Args:
verl/trainer/config/algorithm.py:280
Methodpg_rs
Policy Gradient with Rejection Sampling (Geo-RS). Policy gradient with geometric rejection sampling (no IS weights) in bypass mode. S
verl/trainer/config/algorithm.py:301
Methodping
Health check method.
verl/tools/image_zoom_in_tool.py:82
Methodping
(self)
verl/tools/sandbox_fusion_tools.py:73
Methodping
Health check method.
verl/tools/search_tool.py:84
Functionpop
(tensordict: TensorDict, key: str, default=None)
verl/utils/tensordict_utils.py:379
Functionpop_keys
(tensordict: TensorDict, keys: Iterable[str])
verl/utils/tensordict_utils.py:394
Functionpost_process_logits
(input_ids, logits, temperature, top_k, top_p)
verl/utils/torch_functional.py:519
Methodpostprocess_data
Split the data to follow FSDP partition
verl/workers/sharding_manager/fsdp_ulysses.py:64
Methodpostprocess_micro_batch_func
(self, output, data: TensorDict, forward_only: bool, loss_function)
verl/workers/engine/megatron/transformer_impl.py:581
Methodpostprocess_micro_batch_func
(self, output, data: TensorDict, forward_only: bool, loss_function)
verl/workers/engine/megatron/transformer_impl.py:702
Methodppo_is_bypass
PPO with IS Correction in Bypass Mode. Skips old_log_prob computation by reusing rollout_log_prob. PPO clips against rollout policy i
verl/trainer/config/algorithm.py:259
Functionppo_loss
(config: ActorConfig, model_output, data: TensorDict, dp_group=None)
verl/workers/utils/losses.py:95
Functionprepare_decoder_attention_mask
(attention_mask, input_shape, inputs_embeds)
verl/utils/torch_functional.py:610
Methodprepare_model_outputs
(self, output: dict | torch.Tensor, data: TensorDict)
verl/workers/engine/megatron/transformer_impl.py:754
Methodprepare_model_outputs
(self, output, output_args, micro_batch: TensorDict)
verl/workers/engine/fsdp/transformer_impl.py:981
Methodpreprocess_data
(self, data: DataProto)
verl/workers/sharding_manager/base.py:31
Methodpreprocess_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/workers/sharding_manager/fsdp_ulysses.py:52
Methodprint_size
(self, prefix="")
verl/protocol.py:447
Functionprint_with_rank
_summary_ Print a message with rank information. This function prints the message only if `log_only_rank_0` is False or if the rank is 0.
verl/utils/logger/aggregate_logger.py:98
Functionprint_with_rank_and_timer
_summary_ Print a message with rank information and a timestamp. This function prints the message only if `log_only_rank_0` is False or if the
verl/utils/logger/aggregate_logger.py:112
Functionprocess
(iter)
verl/utils/debug/trajectory_tracker.py:95
Methodprocess_batch
()
verl/experimental/reward/reward_loop/limited.py:456
Functionprocess_item
(config, data_source, response_lst, reward_data)
verl/trainer/main_eval.py:34
Methodprocess_one_shard
(rank: int, model_state_dict_lst: list)
verl/model_merger/fsdp_model_merger.py:148
Functionprocess_weights_after_loading_for_vllm10
This function is used to process the weights after loading for a Linear layer, it is used for vllm v0.10 Compared to the original process_weights
verl/utils/vllm/vllm_fp8_utils.py:214
Functionprocess_weights_after_loading_for_vllm11
This function is used to process the weights after loading for a Linear layer, it is used for vllm 0.11 Compared to the original process_weights_
verl/utils/vllm/vllm_fp8_utils.py:269
Functionprocess_weights_after_loading_moe_for_vllm10
This function is used to process the weights after loading for a FusedMoE layer, it is used for vllm v0.10
verl/utils/vllm/vllm_fp8_utils.py:328
Functionprocess_weights_after_loading_moe_for_vllm11
This function is used to process the weights after loading for a FusedMoE layer, it is used for vllm 0.11
verl/utils/vllm/vllm_fp8_utils.py:404
Functionput_data
(index, data)
verl/utils/ray_utils.py:64
Functionqwen2_attn_forward
Adapted from transformers 4.49.0 to support Ulysses sequence parallelism for transformers >= 4.48.0. NOTE: This function has been tested onl
verl/models/transformers/qwen2.py:159
Functionqwen2_flash_attn_forward
Adapted from transformers 4.47.1 to support Ulysses sequence parallelism. NOTE: This function is only tested on transformers versions betwee
verl/models/transformers/qwen2.py:35
Functionqwen2_vl_attn_forward
( self: "Qwen2VLAttention", hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] =
verl/models/transformers/qwen2_vl.py:268
Functionqwen2_vl_base_forward
( self: "Qwen2VLForConditionalGeneration", input_ids: torch.LongTensor, attention_mask: Optional[t
verl/models/transformers/qwen2_vl.py:414
Functionqwen3_moe_sparse_moe_block_forward_npu
NPU optimized implementation for `forward` in Qwen3MoeSparseMoeBlock.
verl/models/transformers/npu_patch.py:108
Functionqwen3_vl_base_forward
( self: "Qwen3VLForConditionalGeneration", input_ids: torch.LongTensor, attention_mask: Optional[t
verl/models/transformers/qwen3_vl.py:235
Functionreduce_metrics
Reduces a dictionary of metric lists by computing the mean, max, or min of each list. The reduce operation is determined by the key name:
verl/utils/metric/utils.py:23
Functionregister
Register a function with distributed execution configuration. This decorator registers a function with specific dispatch and execution modes
verl/single_controller/base/decorator.py:418
Functionregister
Decorator to register a reward manager class with a given name. Args: name: `(str)` The name of the reward manager.
verl/workers/reward_manager/registry.py:24
Functionregister
Register agent loop class.
verl/experimental/agent_loop/agent_loop.py:249
Functionregister
Decorator to register a reward loop manager class with a given name. Args: name: `(str)` The name of the reward loop manager.
verl/experimental/reward/reward_loop/registry.py:24
Methodregister
A class method decorator that registers an engine class with a given key. This allows for dynamic instantiation of engine classes by
verl/workers/engine/base.py:263
Methodregister
(cls, name: str)
verl/experimental/agent_loop/tool_parser.py:67
Functionregister_adv_est
Decorator to register a advantage estimator function with a given name. Args: name_or_enum: `(str)` or `(AdvantageEstimator)`
verl/trainer/ppo/core_algos.py:113
Functionregister_dispatch_mode
Register a new dispatch mode.
verl/single_controller/base/decorator.py:358
Functionregister_empty_parameter
(module, name, param)
verl/utils/fsdp_utils.py:240
Functionregister_policy_loss
Register a policy loss function with the given name. Args: name (str): The name to register the policy loss function under. Returns:
verl/trainer/ppo/core_algos.py:53
Methodrelease
(self, instance_id: str, **kwargs)
verl/tools/mcp_base_tool.py:116
Methodrelease
(self, instance_id: str, **kwargs)
verl/tools/geo3k_tool.py:100
Methodrelease
Release a token back to the bucket.
verl/tools/image_zoom_in_tool.py:62
Methodrelease
(self)
verl/tools/sandbox_fusion_tools.py:56
Methodrelease
(self, instance_id: str, **kwargs)
verl/tools/sandbox_fusion_tools.py:194
Methodrelease
(self, instance_id: str, **kwargs)
verl/tools/gsm8k_tool.py:109
Methodrelease
Release a token back to the bucket.
verl/tools/search_tool.py:64
Methodrelease
Release weights and kv cache in GPU memory.
verl/workers/rollout/sglang_rollout/sglang_rollout.py:149
Methodrelease
Release weights and kv cache in GPU memory.
verl/workers/rollout/vllm_rollout/vllm_rollout.py:223
Methodrelease_memory_occupation
Release GPU memory occupation temporarily (async version). Args: tags (Optional[List[str]], optional): List of tags to specify wh
verl/workers/rollout/sglang_rollout/http_server_engine.py:720
Functionreload_prometheus
(port)
verl/experimental/agent_loop/prometheus_utils.py:62
Functionremove_boxed
(s)
verl/utils/reward_score/prime_math/__init__.py:307
Functionremove_pad_token
Remove the pad token. Args: input_ids shape: [bs, seq_length] attention_mask shape: [bs, seq_length] Returns: no_padd
verl/utils/torch_functional.py:433
Functionreset_memory_stats
Reset GPU memory statistics
verl/utils/memory_utils.py:77
Methodresume
Resume rollout weights or kv cache in GPU memory. Args: tag: weights or kv_cache.
verl/workers/rollout/sglang_rollout/sglang_rollout.py:139
Methodresume
Resume rollout weights or kv cache in GPU memory. Args: tags: weights or kv_cache.
verl/workers/rollout/vllm_rollout/vllm_rollout.py:214
Methodresume_dataset_state
(self)
verl/utils/dataset/rl_dataset.py:257
Methodresume_memory_occupation
Resume GPU memory occupation (async version). Similar to AsyncEngine, this method handles first-time weight reloading by calling rele
verl/workers/rollout/sglang_rollout/http_server_engine.py:732
Methodreward_score
( self, prompt: Optional[str] = None, input_ids: Optional[list[int]] = None, i
verl/workers/rollout/sglang_rollout/http_server_engine.py:483
Functionrms_norm_forward_npu
NPU optimized implementation for RMSNorm.
verl/models/transformers/npu_patch.py:34
Functionrollout_trace_op
(func)
verl/utils/rollout_trace.py:179
Methodrun
(self, sampling_params: dict[str, Any], **kwargs)
verl/experimental/agent_loop/tool_agent_loop.py:120
Methodrun
(self, sampling_params: dict[str, Any], **kwargs)
verl/experimental/agent_loop/single_turn_agent_loop.py:37
Methodrun_all
()
verl/experimental/agent_loop/agent_loop.py:885
← previousnext →2,501–2,600 of 2,774, ranked by callers