MCPcopy Create free account

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

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

↓ 1 callersMethodpadding
Pad the DataProto by concating with padding_candidate.repeat(padding_size) Args: padding_size (int): the number of repeated paddi
verl/protocol.py:860
↓ 1 callersFunctionparallel_compute_score_async
( evaluation_func, completions, references, tasks, extra_info=None, num_processes=64 )
verl/workers/reward_manager/prime.py:44
↓ 1 callersFunctionparse_args
()
verl/model_merger/base_model_merger.py:34
↓ 1 callersFunctionpatch_forward_with_backends
Choose the forward function based on the model and backend. Args: model (PreTrainedModel): The model to apply the monkey patch.
verl/models/transformers/monkey_patch.py:196
↓ 1 callersFunctionpatch_fused_forward
(model: torch.nn.Module)
verl/models/mcore/model_forward_fused.py:51
↓ 1 callersMethodpatch_model_generation_config
The generation_config created from model config may be different to the pretrained model, this may lead to error when generating: htt
verl/model_merger/base_model_merger.py:218
↓ 1 callersFunctionpatch_qwen3_vl_moe_sparse_moe_block_forward
Monkey patch to fix a bug in transformers 4.57.3 where Qwen3VLMoeTextSparseMoeBlock.forward incorrectly uses torch.zeros_like(hidden_states)
verl/models/transformers/qwen3_vl.py:340
↓ 1 callersFunctionpatch_valuehead_model
(model)
verl/utils/model.py:592
↓ 1 callersFunctionpatch_vllm_moe_model_weight_loader
(model)
verl/utils/vllm/patch.py:70
↓ 1 callersFunctionpearson_correlation_coefficient
(tensor1: torch.Tensor, tensor2: torch.Tensor, mask: torch.Tensor)
verl/utils/debug/metrics.py:48
↓ 1 callersFunctionperform_single_search_batch
Performs a single batch search for multiple queries (original search tool behavior). Args: retrieval_service_url: The URL of the ret
verl/tools/utils/search_r1_like_utils.py:141
↓ 1 callersMethodpost_forward
(self, module)
verl/utils/activation_offload.py:433
↓ 1 callersFunctionpostprocess_data
Process tokenizer outputs to consistent shapes via padding/truncation. Args: input_ids: Token indices [batch_size, seq_len] atten
verl/utils/torch_functional.py:357
↓ 1 callersFunctionpp_gather
Gather local router maps from all PP ranks into a global router map. Args: local_layers_router_map (torch.Tensor): Local router map
verl/utils/megatron/router_replay_utils.py:321
↓ 1 callersMethodpre_forward
(self, module)
verl/utils/activation_offload.py:428
↓ 1 callersMethodprepare
Prepare the sources where data will be acquired. (local corpora / web dataset / teacher model) Input: self.config Ou
sdgsystem/tasks/base.py:52
↓ 1 callersFunctionprepare_fa2_from_position_ids
( query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, position_ids: torch.Tensor )
verl/models/transformers/glm4v.py:184
↓ 1 callersFunctionprepare_fa2_from_position_ids
( query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, position_ids: torch.Tensor )
verl/models/transformers/qwen2_vl.py:164
↓ 1 callersFunctionprepare_grpo_data
Prepare training and validation data for GRPO (Group Relative Policy Optimization). Converts JSONL files to Parquet format expected by verl
sdgsystem/trainer/data_preprocessing.py:95
↓ 1 callersMethodprepare_model_inputs
(self, micro_batch: TensorDict)
verl/workers/engine/fsdp/transformer_impl.py:721
↓ 1 callersMethodprepare_model_outputs
(self, output: dict, data: TensorDict)
verl/workers/engine/megatron/transformer_impl.py:630
↓ 1 callersMethodprepare_model_outputs
(self, output, output_args, micro_batch: TensorDict)
verl/workers/engine/fsdp/transformer_impl.py:835
↓ 1 callersFunctionprint_adapter_info
Print information about adapter parameters in the model.
verl/utils/megatron_peft_utils.py:215
↓ 1 callersMethodprobe_dataset
Probe a dataset with 1 sample to validate it has image + QA fields. Uses LLM to identify which fields map to image/input/output.
sdgsystem/tasks/image/web.py:312
↓ 1 callersMethodprobe_dataset
Phase 1: Probe a dataset with 1 sample to validate quality. Returns dataset with score if valid, None otherwise.
sdgsystem/tasks/text/web.py:101
↓ 1 callersFunctionprocess_multi_modal_inputs_for_minicpmo
(input_ids, attention_mask, position_ids, cu_seqlens, multi_modal_inputs)
verl/utils/dataset/vision_utils.py:103
↓ 1 callersFunctionprocess_position_ids
(position_ids: torch.Tensor)
verl/models/transformers/glm4v.py:393
↓ 1 callersFunctionprocess_validation_metrics
Process validation metrics into a structured format with statistical analysis. This function organizes validation metrics by data source and
verl/trainer/ppo/metric_utils.py:382
↓ 1 callersFunctionqkv_up_proj_and_rope_apply
(q_compressed, kv_compressed, k_pos_emb, rotary_pos_emb)
verl/models/mcore/patch_v012.py:119
↓ 1 callersFunctionquant_weights
(weights, model, quant_config, dtype=torch.bfloat16)
verl/utils/vllm/vllm_fp8_utils.py:161
↓ 1 callersFunctionquant_weights_by_name
FP8 quantization based on parameter name Args: weights: Generator of (name, tensor) pairs quant_config: Quantization configuratio
verl/utils/sglang/sglang_fp8_utils.py:133
↓ 1 callersMethodre_encode_by_rm_tokenizer
(self, data: DataProto)
verl/workers/reward_model/megatron/reward_model.py:60
↓ 1 callersMethodrecord_indices
Records the topk indices.
verl/utils/megatron/router_replay_patch.py:97
↓ 1 callersMethodrelease
Release the tool instance. Args: instance_id: The instance id of the tool.
verl/tools/base_tool.py:87
↓ 1 callersMethodrelease
(self, instance_id: str, **kwargs)
verl/tools/image_zoom_in_tool.py:390
↓ 1 callersMethodrelease
(self, instance_id: str, **kwargs)
verl/tools/search_tool.py:277
↓ 1 callersFunctionreliability_guard
This disables various destructive functions and prevents the generated code from interfering with the test (e.g. fork bomb, killing other pro
verl/utils/reward_score/prime_code/testing_util.py:603
↓ 1 callersFunctionremove_articles
(text)
verl/utils/reward_score/search_r1_like_qa_em.py:24
↓ 1 callersFunctionremove_boxed
(s)
verl/utils/reward_score/math_reward.py:49
↓ 1 callersFunctionremove_punc
(text)
verl/utils/reward_score/search_r1_like_qa_em.py:30
↓ 1 callersFunctionremove_right_units
(string)
verl/utils/reward_score/math_reward.py:137
↓ 1 callersFunctionrenderForm
()
sdgsystem/webui/src/components/generation-core-modal/index.tsx:105
↓ 1 callersFunctionrenderSourceDataContent
()
sdgsystem/webui/src/pages/configuration-page/index.tsx:508
↓ 1 callersMethodreorder
Note that this operation is in-place
verl/protocol.py:974
↓ 1 callersFunctionreorder_and_merge_vpp_layers
Reorder and merge per-VPP layer blocks into a contiguous layer dimension. Given a tensor shaped as [bs*vpp_size, max_token_len, layer_num_pe
verl/utils/megatron/router_replay_utils.py:252
↓ 1 callersMethodreset
(cls)
verl/utils/rollout_trace.py:116
↓ 1 callersMethodreset_for_phase
Reset event queue for a new SSE stream (new phase).
sdgsystem/app/core/progress.py:53
↓ 1 callersMethodresize_total
(self, total: int)
sdgsystem/buffer.py:40
↓ 1 callersFunctionresolve_config_path
Resolve agent loop configuration file path. In multi-node Ray training, relative paths may not resolve correctly because the working director
verl/experimental/agent_loop/utils.py:18
↓ 1 callersMethodretrieve
(self, key_words: List[str], )
sdgsystem/documents/retrieve.py:127
↓ 1 callersMethodreward_score
( self, prompt: Optional[str] = None, input_ids: Optional[list[int]] = None, i
verl/workers/rollout/sglang_rollout/http_server_engine.py:908
↓ 1 callersFunctionrollout_trace_attr
A context manager to add attributes to a trace for the configured backend. Args: sample_index: Sample index for the trace. step:
verl/utils/rollout_trace.py:121
↓ 1 callersMethodrot_pos_emb
(self, grid_thw)
verl/models/mcore/qwen2_5_vl/vision_model.py:162
↓ 1 callersFunctionroundup_divisible
(a, b)
verl/utils/seqlen_balancing.py:257
↓ 1 callersMethodrun
Run the pipeline with two-stage process: 1. Generate initial dataset (logged in task executor) 2. Initial dataset evaluating
sdgsystem/pipeline.py:34
↓ 1 callersFunctionrun_coroutine
Run coroutine in the MCP event loop.
verl/tools/utils/tool_registry.py:104
↓ 1 callersFunctionrun_coroutine
(coroutine)
verl/utils/transferqueue_utils.py:71
↓ 1 callersFunctionrun_generation
(config)
verl/trainer/main_generation.py:48
↓ 1 callersMethodrun_grpo
Run GRPO training with log streaming.
sdgsystem/app/services/training_service.py:48
↓ 1 callersMethodrun_headless
(self, args: argparse.Namespace)
verl/workers/rollout/vllm_rollout/vllm_async_server.py:409
↓ 1 callersFunctionrun_ppo
Initialize Ray cluster and run distributed PPO training process. Args: config: Training configuration object containing all necessary par
verl/trainer/main_ppo.py:46
↓ 1 callersFunctionrun_reward_scoring
(evaluation_func, completions, references, tasks, extra_info=None, num_processes=64)
verl/workers/reward_manager/prime.py:90
↓ 1 callersMethodrun_server
(self, args: argparse.Namespace)
verl/workers/rollout/vllm_rollout/vllm_async_server.py:382
↓ 1 callersFunctionrun_sft
(config)
verl/trainer/sft_trainer_ray.py:319
↓ 1 callersFunctionrun_sft
(config)
verl/trainer/sft_trainer.py:365
↓ 1 callersFunctionrun_sft
(config)
verl/trainer/fsdp_sft_trainer.py:799
↓ 1 callersMethodrun_sft
Run SFT training with log streaming.
sdgsystem/app/services/training_service.py:44
↓ 1 callersMethodrun_single
(self, data: DataProto)
verl/experimental/reward/reward_loop/limited.py:348
↓ 1 callersFunctionrun_test
if test(generated_code) is not None it'll try to run the code. otherwise it'll just return an input and output pair.
verl/utils/reward_score/prime_code/testing_util.py:88
↓ 1 callersMethodsanity_check
Check concatenated input_ids of apply_chat_template to each turn equals apply_chat_template to whole messages.
verl/utils/dataset/multiturn_sft_dataset.py:372
↓ 1 callersFunctionsave_adapter_checkpoint
Save only adapter parameters to checkpoint. This is much more efficient than saving the full model when using PEFT, as adapters typically rep
verl/utils/megatron_peft_utils.py:77
↓ 1 callersMethodsave_checkpoint
(self, checkpoint_path, hdfs_path=None, global_steps=0, max_ckpt_to_keep=None)
verl/workers/megatron_workers.py:1270
↓ 1 callersMethodsave_checkpoint
(self, local_path, hdfs_path=None, global_step=0, max_ckpt_to_keep=None)
verl/workers/fsdp_workers.py:1542
↓ 1 callersMethodsave_hf_model_and_tokenizer
(self, merged_state_dict)
verl/model_merger/megatron_model_merger.py:422
↓ 1 callersMethodsave_hf_model_and_tokenizer
(self, state_dict: dict[str, torch.Tensor])
verl/model_merger/base_model_merger.py:292
↓ 1 callersFunctionsave_jsonl
(obj: List, path: str)
sdgsystem/utils.py:35
↓ 1 callersMethodsave_lora_adapter
Save lora adapter to safetensors. Returns: lora_path: str, the path to the lora adapter. None if no lora adapter found.
verl/model_merger/base_model_merger.py:235
↓ 1 callersMethodsave_to_disk
(self, filepath)
verl/protocol.py:437
↓ 1 callersFunctionscaled_fp8_blockwise
( data_hp, weight_block_size, )
verl/utils/vllm/vllm_fp8_utils.py:108
↓ 1 callersFunctionscaled_fp8_blockwise
( data_hp, weight_block_size, )
verl/utils/sglang/sglang_fp8_utils.py:80
↓ 1 callersMethodsearch_datasets
Search image datasets from HuggingFace based on task keywords. Returns a list of dataset metadata (with splits info).
sdgsystem/tasks/image/web.py:85
↓ 1 callersMethodsearch_datasets
Search datasets from HuggingFace based on task keywords. Returns a list of dataset metadata (without rows).
sdgsystem/tasks/text/web.py:72
↓ 1 callersMethodsearch_image_datasets
Search for image-text datasets on HuggingFace Hub by query keyword. Results are filtered to datasets with both image and text modalit
sdgsystem/huggingface/crawl.py:38
↓ 1 callersFunctionserialize_tensordict
(batch: TensorDict)
verl/protocol.py:258
↓ 1 callersFunctionset_basic_config
This function sets the global logging format and level. It will be called when import verl
verl/utils/logging_utils.py:21
↓ 1 callersMethodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:472
↓ 1 callersMethodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
verl/models/llama/megatron/modeling_llama_megatron.py:472
↓ 1 callersFunctionset_pad_token_id
Set pad_token_id to eos_token_id if it is None. Args: tokenizer (transformers.PreTrainedTokenizer): The tokenizer to be set.
verl/utils/tokenizer.py:21
↓ 1 callersMethodset_parallel
(self)
sdgsystem/models/usage_counter.py:75
↓ 1 callersMethodset_parallel_time
(self, time: float)
sdgsystem/models/usage_counter.py:78
↓ 1 callersFunctionset_random_seed
(seed)
verl/workers/engine/megatron/utils.py:19
↓ 1 callersFunctionset_router_replay_data
Scatter the packed router top-k indices back to sequence-parallel ranks and update each local RouterReplay instance with target indices for r
verl/utils/megatron/router_replay_utils.py:213
↓ 1 callersMethodset_running
Mark job as running.
sdgsystem/app/core/progress.py:244
↓ 1 callersMethodsetup_embeddings_and_output_layer
Sets up embedding layer in first stage and output layer in last stage. This function initializes word embeddings in the final stage when we a
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:583
↓ 1 callersMethodshared_embedding_or_output_weight
This is a convenience method to surface the language model's word embeddings, which is necessary for `finalize_model_grads._allreduce_word_emb
verl/models/mcore/qwen2_5_vl/model.py:154
↓ 1 callersFunctionshould_allow_eval
(expr: str)
verl/utils/reward_score/prime_math/__init__.py:200
↓ 1 callersFunctionshould_quantize_param
Determine whether to quantize to FP8 based on parameter name Quantization rules: - Must end with .weight (exclude bias) - Exclude embeddi
verl/utils/sglang/sglang_fp8_utils.py:25
↓ 1 callersFunctionshould_save_ckpt_esi
Determine if checkpoint should be saved based on capacity esi expiration. Args: max_steps_duration: Max estimated time (seconds) req
verl/utils/checkpoint/checkpoint_manager.py:207
↓ 1 callersFunctionsingle_compute_score
(evaluation_func, completion, reference, task, task_extra_info, executor, timeout=300.0)
verl/workers/reward_manager/prime.py:30
↓ 1 callersMethodspawn_fused
Create a dictionary of worker groups for fused workers. Args: prefix_set: Set of prefixes to create worker groups for Re
verl/single_controller/ray/base.py:653
← previousnext →1,301–1,400 of 2,774, ranked by callers