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
↓ 8 callers
Method
rank
Get the rank of this worker in the distributed setup.
verl/single_controller/base/worker.py:322
↓ 8 callers
Method
sleep
Sleep all rollout replica instances.
verl/experimental/reward/reward_model.py:108
↓ 8 callers
Function
ulysses_pad_and_slice_inputs
Pad and slice input_ids to be divisible by sp_size Pad position_ids to be divisible by sp_size. Note both input_ids_rmpad and position_i
verl/utils/ulysses.py:296
↓ 8 callers
Function
validate_ulysses_config
(num_heads, ulysses_sequence_size)
verl/utils/ulysses.py:324
↓ 7 callers
Function
_megatron_calc_global_rank
given TP,DP,PP rank to get the global rank.
verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:29
↓ 7 callers
Function
_megatron_calc_global_rank
given TP,DP,PP rank to get the global rank.
verl/models/llama/megatron/checkpoint_utils/llama_saver.py:29
↓ 7 callers
Method
finish
(self)
verl/utils/tracking.py:245
↓ 7 callers
Method
generate_sequences
Batch generate sequences in sync mode. Args: prompts: The input prompts. Returns: The output sequences.
verl/workers/rollout/base.py:69
↓ 7 callers
Function
get_free_port
(address: str)
verl/workers/rollout/utils.py:34
↓ 7 callers
Method
get_job
Get job by ID.
sdgsystem/app/core/job_manager.py:39
↓ 7 callers
Method
get_micro_batch_router_list
Return the list of RouterReplay instances corresponding to the current micro-batch and local (pp_rank, vp_stage) layer range.
verl/utils/megatron/router_replay_utils.py:379
↓ 7 callers
Function
get_reverse_idx
Build the inverse of an index mapping. Args: idx_map (Sequence[int]): Sequence where idx_map[i] = j. Returns: List[int]
verl/utils/seqlen_balancing.py:338
↓ 7 callers
Function
load_extern_object
Load an object from a module path. Args: module_path (str): See :func:`load_module`. object_name (str): The name of t
verl/utils/import_utils.py:184
↓ 7 callers
Method
log
(self, data, step)
verl/utils/logger/aggregate_logger.py:49
↓ 7 callers
Function
masked_mean
Compute the mean of `values` over elements selected by `mask`. Args: values (Tensor): Input tensor. mask (Tensor): Boolean o
verl/utils/torch_functional.py:171
↓ 7 callers
Method
put
(url: string, data?: any, config?: CustomAxiosRequestConfig)
sdgsystem/webui/src/utils/request.ts:92
↓ 6 callers
Function
_broadcast_tensor
broadcast tensor from rank0 across mp_group
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:104
↓ 6 callers
Function
_broadcast_tensor
broadcast tensor across mp_group
verl/models/mcore/saver.py:141
↓ 6 callers
Function
_broadcast_tensor
broadcast tensor from rank0 across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:106
↓ 6 callers
Function
_fetch_tensor
fetch tensor
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:104
↓ 6 callers
Function
_fetch_tensor
fetch tensor
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:106
↓ 6 callers
Function
_get_base_transformer_config
Create a base TransformerConfig with common parameters across different model architectures. TODO: (ycl) use dataclass or converter config?
verl/models/mcore/config_converter.py:32
↓ 6 callers
Method
_get_output_path
Get output file path for a dataset type. Note: Categorized files (solved/learnable/unsolved) are saved by save_categorized() using th
sdgsystem/app/services/sdg_service.py:168
↓ 6 callers
Method
_make_async_request
Make an async HTTP request with retry logic and consistent error handling. Args: endpoint (str): The API endpoint to call (withou
verl/workers/rollout/sglang_rollout/http_server_engine.py:658
↓ 6 callers
Method
_make_request
Make a HTTP request with retry logic and consistent error handling. Args: endpoint (str): The API endpoint to call (without leadi
verl/workers/rollout/sglang_rollout/http_server_engine.py:290
↓ 6 callers
Method
add_progress
Add current progress to buffer Args: idxs: The index of processed sample added after the last save.
sdgsystem/buffer.py:47
↓ 6 callers
Method
cleanup
Manually release vLLM model and free GPU memory. Call this method when you're done with the model to release GPU resources.
sdgsystem/models/models.py:631
↓ 6 callers
Function
combined_int_check
(val)
verl/utils/reward_score/prime_code/testing_util.py:77
↓ 6 callers
Function
compute_position_id_with_mask
(mask)
verl/utils/model.py:227
↓ 6 callers
Function
convert_to_regular_types
Convert Hydra configs and other special types to regular Python types.
verl/utils/py_functional.py:311
↓ 6 callers
Method
encode
Converts a string to a sequence of ids (integer), using the tokenizer and vocabulary. Args: text (`str`, `List[str]` or
verl/workers/rollout/tokenizer.py:73
↓ 6 callers
Method
estimate_flops
Estimate the FLOPS based on the number of valid tokens in the current batch and the time taken. Args: batch_seqlens (Lis
verl/utils/flops_counter.py:379
↓ 6 callers
Function
eval
Evaluate a post-trained model using DeepEval. \b Example: sdg eval configs/eval.yaml sdg eval configs/eval.yaml --model ./che
sdgsystem/cli.py:98
↓ 6 callers
Method
execute
(self, reporter=None)
sdgsystem/tasks/base.py:16
↓ 6 callers
Method
extract_answers
Extract answer from LLM response. Supports two extraction modes: 1. XML-style tags (e.g., "<answer>"): Extracts content betw
sdgsystem/models/answer_extraction.py:34
↓ 6 callers
Method
fail
Mark job as failed.
sdgsystem/app/core/progress.py:185
↓ 6 callers
Method
from_config
(config: BaseComparisonConfig, **kwargs)
sdgsystem/evaluation/answer_comparison.py:66
↓ 6 callers
Method
get_instance
(cls)
verl/utils/rollout_trace.py:60
↓ 6 callers
Function
get_supported_model
(model_type: str)
verl/models/mcore/registry.py:173
↓ 6 callers
Function
is_non_local
Check if a path is a non-local (HDFS) path. Args: path (str): The path to check. Returns: bool: True if the path is an HDFS
verl/utils/fs.py:34
↓ 6 callers
Function
patch_vlm_for_ulysses_input_slicing
Applies a monkey patch to the forward method of a given model class to enable Ulysses sequence parallelism input slicing.
verl/models/transformers/monkey_patch.py:120
↓ 6 callers
Function
postprocess_packed_seqs
Postprocess packed sequences
verl/models/mcore/util.py:118
↓ 6 callers
Function
print_model_size
(model: nn.Module, name: str = None)
verl/utils/model.py:177
↓ 6 callers
Method
remove
(cls, name: str)
verl/utils/py_functional.py:269
↓ 6 callers
Method
resume
Resume rollout weights or kv cache in GPU memory. Args: tags: weights or kv_cache.
verl/workers/rollout/base.py:43
↓ 6 callers
Method
run
Run agent loop to interact with LLM server and environment. Args: sampling_params (Dict[str, Any]): LLM sampling params.
verl/experimental/agent_loop/agent_loop.py:228
↓ 6 callers
Function
set_expandable_segments
Enable or disable expandable segments for cuda. Args: enable (bool): Whether to enable expandable segments. Used to avoid OOM.
verl/utils/device.py:88
↓ 6 callers
Method
sleep
(self)
verl/workers/rollout/sglang_rollout/async_sglang_server.py:246
↓ 6 callers
Method
to
move the batch to device Args: device (torch.device, str): torch device Returns: DataProto: the current Data
verl/protocol.py:597
↓ 6 callers
Method
to_tensordict
Convert this DataProto to TensorDict. Note that this requires tensordict version at least 0.10 Returns:
verl/protocol.py:1113
↓ 6 callers
Method
translate_dataset
Translate all samples in a dataset to the target language. Args: dataset: Dataset to translate target_lang:
sdgsystem/translation/translator.py:33
↓ 6 callers
Function
truncatefn
(s, length=300)
verl/utils/reward_score/prime_code/testing_util.py:39
↓ 5 callers
Method
__init__
(self)
verl/single_controller/ray/base.py:909
↓ 5 callers
Method
__init__
(self, config: Qwen2Config, megatron_config: ModelParallelConfig)
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:83
↓ 5 callers
Method
__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
verl/models/llama/megatron/modeling_llama_megatron.py:82
↓ 5 callers
Function
_broadcast_tensor
broadcast tensor across mp_group
verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:129
↓ 5 callers
Function
_broadcast_tensor
broadcast tensor across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_saver.py:129
↓ 5 callers
Function
_compute_topk
(scores, topk, num_groups=None, group_topk=None)
verl/utils/megatron/router_replay_patch.py:145
↓ 5 callers
Method
_exact_match_voting
(self, answers: List[str], usage_counter: ModelUsageCounter = None, )
sdgsystem/models/postprocess/majority_voting.py:238
↓ 5 callers
Function
_hdfs_cmd
(cmd: str)
verl/utils/hdfs_io.py:144
↓ 5 callers
Method
_run_all
(self, tasks: list[asyncio.Task])
verl/experimental/agent_loop/agent_loop.py:884
↓ 5 callers
Function
_run_cmd
(cmd: str, timeout=None)
verl/utils/hdfs_io.py:140
↓ 5 callers
Method
add_samples
(self, samples: List[Dict])
sdgsystem/dataset/dataset.py:68
↓ 5 callers
Function
apply_fsdp2
model: AutoModelForCausalLM
verl/utils/fsdp_utils.py:507
↓ 5 callers
Function
apply_monkey_patch
Apply monkey patch to the models for ulysses sequence parallel and fused kernel. In the end of this function forward function of the model i
verl/models/transformers/monkey_patch.py:248
↓ 5 callers
Method
backward
(ctx: Any, grad_output: Tensor)
verl/utils/ulysses.py:224
↓ 5 callers
Method
check
(self)
verl/utils/profiler/profile.py:88
↓ 5 callers
Function
check_and_construct_configs
Check and disable incompatible configurations for older Megatron version. Args: original_config (dict): The original model configura
verl/models/mcore/config_converter.py:137
↓ 5 callers
Function
clean_traceback
(error_traceback)
verl/utils/reward_score/prime_code/testing_util.py:81
↓ 5 callers
Method
collective_rpc
( self, method: str | Callable, timeout: Optional[float] = None, args: tuple =
verl/workers/rollout/vllm_rollout/vllm_async_server.py:131
↓ 5 callers
Function
copy
r"""Works like shutil.copy() for file, and shutil.copytree for dir, and supports hdfs. Copy data and mode bits ("cp src dst"). Return the file's
verl/utils/hdfs_io.py:84
↓ 5 callers
Function
flash_attn_supports_top_left_mask
Fallback implementation for older transformers versions. Returns False to disable features that require this function.
verl/utils/transformers_compat.py:32
↓ 5 callers
Function
fsdp2_load_full_state_dict
Loads the full state dict (could be only on rank 0) into the sharded model. This is done by broadcasting the parameters from rank 0 to all ot
verl/utils/fsdp_utils.py:451
↓ 5 callers
Method
generate
(self, task_definition: str, demo_examples: List[Dict[str, str]], passages: Optional[L
sdgsystem/generation/generator.py:31
↓ 5 callers
Method
generate
( self, )
sdgsystem/distillation/base.py:47
↓ 5 callers
Method
generate_with_images
Generate responses from VLM model with image inputs. Args: prompts: Single prompt string or list of prompts
sdgsystem/models/client.py:57
↓ 5 callers
Method
get_data_parallel_size
(self)
verl/workers/engine/base.py:153
↓ 5 callers
Function
get_fsdp_wrap_policy
Get FSDP wrap policy for the module. Args: module: The module to get wrap policy for config: Configuration for wrap policy
verl/utils/fsdp_utils.py:73
↓ 5 callers
Function
get_hf_model_checkpoint_path
(checkpoint_path)
verl/utils/megatron_utils.py:601
↓ 5 callers
Function
get_init_weight_context_manager
(use_meta_tensor=True, mesh: DeviceMesh = None)
verl/utils/fsdp_utils.py:57
↓ 5 callers
Method
get_model
(self)
sdgsystem/models/client.py:91
↓ 5 callers
Method
get_placement_groups
(self, strategy="STRICT_PACK", name=None, device_name="cuda")
verl/single_controller/ray/base.py:114
↓ 5 callers
Method
get_resource_pool
Get the resource pool of the worker_cls
verl/trainer/ppo/ray_trainer.py:99
↓ 5 callers
Function
import_external_libs
(external_libs=None)
verl/utils/import_utils.py:72
↓ 5 callers
Method
init_model
(self)
verl/workers/fsdp_workers.py:1458
↓ 5 callers
Function
left_right_2_no_padding
Convert TensorDict from left-right padding to no-padding format. Args: data: TensorDict with "input_ids", "attention_mask", "respons
verl/workers/utils/padding.py:22
↓ 5 callers
Method
load_checkpoint
(self)
verl/trainer/fsdp_sft_trainer.py:607
↓ 5 callers
Function
load_mcore_dist_weights
(parallel_model, dist_weight_path, is_value_model=False, prefix="")
verl/utils/model.py:537
↓ 5 callers
Function
load_megatron_gptmodel_weights
Load weights for mcore GPT model.
verl/utils/model.py:487
↓ 5 callers
Function
make_megatron_module
( wrap_config: McoreModuleWrapperConfig, tf_config: TransformerConfig, hf_config: PretrainedConfig
verl/utils/megatron_utils.py:173
↓ 5 callers
Method
merge
(self, other)
verl/utils/seqlen_balancing.py:48
↓ 5 callers
Function
renderLabelWithTip
(label: string, tooltip: string, _required?: boolean)
sdgsystem/webui/src/pages/training-page/components/training-config.tsx:147
↓ 5 callers
Method
save
(self, results: Iterable[Any], usage_counter: ModelUsageCounter = None)
sdgsystem/buffer.py:90
↓ 5 callers
Method
save_checkpoint
Save checkpoint using FSDPCheckpointManager with improved tracking
verl/trainer/fsdp_sft_trainer.py:537
↓ 5 callers
Method
set_on_update
Set callback to be called after estimate_usage.
sdgsystem/models/usage_counter.py:82
↓ 5 callers
Function
simple_timer
Context manager for basic timing without NVTX markers. This utility function measures the execution time of code within its context and accum
verl/utils/profiler/performance.py:155
↓ 5 callers
Function
slice_input_tensor
(x: Tensor, dim: int, padding: bool = True, group: ProcessGroup = None)
verl/utils/ulysses.py:117
↓ 5 callers
Method
stop
(self)
verl/utils/profiler/profile.py:100
↓ 5 callers
Method
to
Move model parameters, optimizer states, or both to the specified device. Note that this function executes irrespective of offload co
verl/workers/engine/megatron/transformer_impl.py:409
↓ 5 callers
Method
to
Move FSDP model and/or optimizer to CPU or GPU with offload support. Note that this function executes irrespective of offload config.
verl/workers/engine/fsdp/transformer_impl.py:565
← previous
next →
101–200 of 2,774, ranked by callers