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
onmessage
(msg)
sdgsystem/webui/src/pages/training-page/components/training-export.tsx:397
Function
onmessage
(msg)
sdgsystem/webui/src/pages/generate-task-page/index.tsx:114
Function
onmessage
(event)
sdgsystem/webui/src/pages/configuration-page/index.tsx:362
Function
onmessage
(msg)
sdgsystem/webui/src/hooks/use-sse.ts:67
Function
onopen
(response)
sdgsystem/webui/src/pages/training-page/components/training-export.tsx:349
Function
onopen
(response)
sdgsystem/webui/src/pages/generate-task-page/index.tsx:86
Function
onopen
(response)
sdgsystem/webui/src/pages/configuration-page/index.tsx:350
Function
onopen
(response)
sdgsystem/webui/src/hooks/use-sse.ts:57
Function
openModal
()
sdgsystem/webui/src/contexts/generation-core-modal-context.tsx:16
Function
optimize_memory_for_inference
Optimize GPU memory usage for inference
verl/utils/memory_utils.py:118
Function
optimize_memory_for_training
Optimize GPU memory usage for training
verl/utils/memory_utils.py:132
Method
optimizer_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
Method
optimizer_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
Method
optimizer_zero_grad
Zero out gradients of all parameters before starting a new backward pass.
verl/workers/engine/megatron/transformer_impl.py:370
Function
pad_2d_list_to_length
pad a 2D list (e.g. responses, logprobs) to a 2D tensor.
verl/utils/torch_functional.py:333
Function
pad_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
Function
pad_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
Function
pad_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
Method
pad_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
Function
parallel_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
Function
parallel_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
Method
parse_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
Function
patch_get_query_key_value_tensors
Derives `query`, `key` and `value` tensors from `hidden_states`.
verl/models/mcore/patch_v012.py:32
Function
patched_forward
(self, hidden_states: torch.Tensor)
verl/models/transformers/qwen3_vl.py:359
Function
patched_init
(self, *args, **kwargs)
verl/utils/megatron/router_replay_patch.py:340
Function
patched_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
Function
patched_tf_config_init
(self, *args, **kwargs)
verl/utils/megatron/router_replay_patch.py:320
Function
peft_pre_wrap_hook
Pre-wrap hook that applies PEFT transformation.
verl/utils/megatron_utils.py:218
Method
pg_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
Method
pg_is
Policy Gradient with IS Correction. Uses policy gradient loss with explicit IS correction. No PPO clipping. Args:
verl/trainer/config/algorithm.py:280
Method
pg_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
Method
ping
Health check method.
verl/tools/image_zoom_in_tool.py:82
Method
ping
(self)
verl/tools/sandbox_fusion_tools.py:73
Method
ping
Health check method.
verl/tools/search_tool.py:84
Function
pop
(tensordict: TensorDict, key: str, default=None)
verl/utils/tensordict_utils.py:379
Function
pop_keys
(tensordict: TensorDict, keys: Iterable[str])
verl/utils/tensordict_utils.py:394
Function
post_process_logits
(input_ids, logits, temperature, top_k, top_p)
verl/utils/torch_functional.py:519
Method
postprocess_data
Split the data to follow FSDP partition
verl/workers/sharding_manager/fsdp_ulysses.py:64
Method
postprocess_micro_batch_func
(self, output, data: TensorDict, forward_only: bool, loss_function)
verl/workers/engine/megatron/transformer_impl.py:581
Method
postprocess_micro_batch_func
(self, output, data: TensorDict, forward_only: bool, loss_function)
verl/workers/engine/megatron/transformer_impl.py:702
Method
ppo_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
Function
ppo_loss
(config: ActorConfig, model_output, data: TensorDict, dp_group=None)
verl/workers/utils/losses.py:95
Function
prepare_decoder_attention_mask
(attention_mask, input_shape, inputs_embeds)
verl/utils/torch_functional.py:610
Method
prepare_model_outputs
(self, output: dict | torch.Tensor, data: TensorDict)
verl/workers/engine/megatron/transformer_impl.py:754
Method
prepare_model_outputs
(self, output, output_args, micro_batch: TensorDict)
verl/workers/engine/fsdp/transformer_impl.py:981
Method
preprocess_data
(self, data: DataProto)
verl/workers/sharding_manager/base.py:31
Method
preprocess_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
Method
print_size
(self, prefix="")
verl/protocol.py:447
Function
print_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
Function
print_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
Function
process
(iter)
verl/utils/debug/trajectory_tracker.py:95
Method
process_batch
()
verl/experimental/reward/reward_loop/limited.py:456
Function
process_item
(config, data_source, response_lst, reward_data)
verl/trainer/main_eval.py:34
Method
process_one_shard
(rank: int, model_state_dict_lst: list)
verl/model_merger/fsdp_model_merger.py:148
Function
process_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
Function
process_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
Function
process_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
Function
process_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
Function
put_data
(index, data)
verl/utils/ray_utils.py:64
Function
qwen2_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
Function
qwen2_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
Function
qwen2_vl_attn_forward
( self: "Qwen2VLAttention", hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] =
verl/models/transformers/qwen2_vl.py:268
Function
qwen2_vl_base_forward
( self: "Qwen2VLForConditionalGeneration", input_ids: torch.LongTensor, attention_mask: Optional[t
verl/models/transformers/qwen2_vl.py:414
Function
qwen3_moe_sparse_moe_block_forward_npu
NPU optimized implementation for `forward` in Qwen3MoeSparseMoeBlock.
verl/models/transformers/npu_patch.py:108
Function
qwen3_vl_base_forward
( self: "Qwen3VLForConditionalGeneration", input_ids: torch.LongTensor, attention_mask: Optional[t
verl/models/transformers/qwen3_vl.py:235
Function
reduce_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
Function
register
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
Function
register
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
Function
register
Register agent loop class.
verl/experimental/agent_loop/agent_loop.py:249
Function
register
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
Method
register
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
Method
register
(cls, name: str)
verl/experimental/agent_loop/tool_parser.py:67
Function
register_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
Function
register_dispatch_mode
Register a new dispatch mode.
verl/single_controller/base/decorator.py:358
Function
register_empty_parameter
(module, name, param)
verl/utils/fsdp_utils.py:240
Function
register_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
Method
release
(self, instance_id: str, **kwargs)
verl/tools/mcp_base_tool.py:116
Method
release
(self, instance_id: str, **kwargs)
verl/tools/geo3k_tool.py:100
Method
release
Release a token back to the bucket.
verl/tools/image_zoom_in_tool.py:62
Method
release
(self)
verl/tools/sandbox_fusion_tools.py:56
Method
release
(self, instance_id: str, **kwargs)
verl/tools/sandbox_fusion_tools.py:194
Method
release
(self, instance_id: str, **kwargs)
verl/tools/gsm8k_tool.py:109
Method
release
Release a token back to the bucket.
verl/tools/search_tool.py:64
Method
release
Release weights and kv cache in GPU memory.
verl/workers/rollout/sglang_rollout/sglang_rollout.py:149
Method
release
Release weights and kv cache in GPU memory.
verl/workers/rollout/vllm_rollout/vllm_rollout.py:223
Method
release_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
Function
reload_prometheus
(port)
verl/experimental/agent_loop/prometheus_utils.py:62
Function
remove_boxed
(s)
verl/utils/reward_score/prime_math/__init__.py:307
Function
remove_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
Function
reset_memory_stats
Reset GPU memory statistics
verl/utils/memory_utils.py:77
Method
resume
Resume rollout weights or kv cache in GPU memory. Args: tag: weights or kv_cache.
verl/workers/rollout/sglang_rollout/sglang_rollout.py:139
Method
resume
Resume rollout weights or kv cache in GPU memory. Args: tags: weights or kv_cache.
verl/workers/rollout/vllm_rollout/vllm_rollout.py:214
Method
resume_dataset_state
(self)
verl/utils/dataset/rl_dataset.py:257
Method
resume_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
Method
reward_score
( self, prompt: Optional[str] = None, input_ids: Optional[list[int]] = None, i
verl/workers/rollout/sglang_rollout/http_server_engine.py:483
Function
rms_norm_forward_npu
NPU optimized implementation for RMSNorm.
verl/models/transformers/npu_patch.py:34
Function
rollout_trace_op
(func)
verl/utils/rollout_trace.py:179
Method
run
(self, sampling_params: dict[str, Any], **kwargs)
verl/experimental/agent_loop/tool_agent_loop.py:120
Method
run
(self, sampling_params: dict[str, Any], **kwargs)
verl/experimental/agent_loop/single_turn_agent_loop.py:37
Method
run_all
()
verl/experimental/agent_loop/agent_loop.py:885
← previous
next →
2,501–2,600 of 2,774, ranked by callers