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
↓ 1 callers
Function
get_weight_buffer_meta_from_module
Return a dictionary containing name to a shape and dtype.
verl/utils/memory_buffer.py:62
↓ 1 callers
Function
get_weight_loader
(arch: str)
verl/models/weight_loader_registry.py:16
↓ 1 callers
Function
get_weight_saver
(arch: str)
verl/models/weight_loader_registry.py:32
↓ 1 callers
Method
get_window_index
(self, grid_thw)
verl/models/mcore/qwen2_5_vl/vision_model.py:191
↓ 1 callers
Function
get_wsd_schedule_with_warmup
Create a Warmup-Stable-Decay learning rate scheduler. The schedule follows three phases: 1. Warmup: Learning rate increases linearly fro
verl/utils/torch_functional.py:673
↓ 1 callers
Function
group_mean_std
Compute per-group mean/std/count in pure PyTorch. mean_g = sum / count std_g = sqrt( max( (sum2 - sum^2/count) / max(count-1, 1), eps )
verl/utils/groupwise.py:164
↓ 1 callers
Method
groupid_reset
Groupid reset.
verl/utils/activation_offload.py:151
↓ 1 callers
Function
handleLogoClick
()
sdgsystem/webui/src/layout/header.tsx:63
↓ 1 callers
Function
handleRowClick
(record: DataItem)
sdgsystem/webui/src/pages/generate-task-page/components/output-panel.tsx:169
↓ 1 callers
Function
handle_base
(x)
verl/utils/reward_score/prime_math/grader.py:141
↓ 1 callers
Function
handle_pi
(string, pi)
verl/utils/reward_score/prime_math/grader.py:150
↓ 1 callers
Method
hijack
()
verl/utils/vllm/utils.py:33
↓ 1 callers
Method
image_field_filter
Identify which fields in an image dataset contain image, input, and output. Uses LLM to analyze field names and determine the mappin
sdgsystem/dataset/process.py:69
↓ 1 callers
Function
index_select_tensor_dict
Index a tensor dict with a tensor of indices.
verl/utils/tensordict_utils.py:234
↓ 1 callers
Method
init_class
This is used to do heavy initialization work that should shared across all instances. It's only called once. Args: config (DictCo
verl/experimental/agent_loop/agent_loop.py:214
↓ 1 callers
Method
init_class
Initialize class state shared across all instances.
verl/experimental/reward/reward_loop/base.py:56
↓ 1 callers
Method
init_colocated
Init colocated rollout server, rollout engine and hybrid engine colocated in same ray placement group but in separate processes. Args
verl/workers/rollout/replica.py:139
↓ 1 callers
Function
init_execution_pool
( num_workers: int, enable_global_rate_limit=True, rate_limit=10, mode: PoolMode = PoolMode.ThreadMode )
verl/tools/sandbox_fusion_tools.py:87
↓ 1 callers
Method
init_hybrid
Init hybrid rollout server, rollout engine and training engine(fsdp/megatron) fused in same process. Args: worker_group: RayWorke
verl/workers/rollout/replica.py:126
↓ 1 callers
Function
init_predefined_dispatch_mode
()
verl/single_controller/base/decorator.py:42
↓ 1 callers
Function
init_predefined_execute_mode
()
verl/single_controller/base/decorator.py:65
↓ 1 callers
Method
init_resource_pool_mgr
Initialize resource pool manager.
verl/trainer/main_ppo.py:200
↓ 1 callers
Function
init_search_execution_pool
Initialize search execution pool.
verl/tools/search_tool.py:103
↓ 1 callers
Function
init_visual_execution_pool
Initialize visual execution pool.
verl/tools/image_zoom_in_tool.py:101
↓ 1 callers
Method
init_workers
Initialize distributed training workers using Ray backend. Creates: 1. Ray resource pools from configuration 2. Worker groups
verl/trainer/ppo/ray_trainer.py:679
↓ 1 callers
Method
initialize
(self, config_path, rate_limit: float = 10.0)
verl/tools/utils/mcp_clients/McpClientManager.py:35
↓ 1 callers
Function
initialize_interactions_from_config
Initialize interactions from configuration file. Args: interaction_config_file: Path to the interaction configuration file. Returns:
verl/interactions/utils/interaction_registry.py:42
↓ 1 callers
Function
initialize_mcp_tool
(tool_cls, tool_config)
verl/tools/utils/tool_registry.py:36
↓ 1 callers
Function
initialize_system_prompt
Initialize system prompt tokens for chat templates that support them. Args: tokenizer: The tokenizer with a chat template **
verl/utils/chat_template.py:11
↓ 1 callers
Function
isFileAccepted
(file: File, accept?: string)
sdgsystem/webui/src/components/custom-upload/index.tsx:18
↓ 1 callers
Function
is_correct_minerva
Check if the solution is correct according to Minerva criteria. Args: solution_str: The solution string to check gt: The ground t
verl/utils/reward_score/math_dapo.py:165
↓ 1 callers
Function
is_correct_strict_box
Check if the prediction is correct using strict boxed answer criteria. Args: pred: The prediction string gt: The ground truth ans
verl/utils/reward_score/math_dapo.py:193
↓ 1 callers
Method
is_empty
(self)
verl/tools/schemas.py:119
↓ 1 callers
Function
is_equiv
(str1, str2, verbose=False)
verl/utils/reward_score/math_reward.py:32
↓ 1 callers
Function
is_fp8_model
(vllm_config)
verl/utils/vllm/vllm_fp8_utils.py:52
↓ 1 callers
Function
is_fp8_weight
(name, model)
verl/utils/vllm/vllm_fp8_utils.py:91
↓ 1 callers
Method
is_replay_backward_action
Return True if the current router_replay_action is REPLAY_BACKWARD for the local router instances. This inspects the first local RouterReplay
verl/utils/megatron/router_replay_utils.py:434
↓ 1 callers
Method
is_text_only
(self)
verl/tools/schemas.py:122
↓ 1 callers
Function
is_torch_npu_available
Check the availability of NPU
verl/utils/device.py:18
↓ 1 callers
Function
is_version_ge
check if the package version is greater than or equal to the minimum version
verl/utils/vllm/utils.py:120
↓ 1 callers
Function
karmarkar_karp
(seqlen_list: list[int], k_partitions: int, equal_size: bool)
verl/utils/seqlen_balancing.py:37
↓ 1 callers
Function
kl_penalty_forward
Compute KL divergence given logprob and ref_logprob. Copied from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py#L1104
verl/trainer/ppo/core_algos.py:1468
↓ 1 callers
Function
last_boxed_only_string
(string)
verl/utils/reward_score/math_reward.py:63
↓ 1 callers
Function
launch_router_process
( worker_urls: list[str], )
verl/experimental/reward/router/naive_router.py:51
↓ 1 callers
Function
launch_server_process
Launch an SGLang HTTP server process and wait for it to be ready. This function starts a new process running an SGLang HTTP server, then waits
verl/workers/rollout/sglang_rollout/http_server_engine.py:106
↓ 1 callers
Method
load_checkpoint
(self, checkpoint_path, hdfs_path=None, del_local_after_load=True)
verl/workers/megatron_workers.py:1258
↓ 1 callers
Method
load_checkpoint
(self, local_path, hdfs_path=None, del_local_after_load=True)
verl/workers/fsdp_workers.py:1557
↓ 1 callers
Method
load_documents
Load all PDF documents from configured corpus paths. Returns: List of PDF file paths
sdgsystem/documents/load.py:23
↓ 1 callers
Function
load_extern_type
DEPRECATED. Directly use `load_extern_object` instead.
verl/utils/import_utils.py:201
↓ 1 callers
Method
load_from_dict
(self, usage: Dict)
sdgsystem/models/usage_counter.py:43
↓ 1 callers
Method
load_from_disk
(filepath)
verl/protocol.py:442
↓ 1 callers
Function
load_fsdp2_model_to_gpu
(model)
verl/utils/fsdp_utils.py:198
↓ 1 callers
Function
load_group_to_gpu
(group)
verl/utils/megatron_utils.py:528
↓ 1 callers
Function
load_jsonl
(path: str)
sdgsystem/utils.py:19
↓ 1 callers
Function
load_megatron_copy_params
Load optimizer parameters back to GPU. Handles ChainedOptimizer. Args: optimizers: Optimizer or ChainedOptimizer instance.
verl/utils/megatron_utils.py:509
↓ 1 callers
Method
load_model_cls
(model_arch: str, value=False)
verl/models/registry.py:45
↓ 1 callers
Function
load_module
Load a module from a path. Args: module_path (str): The path to the module. Either - `pkg_path`, e.g.,
verl/utils/import_utils.py:87
↓ 1 callers
Method
load_params_to_cuda
(self)
verl/workers/reward_model/megatron/reward_model.py:343
↓ 1 callers
Function
load_quanted_weights
(weights, model_runner)
verl/utils/vllm/vllm_fp8_utils.py:192
↓ 1 callers
Method
load_rng_state
(rng_state)
verl/utils/checkpoint/checkpoint_manager.py:158
↓ 1 callers
Method
load_rng_states
(self, rng_states, data_parallel_random_init=False, use_dist_ckpt=True)
verl/utils/checkpoint/megatron_checkpoint_manager.py:285
↓ 1 callers
Function
load_state_dict_to_megatron_gptmodel
Load merged state_dict to sharded Megatron module in training.
verl/models/mcore/loader.py:56
↓ 1 callers
Function
load_training_config
Load training configuration from a YAML file. Args: yaml_path: Path to YAML configuration file Returns: Appropriate con
sdgsystem/trainer/config.py:326
↓ 1 callers
Function
load_valuehead_model
(local_path, torch_dtype, model_config, trust_remote_code)
verl/utils/model.py:622
↓ 1 callers
Method
log_generations_to_clearml
Log validation generation to clearml as table
verl/utils/tracking.py:434
↓ 1 callers
Method
log_generations_to_mlflow
Log validation generation to mlflow as artifacts
verl/utils/tracking.py:412
↓ 1 callers
Method
log_generations_to_swanlab
Log samples to swanlab as text
verl/utils/tracking.py:397
↓ 1 callers
Method
log_generations_to_tensorboard
Log samples to tensorboard as text
verl/utils/tracking.py:462
↓ 1 callers
Method
log_generations_to_vemlp_wandb
(self, samples, step)
verl/utils/tracking.py:359
↓ 1 callers
Method
log_generations_to_wandb
(self, samples, step)
verl/utils/tracking.py:364
↓ 1 callers
Function
log_seqlen_unbalance
Calculate and log metrics related to sequence length imbalance before and after partitioning. Args: seqlen_list (List[int]): A list
verl/utils/seqlen_balancing.py:205
↓ 1 callers
Function
logprobs_from_logits_flash_attn
(logits, labels, inplace_backward=True)
verl/utils/torch_functional.py:95
↓ 1 callers
Function
logprobs_from_logits_torch_npu
(logits, labels)
verl/utils/torch_functional.py:103
↓ 1 callers
Function
logprobs_from_logits_v2
A memory efficient implementation of logprobs_from_logits
verl/utils/torch_functional.py:116
↓ 1 callers
Function
lower
(text)
verl/utils/reward_score/search_r1_like_qa_em.py:34
↓ 1 callers
Function
main
()
verl/model_merger/__main__.py:52
↓ 1 callers
Function
main
Main entry point for PPO training with Hydra configuration management. Args: config_dict: Hydra configuration dictionary containing train
verl/trainer/main_ppo.py:36
↓ 1 callers
Function
main
(config)
verl/trainer/main_generation.py:44
↓ 1 callers
Function
main
(config)
verl/trainer/sft_trainer_ray.py:326
↓ 1 callers
Function
main
(config)
verl/trainer/main_eval.py:42
↓ 1 callers
Function
main
(config)
verl/trainer/sft_trainer.py:375
↓ 1 callers
Function
main
(config)
verl/trainer/fsdp_sft_trainer.py:837
↓ 1 callers
Function
main
(config)
verl/trainer/main_generation_server.py:123
↓ 1 callers
Function
main
()
sdgsystem/app/run.py:5
↓ 1 callers
Function
make_value_model
Creates a pre-wrap hook that replace the output layer with a value head. Args: hidden_size (int): The hidden size of the model's transfor
verl/models/mcore/bridge.py:97
↓ 1 callers
Function
masked_var
Compute variance of tensor with masked values.
verl/utils/torch_functional.py:188
↓ 1 callers
Function
match_answer
(response)
verl/utils/reward_score/prime_math/__init__.py:347
↓ 1 callers
Method
merge_and_save
(self)
verl/model_merger/megatron_model_merger.py:491
↓ 1 callers
Method
merge_and_save
(self)
verl/model_merger/fsdp_model_merger.py:206
↓ 1 callers
Function
merge_router_topk_indices
Merge recorded router top-k indices across sequence-parallel ranks for all router instances, then pack/unpack them to align with the original
verl/utils/megatron/router_replay_utils.py:170
↓ 1 callers
Function
need_reward_model
Given a role worker mapping, do we need reward model.
verl/trainer/ppo/utils.py:79
↓ 1 callers
Function
offload_fsdp2_model_to_cpu
(model, empty_cache: bool = True)
verl/utils/fsdp_utils.py:171
↓ 1 callers
Function
offload_group_to_cpu
(group)
verl/utils/megatron_utils.py:487
↓ 1 callers
Function
offload_megatron_copy_params
Offload optimizer parameters to CPU. Supports both Megatron optimizers and `ChainedOptimizer`, which wraps a list of underlying optimizers.
verl/utils/megatron_utils.py:468
↓ 1 callers
Method
on_group_commit_backward
On group commit backward.
verl/utils/activation_offload.py:167
↓ 1 callers
Function
only_int_check
(val)
verl/utils/reward_score/prime_code/testing_util.py:69
↓ 1 callers
Method
optimizer_step
Perform an optimization step using the optimizer.
verl/workers/engine/base.py:81
↓ 1 callers
Method
optimizer_zero_grad
Zero the gradients of the optimizer.
verl/workers/engine/base.py:75
↓ 1 callers
Method
optimizer_zero_grad
Zero gradients and enforce FSDP grad-clipping logic.
verl/workers/engine/fsdp/transformer_impl.py:522
↓ 1 callers
Function
pad_to_sequence_parallel
pad the tokens such that the total length is a multiple of sp world size Args: unpad_tokens: (total_nnz, ...). Tokens after removing padd
verl/utils/megatron/sequence_parallel.py:29
← previous
next →
1,201–1,300 of 2,774, ranked by callers