MCPcopy Create free account

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

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

↓ 2 callersFunctionparallel_put
Puts a list of data into the Ray object store in parallel using a thread pool. Args: data_list (List[Any]): A list of Python objects
verl/utils/ray_utils.py:49
↓ 2 callersMethodparse_document
Parse a PDF document using MinerU Python API (pipeline mode). Args: document_path: Path to PDF file inside config.docume
sdgsystem/documents/parse.py:101
↓ 2 callersFunctionper_tensor_generator
( actor_module, model_config, weight_converter, transformer_config, layer_name_mapping,
verl/utils/megatron_utils.py:897
↓ 2 callersFunctionpostprocess_batch_func
postprocess the output of a forward_backward_batch. output_lst is a list of dict containing outputs for each micro-batch reorder entropy and o
verl/workers/engine/utils.py:93
↓ 2 callersFunctionpostprocess_bshd
Recover left padding from result return result
verl/models/mcore/util.py:219
↓ 2 callersFunctionpostprocess_bshd_no_padding
Postprocess bshd sequences
verl/models/mcore/util.py:473
↓ 2 callersMethodpostprocess_data
(self, data: DataProto)
verl/workers/sharding_manager/base.py:34
↓ 2 callersFunctionpostprocess_packed_seqs_for_dict_output
_summary_ For fused kernels, the output is a dictionary with keys like 'log_probs', 'entropy', etc. This function post-processes each tensor i
verl/models/mcore/util.py:241
↓ 2 callersFunctionpostprocess_thd_no_padding
Postprocess packed sequences
verl/models/mcore/util.py:379
↓ 2 callersFunctionprepare_micro_batches
Prepare micro batches from data.
verl/workers/engine/utils.py:59
↓ 2 callersMethodprepare_model_inputs
(self, batch: TensorDict)
verl/workers/engine/megatron/transformer_impl.py:619
↓ 2 callersFunctionpreprocess_bshd
Remove left padding from input_ids, attention_mask and position_ids return new_input_ids, new_attention_mask, new_position_ids
verl/models/mcore/util.py:178
↓ 2 callersFunctionpreprocess_bshd_no_padding
Preprocess bshd sequences return "input_ids, attention_mask, position_ids"
verl/models/mcore/util.py:443
↓ 2 callersFunctionpreprocess_thd_no_padding
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:280
↓ 2 callersFunctionprocess_position_ids
(position_ids: torch.Tensor)
verl/models/transformers/qwen2_vl.py:395
↓ 2 callersFunctionray_noset_visible_devices
(env_vars=os.environ)
verl/utils/ray_utils.py:26
↓ 2 callersFunctionreduce_metrics
Reduces a dictionary of metric lists by computing the mean of each list. Args: metrics: A dictionary mapping metric names to lists o
verl/trainer/ppo/metric_utils.py:30
↓ 2 callersFunctionreduce_timing
Reduce timing information across all processes. This function uses distributed communication to gather and sum the timing information from al
verl/utils/profiler/performance.py:198
↓ 2 callersMethodregister
Register a new rollout replica type.
verl/workers/rollout/replica.py:228
↓ 2 callersMethodreload
Reload.
verl/utils/activation_offload.py:188
↓ 2 callersFunctionremove_boxed
Remove the LaTeX boxed command from a string. Args: s: String with format "\\boxed{content}" Returns: The content inside the
verl/utils/reward_score/math_dapo.py:50
↓ 2 callersMethodremove_previous_save_local_path
(self, path)
verl/utils/checkpoint/checkpoint_manager.py:134
↓ 2 callersMethodrename
Note that this function only rename the key in the batch
verl/protocol.py:765
↓ 2 callersFunctionrepeat_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/qwen2/megatron/layers/parallel_attention.py:139
↓ 2 callersFunctionrepeat_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/llama/megatron/layers/parallel_attention.py:167
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=2, repeats=n_rep). The hidden states go from (batch, seqlen, num_key_value_heads, he
verl/models/transformers/monkey_patch.py:37
↓ 2 callersMethodresize_total
Resize total and recalculate remain accordingly.
sdgsystem/models/usage_counter.py:86
↓ 2 callersMethodresume_memory_occupation
Resume GPU memory occupation. Args: tags (Optional[List[str]], optional): List of tags to specify which memory to resume.
verl/workers/rollout/sglang_rollout/http_server_engine.py:547
↓ 2 callersMethodrewrite
Rewrite dataset based on evaluation results. Args: dataset: Original dataset evaluations: Evaluation results
sdgsystem/generation/rewriter.py:85
↓ 2 callersMethodrollout_mode
Context switch hybridengine to rollout mode.
verl/workers/megatron_workers.py:667
↓ 2 callersMethodrollout_mode
Context switch hybridengine to rollout mode.
verl/workers/fsdp_workers.py:654
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
verl/models/transformers/kimi_vl.py:35
↓ 2 callersMethodrun
Execute the main PPO training workflow. This method sets up the distributed training environment, initializes workers, datasets, and
verl/trainer/main_ppo.py:262
↓ 2 callersMethodrun
Run the full evaluation pipeline. Returns: Evaluation results dictionary
sdgsystem/deepeval/evaluator.py:178
↓ 2 callersMethodrun_grpo
Run GRPO training. Args: config: GRPO configuration log_callback: Optional callback for each log line
sdgsystem/trainer/launcher.py:145
↓ 2 callersMethodrun_inference
Run inference on dataset using the specified model. Args: dataset: Test dataset with 'input' field model: Mo
sdgsystem/deepeval/evaluator.py:91
↓ 2 callersMethodrun_sft
Run SFT training. Args: config: SFT configuration log_callback: Optional callback for each log line
sdgsystem/trainer/launcher.py:54
↓ 2 callersMethodrun_single
(self, data: DataProto)
verl/experimental/reward/reward_loop/base.py:63
↓ 2 callersFunctionrun_unvicorn
(app: FastAPI, server_args, server_address, max_retries=5)
verl/workers/rollout/utils.py:48
↓ 2 callersMethodsave_categorized
Save all three categorized datasets to separate files. Args: solved: Dataset with solved samples (score=1.0)
sdgsystem/dataset/dataset.py:148
↓ 2 callersMethodsave_checkpoint
(self, local_path, hdfs_path=None, global_step=0, max_ckpt_to_keep=None)
verl/workers/engine_workers.py:428
↓ 2 callersFunctionsave_dist_checkpointing
(sharded_state_dict, ckpt_path, async_save=False)
verl/utils/megatron/dist_checkpointing.py:27
↓ 2 callersFunctionsave_json
(obj, path: str)
sdgsystem/utils.py:29
↓ 2 callersFunctionsdg_event_stream
Generate SSE events from a queue for SDG jobs. Args: event_queue: Queue containing (event_type, data) tuples Yields: SS
sdgsystem/app/core/sse.py:14
↓ 2 callersFunctionserialize_single_tensor
(obj: torch.Tensor)
verl/protocol.py:252
↓ 2 callersFunctionsetTrainingMethod
(method: TrainingMethod)
sdgsystem/webui/src/pages/training-page/components/training-config.tsx:467
↓ 2 callersMethodset_dispatch_collect
Set the dispatch and collect dp_ranks for all registered meshes. Args: mesh_name (str): Mesh name to set dispatch and collect dp_
verl/single_controller/base/worker.py:144
↓ 2 callersMethodset_service
Store the SDG service for later refinement.
sdgsystem/app/core/job_manager.py:25
↓ 2 callersMethodset_target_indices
Sets the target topk indices for replay.
verl/utils/megatron/router_replay_patch.py:88
↓ 2 callersFunctionset_ulysses_sequence_parallel_group
Set ulysses sequence parallel process group.
verl/utils/ulysses.py:30
↓ 2 callersMethodsleep
Sleep each rollout server.
verl/workers/rollout/vllm_rollout/vllm_async_server.py:710
↓ 2 callersMethodslice
Slice the DataProto and return a new DataProto object. This is an improved version of direct slicing which returns a DataProtoItem.
verl/protocol.py:686
↓ 2 callersFunctionsort_placement_group_by_node_ip
Sort the placement groups by node ip, all bundles in a single placement group should be on the same node. FSDPCheckpointManager saves sharde
verl/single_controller/ray/base.py:67
↓ 2 callersMethodspawn
Spawn to a dictionary of worker groups, each with a subset of method with prefix. Args: prefix_set: Set of prefixes to create wor
verl/single_controller/ray/base.py:618
↓ 2 callersFunctionsplit_tuple
Split the elements in a tuple/interval, while handling well-formatted commas in large numbers
verl/utils/reward_score/prime_math/__init__.py:227
↓ 2 callersMethodstart_phase
Start a new phase.
sdgsystem/app/core/progress.py:70
↓ 2 callersFunctionstrip_string
(string)
verl/utils/reward_score/math_reward.py:162
↓ 2 callersFunctionstripped_string_compare
(s1, s2)
verl/utils/reward_score/prime_code/testing_util.py:571
↓ 2 callersFunctiontemp_env_var
Context manager for temporarily setting an environment variable. This context manager ensures that environment variables are properly set and res
verl/utils/py_functional.py:281
↓ 2 callersMethodto_verl_args
Convert to verl trainer command arguments.
sdgsystem/trainer/config.py:157
↓ 2 callersFunctiontokenize
(text: str)
sdgsystem/utils.py:6
↓ 2 callersFunctiontopk_reduce_ratio_min_max
Calculate topk items take-up ratio, and min/max timing across all ranks.
verl/utils/profiler/performance.py:226
↓ 2 callersMethodtrain_batch
(self, data: TensorDict)
verl/workers/engine_workers.py:174
↓ 2 callersFunctiontrain_event_stream
Generate SSE events for training job by polling log list. Args: reporter: Training progress reporter with log buffer Yields:
sdgsystem/app/core/sse.py:42
↓ 2 callersMethodtrain_mode
Context manager entry for switching the engine and model into training mode. Usage: with engine.train_mode():
verl/workers/engine/base.py:55
↓ 2 callersMethodtranslate_text
Translate a single text from source language to target language.
sdgsystem/translation/translator.py:24
↓ 2 callersFunctionunpad_dataproto
Unpad the data proto with pad_size. i.e. `data[:-pad_size]`
verl/protocol.py:101
↓ 2 callersMethodupdate_policy
Update the policy with an iterator of DataProto Args: data (DataProto): an iterator over the DataProto that returns by
verl/workers/actor/base.py:54
↓ 2 callersMethodupload_to_huggingface
(self)
verl/model_merger/base_model_merger.py:319
↓ 2 callersFunctionuseGenerationCoreModal
()
sdgsystem/webui/src/contexts/generation-core-modal-context.tsx:26
↓ 2 callersMethodvalidate
Validate critic configuration with runtime parameters. Args: n_gpus: Total number of GPUs available train_batch_size:
verl/workers/config/critic.py:108
↓ 2 callersFunctionvocab_parallel_entropy
Compute entropy when the logits are sharded in tp ranks Args: vocab_parallel_logits: (total_nnz, vocab_size // tp_size) Returns: (to
verl/utils/megatron/tensor_parallel.py:142
↓ 2 callersMethodwake_up
Wake up all rollout replica instances.
verl/experimental/agent_loop/agent_loop.py:872
↓ 1 callersMethod__enter__
(self)
verl/utils/activation_offload.py:73
↓ 1 callersMethod__enter__
(self)
verl/workers/engine/megatron/transformer_impl.py:589
↓ 1 callersMethod__exit__
(self, *args: Any)
verl/utils/activation_offload.py:77
↓ 1 callersMethod__exit__
(self, exc_type, exc_value, traceback)
verl/workers/engine/megatron/transformer_impl.py:596
↓ 1 callersMethod__init__
(self, enable_global_rate_limit=True, rate_limit=10)
verl/tools/sandbox_fusion_tools.py:65
↓ 1 callersMethod__init__
(self, name: str, value: int)
verl/utils/py_functional.py:241
↓ 1 callersMethod__init__
(self, numel: int, numel_padded: int, dtype: torch.dtype, source: Optional[torch.Tensor] = None)
verl/utils/memory_buffer.py:32
↓ 1 callersMethod__init__
Initialize the HTTP server engine adapter. Args: router_ip (Optional[str], optional): IP address of router for worker registratio
verl/workers/rollout/sglang_rollout/http_server_engine.py:216
↓ 1 callersMethod__init__
(self, config: Qwen2Config, megatron_config: ModelParallelConfig, layer_idx: int)
verl/models/qwen2/megatron/layers/parallel_decoder.py:36
↓ 1 callersMethod__init__
( self, input_size, num_heads, num_key_value_heads, head_dim,
verl/models/qwen2/megatron/layers/parallel_linear.py:21
↓ 1 callersMethod__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig, layer_idx: int)
verl/models/llama/megatron/layers/parallel_decoder.py:36
↓ 1 callersMethod__init__
(self, config)
verl/models/transformers/npu_patch.py:149
↓ 1 callersMethod__init__
(self, config: DictConfig)
verl/experimental/agent_loop/agent_loop.py:180
↓ 1 callersMethod__init__
(self, rate_limit: float, max_tokens: float = None)
verl/experimental/reward/reward_loop/limited.py:82
↓ 1 callersMethod__init__
(self, config: DictConfig = None)
verl/experimental/dynamic_dataset/dynamicgen_dataset.py:60
↓ 1 callersMethod__init__
Initialize parser with configuration. Args: config: Parser configuration containing device, document_dir and other setti
sdgsystem/documents/parse.py:16
↓ 1 callersMethod__init__
(self, config: RetrievalConfig, cache_corpus: bool = True )
sdgsystem/documents/retrieve.py:19
↓ 1 callersMethod__init__
(self)
sdgsystem/documents/chunk.py:10
↓ 1 callersMethod__init__
Initialize the Rewriter
sdgsystem/generation/rewriter.py:20
↓ 1 callersMethod__init__
Initialize the TextDataGenerator.
sdgsystem/generation/generator.py:26
↓ 1 callersMethod__init__
(self, config: TranslationConfig)
sdgsystem/translation/translator.py:15
↓ 1 callersMethod__init__
(self, config: APIModelConfig)
sdgsystem/models/models.py:137
↓ 1 callersMethod__init__
(self, processor: Union[BaseLanguageModel, "BasePostProcessor"], config: BasePostProcessConf
sdgsystem/models/postprocess/base.py:12
↓ 1 callersMethod__post_init__
(self)
verl/workers/config/optimizer.py:49
↓ 1 callersMethod__post_init__
Validate critic configuration parameters.
verl/workers/config/critic.py:90
↓ 1 callersFunction__prefix_submodules
(module, prefix)
verl/utils/fsdp_utils.py:572
↓ 1 callersMethod_agent_loop_postprocess
Perform post-processing operations on the output of each individual agent loop.
verl/experimental/agent_loop/agent_loop.py:431
← previousnext →601–700 of 2,774, ranked by callers