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
↓ 353 callers
Method
get
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
verl/utils/memory_buffer.py:45
↓ 342 callers
Method
get
Get a rollout replica class by name.
verl/workers/rollout/replica.py:233
↓ 268 callers
Method
to
Move model parameters, optimizer states, or both to the specified device. Args: device: Target device identifier.
verl/workers/engine/base.py:162
↓ 170 callers
Method
get
(url: string, config?: CustomAxiosRequestConfig)
sdgsystem/webui/src/utils/request.ts:84
↓ 146 callers
Method
split
Split the batch among dim=0 into chunks. The meta_info is passed to each DataProto after split. Args: split_size (int): the size
verl/protocol.py:916
↓ 124 callers
Method
pop
Pop a subset of the DataProto via `batch_keys` and `meta_info_keys` Args: batch_keys (list, optional): a list of strings indicati
verl/protocol.py:732
↓ 114 callers
Function
get_device_id
Return current device id based on the device type. Returns: device index
verl/utils/device.py:68
↓ 111 callers
Function
get_torch_device
Return the corresponding torch attribute based on the device type string. Returns: module: The corresponding torch device namespace, or to
verl/utils/device.py:55
↓ 97 callers
Method
load
(self, usage_counter: ModelUsageCounter = None)
sdgsystem/buffer.py:58
↓ 86 callers
Function
print_rank_0
If distributed is initialized, print only on rank 0.
verl/utils/logger/aggregate_logger.py:89
↓ 78 callers
Method
update
Update method for fixed KL controller (no-op). Args: current_kl (float): Current KL divergence value (unused). n_step
verl/trainer/ppo/core_algos.py:180
↓ 77 callers
Method
get
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
verl/utils/megatron/memory.py:31
↓ 76 callers
Function
log_gpu_memory_usage
Log GPU memory usage information. Args: head (str): A descriptive header for the memory usage log message. logger (logging.Logger
verl/utils/profiler/performance.py:63
↓ 57 callers
Method
extend
Extend self from other Dataset
sdgsystem/dataset/dataset.py:100
↓ 47 callers
Function
get_device_name
Function that gets the torch.device based on the current machine. This currently only supports CPU, CUDA, NPU. Returns: device
verl/utils/device.py:40
↓ 46 callers
Function
log_with_rank
_summary_ Log a message with rank information using a logger. This function logs the message only if `log_only_rank_0` is False or if the rank
verl/utils/logger/aggregate_logger.py:128
↓ 44 callers
Method
chunk
Split the batch among dim=0 into chunks. The meta_info is passed to each DataProto after split. Args: chunks (int): the number of
verl/protocol.py:875
↓ 44 callers
Function
omega_conf_to_dataclass
Convert an OmegaConf DictConfig to a dataclass. Args: config: The OmegaConf DictConfig or dict to convert. dataclass_type: T
verl/utils/config.py:23
↓ 39 callers
Method
values
(cls)
verl/utils/py_functional.py:233
↓ 34 callers
Function
func
(self, *args, **kwargs)
verl/single_controller/ray/base.py:837
↓ 33 callers
Function
copy_to_local
Copy files/directories from HDFS to local cache with validation. Args: src (str): Source path - HDFS path (hdfs://...), local filesystem
verl/utils/fs.py:195
↓ 29 callers
Method
complete_step
Mark current step as complete.
sdgsystem/app/core/progress.py:159
↓ 29 callers
Method
start_step
Start a new step within current phase.
sdgsystem/app/core/progress.py:83
↓ 29 callers
Function
unwrap_model
(model, module_instances=ALL_MODULE_WRAPPER_CLASSNAMES)
verl/utils/megatron_utils.py:307
↓ 28 callers
Method
create
Create a tool instance. Args: instance_id: The instance id of the tool. Returns: The instance id of the tool
verl/tools/base_tool.py:46
↓ 28 callers
Function
gather_seq_scatter_heads
A func to sync embedding input with alltoall in sequence parallel gather sequence dimension and scatter head dim: e.g. seq_dim: 1, head_d
verl/utils/ulysses.py:62
↓ 26 callers
Method
concat
Concat a list of DataProto. The batch is concatenated among dim=0. The meta_info is merged, with special handling for metrics from different w
verl/protocol.py:928
↓ 26 callers
Method
update
(self, config: Dict)
sdgsystem/configs/config.py:11
↓ 25 callers
Method
decode
Converts a sequence of ids in a string, using the tokenizer and vocabulary with options to remove special tokens and clean up tokeniz
verl/workers/rollout/tokenizer.py:89
↓ 25 callers
Method
to_dtype
(precision)
verl/utils/torch_dtypes.py:61
↓ 22 callers
Method
get_data_parallel_rank
(self)
verl/workers/engine/base.py:156
↓ 21 callers
Method
compute_score
(self, data: DataProto)
verl/experimental/reward/reward_manager.py:85
↓ 21 callers
Function
fsdp_version
(model)
verl/utils/fsdp_utils.py:399
↓ 21 callers
Method
get
(self)
verl/utils/rendezvous/ray_backend.py:28
↓ 20 callers
Method
add
(self, idx: int, val: int)
verl/utils/seqlen_balancing.py:44
↓ 20 callers
Function
hf_tokenizer
Create a huggingface pretrained tokenizer which correctness handles eos and pad tokens. Args: name (str): The name of the tokenizer.
verl/utils/tokenizer.py:36
↓ 20 callers
Method
select
Select a subset of the DataProto via batch_keys and meta_info_keys Args: batch_keys (list, optional): a list of strings indicatin
verl/protocol.py:611
↓ 20 callers
Method
store
(self)
verl/single_controller/base/worker_group.py:60
↓ 20 callers
Function
useAntdTheme
()
sdgsystem/webui/src/hooks/use-antd-theme.ts:3
↓ 19 callers
Function
updateSection
(section: string, key: string, value: any)
sdgsystem/webui/src/pages/training-page/components/training-config.tsx:249
↓ 18 callers
Method
step
(self)
verl/utils/profiler/profile.py:96
↓ 17 callers
Method
from_dict
Create a DataProto from a dict of tensors. This assumes that 1. All the tensor in tensors have the same dim0 2. Only dim0 is the batch
verl/protocol.py:507
↓ 17 callers
Method
from_dict
Load configuration from a dictionary.
sdgsystem/configs/config.py:727
↓ 17 callers
Method
log
(self, data, step, backend=None)
verl/utils/tracking.py:153
↓ 17 callers
Function
offload_megatron_model_to_cpu
In megatron, the model and optimizer storage are: - bf16 parameter data chunked in model parallel group - fp32 grad chunked in model para
verl/utils/megatron_utils.py:405
↓ 17 callers
Function
pad_input
Unified entry point for `pad_input` across CUDA and NPU backends. Dynamically dispatches to the appropriate device-specific implementation:
verl/utils/attention_utils.py:53
↓ 16 callers
Function
agg_loss
Aggregate the loss across global batch to ensure the loss is invariant to fsdp/megatron parallelism. NOTE: The returned loss has different b
verl/trainer/ppo/core_algos.py:772
↓ 16 callers
Function
convert_config
[Deprecated] convert config Args: hf_config (PretrainedConfig): _description_ megatron_config (_type_): _description_ Return
verl/utils/megatron_utils.py:322
↓ 16 callers
Method
named_parameters
(self)
verl/utils/memory_buffer.py:209
↓ 16 callers
Function
offload_fsdp_model_to_cpu
(model: FSDP, empty_cache: bool = True)
verl/utils/fsdp_utils.py:144
↓ 16 callers
Function
rearrange
Unified entry point for `rearrange` across CUDA and NPU backends. Dynamically dispatches to the appropriate device-specific implementation:
verl/utils/attention_utils.py:69
↓ 16 callers
Method
update_step
Update current step progress.
sdgsystem/app/core/progress.py:105
↓ 15 callers
Function
aggressive_empty_cache
More aggressive GPU memory cleanup function, tries to release PyTorch reserved but unallocated memory. Args: force_sync: Whether
verl/utils/memory_utils.py:31
↓ 15 callers
Function
marked_timer
Context manager for timing with platform markers. This utility function measures the execution time of code within its context, accumulates t
verl/utils/profiler/performance.py:172
↓ 15 callers
Function
model_forward_gen
(vision_model: bool = False)
verl/models/mcore/model_forward.py:32
↓ 14 callers
Method
_register_dispatch_collect_info
Register the dp_rank for a given mesh name. This function is meant to be called by the worker Args: mesh_name (str):
verl/single_controller/base/worker.py:86
↓ 14 callers
Function
fused_forward_model_gen
(vision_model: bool = False)
verl/models/mcore/model_forward_fused.py:65
↓ 14 callers
Function
get_ulysses_sequence_parallel_world_size
Get ulysses sequence parallel world size.
verl/utils/ulysses.py:46
↓ 14 callers
Function
load_megatron_model_to_gpu
(models, load_grad=True)
verl/utils/megatron_utils.py:441
↓ 14 callers
Method
start
(self)
verl/utils/profiler/profile.py:91
↓ 13 callers
Method
get_data_parallel_group
(self)
verl/workers/engine/base.py:159
↓ 13 callers
Method
get_rng_state
()
verl/utils/checkpoint/checkpoint_manager.py:145
↓ 13 callers
Method
init
( cls, project_name: str, experiment_name: str, backend: str, token2te
verl/utils/rollout_trace.py:66
↓ 13 callers
Function
load_fsdp_model_to_gpu
(model: FSDP)
verl/utils/fsdp_utils.py:178
↓ 13 callers
Function
preprocess_packed_seqs
Preprocess packed sequences CP splits sequence into CP*2 chunks, and each GPU gets 2 chunks (GPU0 gets first and last chunks, GPU1 gets s
verl/models/mcore/util.py:25
↓ 13 callers
Method
sleep
Sleep each rollout server.
verl/workers/rollout/replica.py:213
↓ 12 callers
Function
append_to_dict
Append values from new_data to lists in data. For each key in new_data, this function appends the corresponding value to a list stored under
verl/utils/py_functional.py:165
↓ 12 callers
Method
dump
(self, outputs: DataProto)
verl/utils/rollout_skip.py:105
↓ 12 callers
Function
get_ulysses_sequence_parallel_group
Get ulysses sequence parallel process group.
verl/utils/ulysses.py:38
↓ 12 callers
Function
index_first_axis
Unified entry point for `index_first_axis` across CUDA and NPU backends. Dynamically dispatches to the appropriate device-specific implement
verl/utils/attention_utils.py:37
↓ 12 callers
Function
unpad_input
Unified entry point for `unpad_input` across CUDA and NPU backends. Dynamically dispatches to the appropriate device-specific implementation
verl/utils/attention_utils.py:84
↓ 11 callers
Method
estimate_usage
estimate the token and time usage of n iteration units Args: n: the number of iteration units
sdgsystem/models/usage_counter.py:93
↓ 11 callers
Method
is_mp_src_rank_with_outputs
Whether the current rank is the first rank in model parallel group that contains model outputs
verl/workers/engine/base.py:209
↓ 11 callers
Method
register
(cls, name: str)
verl/utils/py_functional.py:258
↓ 11 callers
Method
repeat
Repeat the batch data a specified number of times. Args: repeat_times (int): Number of times to repeat the data.
verl/protocol.py:982
↓ 11 callers
Method
save
(self)
verl/utils/profiler/profile.py:105
↓ 10 callers
Method
format_prompts
Combine base instruction with answer extraction instruction. Args: base_instruction: Task-specific output instruction
sdgsystem/models/answer_extraction.py:13
↓ 10 callers
Function
local_mkdir_safe
_summary_ Thread-safe directory creation function that ensures the directory is created even if multiple processes attempt to create it simult
verl/utils/fs.py:277
↓ 10 callers
Function
offload_megatron_optimizer
(optimizers)
verl/utils/megatron_utils.py:550
↓ 10 callers
Method
post
(url: string, data?: any, config?: CustomAxiosRequestConfig)
sdgsystem/webui/src/utils/request.ts:88
↓ 9 callers
Function
_broadcast_tensor
broadcast tensor from rank0 across mp_group
verl/models/mcore/loader.py:104
↓ 9 callers
Method
_handle_apply_chat_template
( processing_class: PreTrainedTokenizer | PreTrainedTokenizerFast | ProcessorMixin, messages:
verl/workers/rollout/schemas.py:225
↓ 9 callers
Function
_megatron_calc_global_rank
Calculate global rank with support for CP/EP parallelism
verl/models/mcore/saver.py:30
↓ 9 callers
Function
gather_heads_scatter_seq
A func to sync attention result with alltoall in sequence parallel gather head dimension and scatter seq dim: e.g. seq_dim: 1, head_dim:
verl/utils/ulysses.py:86
↓ 9 callers
Function
get_nccl_backend
Return nccl backend type based on the device type. Returns: nccl backend type string.
verl/utils/device.py:76
↓ 9 callers
Function
hf_processor
Create a huggingface processor to process multimodal data. Args: name_or_path (str): The name of the processor. Returns: tra
verl/utils/tokenizer.py:66
↓ 9 callers
Function
offload_fsdp_optimizer
(optimizer)
verl/utils/fsdp_utils.py:204
↓ 9 callers
Function
rearrange_micro_batches
Split a batch into micro-batches by total token count, with optional DP sync and padding. Args: batch (TensorDict): must include "at
verl/utils/seqlen_balancing.py:261
↓ 9 callers
Function
repeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
verl/models/transformers/kimi_vl.py:79
↓ 9 callers
Method
save
Save the dataset to a JSONL file. Args: save_path: Path where the JSONL file should be saved.
sdgsystem/dataset/dataset.py:83
↓ 9 callers
Method
union
(self, other: "ProfilerConfig")
verl/utils/profiler/config.py:126
↓ 8 callers
Function
_create_param_from_subclass_attributes
(custom_param)
verl/utils/vllm/vllm_fp8_utils.py:230
↓ 8 callers
Method
_emit
Emit event to queue.
sdgsystem/app/core/progress.py:197
↓ 8 callers
Method
add_usage
add token and time usage to this counter. Args: n_token: token cost time: time cost if add_
sdgsystem/models/usage_counter.py:54
↓ 8 callers
Function
apply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
verl/models/transformers/kimi_vl.py:43
↓ 8 callers
Method
from_list
Create a Dataset instance from a list of samples. Args: sample_list: List of dictionaries containing the samples. Return
sdgsystem/dataset/dataset.py:20
↓ 8 callers
Function
gather_outputs_and_unpad
Gather a tensor across a process group and optionally unpad its padded elements. Args: x (Tensor): Input tensor to gather. g
verl/utils/ulysses.py:243
↓ 8 callers
Function
is_transformers_version_in_range
(min_version: Optional[str] = None, max_version: Optional[str] = None)
verl/utils/transformers_compat.py:40
↓ 8 callers
Function
is_valid_ipv6_address
(address: str)
verl/workers/rollout/utils.py:26
↓ 8 callers
Function
logprobs_from_logits
Compute per-token log-probabilities for the given labels. Uses a Flash-Attention–based cross-entropy (if available) for efficient backward,
verl/utils/torch_functional.py:64
next →
1–100 of 2,774, ranked by callers