MCPcopy Create free account

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

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

↓ 1 callersFunctionapply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
verl/models/llama/megatron/layers/parallel_attention.py:370
↓ 1 callersFunctionapply_rotary_pos_emb_thd_absolute
A baseline implementation of applying RoPE for `thd` format. Args: t (Tensor): Input tensor T is of shape [t, h, d] cu_seqlens(Te
verl/models/mcore/qwen2_5_vl/rope_utils.py:222
↓ 1 callersFunctionapply_router_replay_patch
Applies the monkey patch for MoE Router Replay functionality. This patch dynamically adds the 'enable_routing_replay' attribute to Transforme
verl/utils/megatron/router_replay_patch.py:302
↓ 1 callersFunctionare_equal_under_sympy
(ground_truth_normalized: str, given_normalized: str)
verl/utils/reward_score/prime_math/__init__.py:213
↓ 1 callersFunctionas_torch_index
Convert arbitrary group labels to a contiguous 1-D torch.long tensor (0..G-1). Args: index: Any iterable of labels or tensor/ndarray
verl/utils/groupwise.py:91
↓ 1 callersFunctionassign_non_tensor_data
(tensor_dict: TensorDict, key, val)
verl/utils/tensordict_utils.py:23
↓ 1 callersFunctionassign_non_tensor_stack
Assign a list with potentially nested structures (lists, dicts, etc.) to TensorDict. This function handles complex nested data structures like:
verl/utils/tensordict_utils.py:28
↓ 1 callersFunctionasync_func
(self, *args, **kwargs)
verl/single_controller/ray/base.py:841
↓ 1 callersFunctionbroadcast_from_megatron_pp
(tensor: torch.Tensor)
verl/utils/megatron_utils.py:752
↓ 1 callersFunctionbroadcast_params
(module)
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:70
↓ 1 callersFunctionbroadcast_params
(module)
verl/models/mcore/loader.py:71
↓ 1 callersFunctionbroadcast_params
(module)
verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:72
↓ 1 callersFunctionbroadcast_str_from_megatron_pp
(obj: Any)
verl/utils/megatron_utils.py:789
↓ 1 callersFunctionbuild_memory_reference
Build the memory references. The memory buffers are built using the build_memory_buffer API. This API will allocate a weight buffer pointer to the
verl/utils/memory_buffer.py:117
↓ 1 callersFunctionbuild_memory_reference_from_module
( module: torch.nn.Module, memory_buffers: dict[torch.dtype, MemoryBuffer], maintain_weight=True )
verl/utils/memory_buffer.py:101
↓ 1 callersMethodbuild_test_cases
Build DeepEval test cases from dataset and model outputs. Args: dataset: Test dataset with 'input' and 'output' (ground
sdgsystem/deepeval/evaluator.py:129
↓ 1 callersMethodbulk_reload_group
Bulk reload group.
verl/utils/activation_offload.py:355
↓ 1 callersMethodcalc_reward
(self, instance_id: str, **kwargs)
verl/tools/geo3k_tool.py:92
↓ 1 callersMethodcalc_reward
(self, instance_id: str, **kwargs)
verl/tools/gsm8k_tool.py:100
↓ 1 callersFunctioncalculate_debug_metrics
calculate rollout vs actor logprobs diff, for debugging purpose Args: data: DataProto the data batch to calculate
verl/utils/debug/metrics.py:63
↓ 1 callersMethodcalculate_distribution
Calculate how many samples to extract from each dataset. Uses sequential score-based approach: extract from highest-scored datasets f
sdgsystem/tasks/image/web.py:461
↓ 1 callersMethodcalculate_distribution
Phase 2: Calculate how many samples to extract from each dataset. Uses sequential score-based approach: extract from highest-scored d
sdgsystem/tasks/text/web.py:167
↓ 1 callersFunctioncalculate_log_prob_diff
(log_probs1: torch.Tensor, log_probs2: torch.Tensor, mask: torch.Tensor)
verl/utils/debug/metrics.py:58
↓ 1 callersMethodcalculate_score
(self, instance_id: str, **kwargs)
verl/interactions/weather_interaction.py:71
↓ 1 callersMethodcalculate_score
(self, instance_id: str, **kwargs)
verl/interactions/gsm8k_interaction.py:77
↓ 1 callersFunctioncall_method
(method, inputs)
verl/utils/reward_score/prime_code/testing_util.py:577
↓ 1 callersMethodcall_tool
(self, tool_name, parameters, timeout)
verl/tools/utils/mcp_clients/McpClientManager.py:58
↓ 1 callersFunctionceildiv
(a, b)
verl/utils/seqlen_balancing.py:253
↓ 1 callersMethodcheck_consistency
Check the consistency of the DataProto. Mainly for batch and non_tensor_batch We expose this function as a public one so that user can call th
verl/protocol.py:465
↓ 1 callersFunctioncheck_correctness
Checks the correctness of code generation using the remote sandbox API, processing test cases concurrently. Args: sandbox_fusion
verl/utils/reward_score/sandbox_fusion/utils.py:449
↓ 1 callersMethodchunk_text
Split text into chunks using recursive strategy. Args: text: Text content to chunk Returns: List of
sdgsystem/documents/chunk.py:69
↓ 1 callersMethodcleanup
(self)
verl/model_merger/megatron_model_merger.py:545
↓ 1 callersMethodcleanup
Cleanup temporary files if needed.
verl/model_merger/fsdp_model_merger.py:262
↓ 1 callersMethodclear_indices
Clears the recorded and target topk indices.
verl/utils/megatron/router_replay_patch.py:101
↓ 1 callersMethodclear_router_replay_action
Clears the router replay action for this layer.
verl/utils/megatron/router_replay_patch.py:111
↓ 1 callersFunctioncli
DataArc Synthetic Data Generation Toolkit.
sdgsystem/cli.py:52
↓ 1 callersMethodcollate_variable_batch
Collates a list of samples into a single batch. Args: batch: A list of dictionary samples from the dataset. Ret
verl/utils/dataset/dataset_utils.py:50
↓ 1 callersFunctioncollect_dp_compute
(worker_group, output)
verl/single_controller/base/decorator.py:176
↓ 1 callersFunctioncollect_nd_compute
(collect_mask: list[bool], worker_group, output)
verl/single_controller/base/decorator.py:254
↓ 1 callersFunctioncollect_nd_compute_dataproto
(collect_mask: list[bool], worker_group, output)
verl/single_controller/base/decorator.py:273
↓ 1 callersMethodcompare
(self, predicted: str, ground_truth: str, usage_counter: ModelUsageCounter = None,
sdgsystem/evaluation/answer_comparison.py:79
↓ 1 callersMethodcompare_answers
Compare two answers using the specified method. This is a convenience wrapper that routes to the appropriate comparison function
sdgsystem/evaluation/answer_comparison.py:36
↓ 1 callersMethodcomplete
Mark job as completed.
sdgsystem/app/core/progress.py:249
↓ 1 callersFunctioncompute_advantage
Compute advantage estimates for policy optimization. This function computes advantage estimates using various estimators like GAE, GRPO, REINFORC
verl/trainer/ppo/ray_trainer.py:186
↓ 1 callersFunctioncompute_data_metrics
Computes various metrics from a batch of data for PPO training. This function calculates metrics related to scores, rewards, advantages, ret
verl/trainer/ppo/metric_utils.py:80
↓ 1 callersFunctioncompute_is_metrics
Compute comprehensive metrics for truncated importance sampling weights. This function calculates statistics for truncated IS weights (TIS), usin
verl/trainer/ppo/rollout_corr_helper.py:438
↓ 1 callersMethodcompute_log_prob
(self, data: DataProto)
verl/workers/megatron_workers.py:843
↓ 1 callersFunctioncompute_policy_loss_with_rollout_correction
Compute policy loss with pure rollout correction (no PPO clipping). This function implements policy gradient with importance sampling correction
verl/trainer/ppo/core_algos.py:1585
↓ 1 callersMethodcompute_reward
Computing reward given input_ids. The transformers should output a tensor with shape [batch_size, sequence_length], and the value at [EOS]
verl/workers/reward_model/base.py:42
↓ 1 callersFunctioncompute_rollout_correction_and_add_to_batch
Compute rollout correction weights and apply rejection sampling. Computes importance sampling weights to correct for off-policy issues between
verl/trainer/ppo/rollout_corr_helper.py:816
↓ 1 callersFunctioncompute_rollout_correction_weights
Compute importance sampling weights to correct for off-policy distribution shifts. This function calculates IS weights (π_train / π_rollout) usin
verl/trainer/ppo/rollout_corr_helper.py:318
↓ 1 callersFunctioncompute_rollout_rejection_mask
Compute rejection mask for outlier handling in off-policy RL training. This function identifies and masks outlier tokens/sequences using precompu
verl/trainer/ppo/rollout_corr_helper.py:82
↓ 1 callersFunctioncompute_rs_metrics
Compute comprehensive metrics for rejection sampling. This function calculates statistics for IS weights used in rejection sampling, balancin
verl/trainer/ppo/rollout_corr_helper.py:196
↓ 1 callersFunctioncompute_score
(predict_str: str, ground_truth: str, use_boxed: bool = True, format_score: float = 0.1)
verl/utils/reward_score/geo3k.py:33
↓ 1 callersMethodcompute_score_disrm
(self, data: DataProto)
verl/experimental/reward/reward_manager.py:141
↓ 1 callersFunctioncompute_throughout_metrics
Computes throughput metrics for PPO training. This function calculates performance metrics related to token processing speed, including
verl/trainer/ppo/metric_utils.py:269
↓ 1 callersFunctioncompute_timing_metrics
Computes timing metrics for different processing stages in PPO training. This function calculates both raw timing metrics (in seconds) and p
verl/trainer/ppo/metric_utils.py:227
↓ 1 callersFunctioncompute_value_loss
Compute the clipped value-function loss for PPO. Copied from https://github.com/huggingface/trl/blob/main/trl/trainer/ppo_trainer.py#L1151
verl/trainer/ppo/core_algos.py:1400
↓ 1 callersMethodcompute_values
(self, data: DataProto)
verl/workers/fsdp_workers.py:1490
↓ 1 callersFunctioncompute_weights
Compute importance weights for resampling based on scores. Args: scores (torch.Tensor): Tensor of scores to compute weights from.
verl/trainer/ppo/core_algos.py:1523
↓ 1 callersFunctionconcat_dict_to_str
(dict: dict, step)
verl/utils/logger/aggregate_logger.py:26
↓ 1 callersFunctionconcat_nested_tensors
(tensors: list[torch.Tensor])
verl/utils/tensordict_utils.py:101
↓ 1 callersFunctionconcat_tensordict_with_none_bsz
(data: list[TensorDict])
verl/utils/tensordict_utils.py:114
↓ 1 callersMethodconstruct_constraints
construct constraints for synthesis from the parsed_information. constraints like reference passages / web dataset fields / generatio
sdgsystem/tasks/base.py:62
↓ 1 callersFunctionconvert_gate_up_shard
(full_tensor, gate_name, up_name)
verl/utils/megatron_utils.py:671
↓ 1 callersFunctionconvert_qkv_shard
(full_tensor, q_name, k_name, v_name)
verl/utils/megatron_utils.py:623
↓ 1 callersFunctioncopy_to_shm
Load the model into /dev/shm to make the process of loading the model multiple times more efficient.
verl/utils/fs.py:141
↓ 1 callersFunctioncount_adapter_parameters
Count the number of trainable adapter parameters. Args: model: PyTorch model Returns: Tuple of (adapter_params, total_params
verl/utils/megatron_peft_utils.py:186
↓ 1 callersFunctioncount_answer_tags
(text)
verl/utils/reward_score/search_r1_like_qa_em.py:89
↓ 1 callersFunctioncount_unknown_letters_in_expr
(expr: str)
verl/utils/reward_score/prime_math/__init__.py:193
↓ 1 callersFunctioncreate_colocated_worker_cls
This function should return a class instance that delegates the calls to every cls in cls_dict
verl/single_controller/ray/base.py:888
↓ 1 callersFunctioncreate_colocated_worker_raw_cls
This function returns a FusedWorker class. `FusedWorker.{class_name}` -> FusedClass Use `class_name` as a param to directly access t
verl/single_controller/ray/base.py:935
↓ 1 callersFunctioncreate_correctness_metric
Create Answer Correctness G-Eval metric. Args: config: CorrectnessMetricConfig with criteria, steps, rubric, threshold judge
sdgsystem/deepeval/metrics/correctness.py:17
↓ 1 callersFunctioncreate_device_mesh
Create a device mesh for distributed training based on the world size and FSDP size. Args: world_size (int): Total number of process
verl/workers/engine/fsdp/utils.py:19
↓ 1 callersFunctioncreate_format_compliance_metric
Create Format Compliance G-Eval metric. Args: config: FormatComplianceMetricConfig with criteria, steps, rubric, threshold j
sdgsystem/deepeval/metrics/format_compliance.py:17
↓ 1 callersFunctioncreate_huggingface_actor
Args: model_name: override_config_kwargs: Returns:
verl/utils/model.py:104
↓ 1 callersFunctioncreate_pairwise_metric
Create Pairwise Preference G-Eval metric. Args: config: PairwiseMetricConfig with criteria and evaluation_steps judge_model:
sdgsystem/deepeval/metrics/pairwise.py:19
↓ 1 callersFunctioncustom_compare_
(output, ground_truth)
verl/utils/reward_score/prime_code/testing_util.py:556
↓ 1 callersMethoddata_acquisition
Synthesizing / Filtering data from sources. Input: self.config self.sources: from self.prepare()
sdgsystem/tasks/base.py:75
↓ 1 callersFunctiondefault_compute_score
Compute the score for a given solution based on the data source. Args: data_source (str): The source dataset identifier which determines
verl/utils/reward_score/__init__.py:19
↓ 1 callersFunctiondeserialize_tensordict
(arr: Any)
verl/protocol.py:286
↓ 1 callersMethoddispatch_fn
(x, i, chunks)
verl/protocol.py:1214
↓ 1 callersFunctiondispatch_nd_compute
(dp_rank_mapping: list[int], dp_size, worker_group, *args, **kwargs)
verl/single_controller/base/decorator.py:220
↓ 1 callersFunctiondispatch_nd_compute_dataproto
(dp_rank_mapping: list[int], dp_size, worker_group, *args, **kwargs)
verl/single_controller/base/decorator.py:268
↓ 1 callersFunctiondownload_files_distributed
(download_fn)
verl/utils/dataset/rm_dataset.py:26
↓ 1 callersFunctiondump_data
(data, name)
verl/utils/debug/trajectory_tracker.py:69
↓ 1 callersFunctionem_check
(prediction, golden_answers)
verl/utils/reward_score/search_r1_like_qa_em.py:40
↓ 1 callersFunctionenable_full_determinism
Helper function for reproducibility in distributed training. See https://pytorch.org/docs/stable/notes/randomness.html for details.
verl/workers/engine/utils.py:29
↓ 1 callersFunctionenable_memory_visualize
Enables memory history recording for CUDA allocations. This function should be called before any large-scale CUDA allocations. For DDP or
verl/utils/memory_utils.py:146
↓ 1 callersMethodenable_token2text
(cls)
verl/utils/rollout_trace.py:112
↓ 1 callersMethodevaluate_samples
Evaluate samples by running inference and comparing with ground truth. Args: samples: List of samples with 'input' and '
sdgsystem/evaluation/evaluator.py:111
↓ 1 callersMethodevaluate_samples_with_images
Evaluate samples with images by running VLM inference and comparing with ground truth. Args: samples: List of samples wi
sdgsystem/evaluation/evaluator.py:188
↓ 1 callersMethodexecute
Execute the tool. Args: instance_id: The instance id of the tool. parameters: The json string of the parameters of th
verl/tools/base_tool.py:62
↓ 1 callersMethodexecute
Execute the parallel processing Args: iterable_inputs: iterable inputs to be processed process_function: fun
sdgsystem/parallel.py:27
↓ 1 callersFunctionexport_chunks_to_jsonl
Export chunks to JSONL format for passage dataset. Each chunk is converted to the format: {"text": "chunk_content"} Empty or whitespace-
sdgsystem/documents/export.py:9
↓ 1 callersMethodextract_and_format
Extract samples from a dataset, save images, and format them. Handles multiple image storage formats: - PIL Image (embedded
sdgsystem/tasks/image/web.py:501
↓ 1 callersMethodextract_and_format
Phase 3: Extract samples from a dataset and format them.
sdgsystem/tasks/text/web.py:207
↓ 1 callersMethodextract_keywords
Extract keywords for HuggingFace dataset search with domain-first priority. Strategy: 1. Domain field (if provided) - primar
sdgsystem/tasks/image/web.py:43
↓ 1 callersMethodextract_keywords
Extract domain keywords using LLM based on task instruction and demo examples.
sdgsystem/tasks/text/local.py:32
↓ 1 callersMethodextract_keywords
Extract keywords for HuggingFace dataset search with domain-first priority. Strategy: 1. Domain field (if provided) - primar
sdgsystem/tasks/text/web.py:30
← previousnext →1,001–1,100 of 2,774, ranked by callers