MCPcopy Create free account

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

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

↓ 2 callersFunctiondeserialize_single_tensor
(arr: Any)
verl/protocol.py:273
↓ 2 callersFunctiondestroy_global_process_group
()
verl/utils/distributed.py:69
↓ 2 callersMethoddump
(self, data: io.BytesIO, name)
verl/utils/debug/trajectory_tracker.py:59
↓ 2 callersMethoddump_memory_snapshot
Generates a memory snapshot and saves it as a pickle file in a specified directory. The files are organized by timestamp in subdirect
verl/utils/memory_utils.py:256
↓ 2 callersMethodenv_keys
The keys of the environment variables that are used to configure the Worker.
verl/single_controller/base/worker.py:175
↓ 2 callersMethodeval_mode
Context manager entry for switching the engine and model into evaluation mode. Usage: with engine.eval_mode():
verl/workers/engine/base.py:65
↓ 2 callersMethodexecute_all_async
Execute a method on all workers asynchronously. Args: method_name: Name of the method to execute *args: Positional ar
verl/single_controller/ray/base.py:766
↓ 2 callersMethodexecute_rank_zero_async
Execute a method on rank zero worker asynchronously. Args: method_name: Name of the method to execute *args: Position
verl/single_controller/ray/base.py:714
↓ 2 callersFunctionextract_multi_modal_inputs_tensordict
Extract multi-modal inputs from TensorDict NonTensorStack.
verl/utils/model.py:738
↓ 2 callersFunctionextract_solution
Extract the equation from the solution string.
verl/utils/reward_score/search_r1_like_qa_em.py:66
↓ 2 callersFunctionextract_step
(path)
verl/utils/checkpoint/checkpoint_handler.py:32
↓ 2 callersFunctionextract_step
(path)
verl/trainer/fsdp_sft_trainer.py:83
↓ 2 callersMethodflush_cache
Flush the cache of the server. This method repeatedly attempts to flush the server cache until successful. The flush operation will n
verl/workers/rollout/sglang_rollout/http_server_engine.py:502
↓ 2 callersFunctionformatTime
(seconds: number)
sdgsystem/webui/src/components/process-chain/step-item.tsx:29
↓ 2 callersFunctionformatTime
(seconds: number)
sdgsystem/webui/src/pages/generate-task-page/components/task-info-bar.tsx:36
↓ 2 callersFunctionformatTokens
(tokens: number)
sdgsystem/webui/src/components/process-chain/step-item.tsx:39
↓ 2 callersFunctionformatTokens
(tokens: number)
sdgsystem/webui/src/pages/generate-task-page/components/task-info-bar.tsx:45
↓ 2 callersMethodformat_conversion
(self, input: str, output: str, input_format: str, output_format: str )
sdgsystem/dataset/process.py:121
↓ 2 callersMethodforward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:124
↓ 2 callersMethodforward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
verl/models/llama/megatron/modeling_llama_megatron.py:123
↓ 2 callersMethodforward_backward_batch
( self, data: DataProto, forward_only=False, use_dynamic_bsz=False, mi
verl/workers/critic/megatron_critic.py:154
↓ 2 callersMethodforward_backward_batch
Perform a forward pass and optionally a backward pass on a batch of data. Args: data: The input data for the forward pas
verl/workers/engine/base.py:96
↓ 2 callersMethodforward_backward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
verl/workers/actor/megatron_actor.py:371
↓ 2 callersFunctionforward_base_model
r""" Copy paste LLaMa's forward https://github.com/linkedin/Liger-Kernel/blob/main/src/liger_kernel/transformers/model/llama.py This func
verl/models/transformers/dense_common.py:29
↓ 2 callersMethodfrom_string
(cls, name: str)
verl/trainer/ppo/utils.py:56
↓ 2 callersMethodfrom_yaml
Load configuration from a YAML file.
sdgsystem/configs/config.py:709
↓ 2 callersMethodgenerate
Generate tokens from prompt ids. Args: request_id (str): request id for sticky session. prompt_ids (List[int]): List
verl/experimental/agent_loop/agent_loop.py:91
↓ 2 callersMethodgenerate
get extracter answers from model Args: prompt: str, the prompt answer_extractor: instance to extractor answer
sdgsystem/models/models.py:79
↓ 2 callersMethodgenerate
(self, prompts: Union[str, List[str]], n: int = 1, answer_extractor: AnswerExtractor =
sdgsystem/models/postprocess/base.py:75
↓ 2 callersMethodgenerate_with_images
(self, prompts: Union[str, List[str]], images: Union[str, List[str]], n: int = 1,
sdgsystem/models/postprocess/base.py:85
↓ 2 callersMethodget
(self)
verl/protocol.py:1223
↓ 2 callersFunctiongetPhaseDescription
(phaseId?: string)
sdgsystem/webui/src/pages/generate-task-page/components/process-steps-panel.tsx:53
↓ 2 callersFunctiongetPhaseStepStatus
(status: string)
sdgsystem/webui/src/pages/generate-task-page/components/process-steps-panel.tsx:62
↓ 2 callersFunctiongetStatusColor
(status?: string)
sdgsystem/webui/src/pages/generate-task-page/components/task-info-bar.tsx:64
↓ 2 callersMethodget_client
(cls)
verl/utils/rollout_trace.py:108
↓ 2 callersFunctionget_common_default_kwargs_for_parallel_linear
()
verl/utils/megatron/tensor_parallel.py:52
↓ 2 callersFunctionget_data
()
verl/utils/tensordict_utils.py:311
↓ 2 callersMethodget_data_parallel_size
(self)
verl/workers/engine/fsdp/transformer_impl.py:478
↓ 2 callersMethodget_dispatch_collect
Get all registered dispatch and collect dp_ranks. Returns: dict[str, int]: A dictionary mapping mesh names to the
verl/single_controller/base/worker.py:133
↓ 2 callersFunctionget_entropy_reduction_enum
Get the enum for the reduction method of cross entropy.
verl/utils/kernel/kernels.py:99
↓ 2 callersMethodget_first_rows
Get the first few rows of a dataset split.
sdgsystem/huggingface/crawl.py:78
↓ 2 callersFunctionget_hf_auto_model_class
(hf_config)
verl/utils/model.py:668
↓ 2 callersFunctionget_huggingface_actor_config
(model_name: str, override_config_kwargs=None, trust_remote_code=False)
verl/utils/model.py:75
↓ 2 callersFunctionget_mcore_forward_no_padding_fn
Get the forward function for given model architecture.
verl/models/mcore/registry.py:248
↓ 2 callersFunctionget_mcore_weight_converter
Get the weight converter for given model architecture.
verl/models/mcore/registry.py:266
↓ 2 callersFunctionget_model
Build the model.
verl/utils/megatron_utils.py:49
↓ 2 callersFunctionget_npu_profiler
Generate and return an NPU profiler object. Args: contents (list[str]): A list of options to control the collection content,
verl/utils/profiler/mstx_profile.py:89
↓ 2 callersFunctionget_peft_cls
Get PEFT class from model config. Args: model_config: Model configuration object. bridge: Megatron-Bridge AutoBridge instance.
verl/workers/config/megatron_peft.py:17
↓ 2 callersMethodget_ray_class_with_init_args
Get rollout worker actor class for colocated and standalone mode.
verl/workers/rollout/replica.py:190
↓ 2 callersFunctionget_rope_index
Gets the position ids for GLM4V in padding-free format. The batch dim has been removed and the input_ids should be a 1D tensor representing a
verl/models/transformers/glm4v.py:64
↓ 2 callersMethodget_router_address
(self)
verl/experimental/reward/reward_model.py:101
↓ 2 callersMethodget_splits
Retrieve the available splits (train/test/validation) of a dataset.
sdgsystem/huggingface/crawl.py:61
↓ 2 callersFunctionget_tensordict
Create a TensorDict from tensors and non-tensor data. Automatically handles nested structures in lists by converting them to NonTensorStack.
verl/utils/tensordict_utils.py:155
↓ 2 callersFunctionget_trajectory_tracker
()
verl/utils/debug/trajectory_tracker.py:79
↓ 2 callersFunctionget_transformer_layer_offset
Get the index offset of any pipeline stage, given the level of pipelining. Make pipeline_rank and vp_stage as two arguments to make it more
verl/utils/megatron_utils.py:1042
↓ 2 callersMethodget_transformers_auto_model_class
(self)
verl/model_merger/base_model_merger.py:191
↓ 2 callersFunctionget_ulysses_sequence_parallel_rank
Get ulysses sequence parallel rank.
verl/utils/ulysses.py:54
↓ 2 callersFunctionget_vl_model_vision_tower
Util to extract Vision Tower from a VL model instance
verl/workers/fsdp_workers.py:121
↓ 2 callersFunctionget_vllm_max_lora_rank
For vLLM, the smallest `max_lora_rank` is 8, and allowed values are (8, 16, 32, 64, 128, 256, 320, 512) This function automatically adjusts t
verl/workers/rollout/vllm_rollout/utils.py:21
↓ 2 callersFunctiongrade_answer
The answer will be considered correct if: (a) it normalizes to the same string as the ground truth answer OR (b) sympy can simplify t
verl/utils/reward_score/prime_math/__init__.py:246
↓ 2 callersMethodinfer_batch
Perform inference on a batch of data. Args: data: The input data for inference, typically containing tensors and metadat
verl/workers/engine/base.py:129
↓ 2 callersFunctioninit_mcore_model
Initialize a Mcore model. Args: tfconfig: The transformer config. hf_config: The HuggingFace config. pre_process: Op
verl/models/mcore/registry.py:201
↓ 2 callersMethodinitialize
Instantiate or load the model, optimizer, and learning rate scheduler. Should prepare all components necessary for training or evalu
verl/workers/engine/base.py:35
↓ 2 callersFunctioninitialize_global_process_group
(timeout_second=36000)
verl/utils/distributed.py:54
↓ 2 callersFunctioninitialize_tools_from_config
Initialize tools from config file. Supports both NATIVE and MCP tool types. For MCP tools, a temporary event loop is created only when needed
verl/tools/utils/tool_registry.py:82
↓ 2 callersMethodinstruction_judge
(self, task_description: str, instruction_sample: Dict[str, str] )
sdgsystem/dataset/process.py:54
↓ 2 callersFunctioninterpret_pairwise_score
Interpret pairwise GEval score to determine winner. Args: score: GEval score (0-1 scale, converted from 0-10) Returns:
sdgsystem/deepeval/metrics/pairwise.py:48
↓ 2 callersFunctionis_nvtx_available
()
verl/utils/import_utils.py:55
↓ 2 callersMethodis_padding_enabled
Check if padding is enabled for the DataProto. Returns: bool: True if padding is enabled, False otherwise.
verl/protocol.py:851
↓ 2 callersMethodis_replay_forward_action
Return True if the current router_replay_action is REPLAY_FORWARD for the local router instances. This inspects the first local RouterReplay
verl/utils/megatron/router_replay_utils.py:422
↓ 2 callersFunctionis_tensor_parallel_param
(param)
verl/utils/megatron/tensor_parallel.py:95
↓ 2 callersFunctionjsonl_to_parquet
Convert JSONL file to Parquet format. Simply converts format without modifying keys. verl will use prompt_key/response_key from config t
sdgsystem/trainer/data_preprocessing.py:65
↓ 2 callersFunctionlast_boxed_only_string
Extract the last LaTeX boxed expression from a string. Args: string: Input string containing LaTeX code Returns: The last bo
verl/utils/reward_score/math_dapo.py:20
↓ 2 callersFunctionlayered_summon_lora_params
(fsdp_module)
verl/utils/fsdp_utils.py:569
↓ 2 callersFunctionload_adapter_checkpoint
Load adapter parameters from checkpoint. Loads from Megatron's distributed checkpoint structure: reads from checkpoint_path/mp_rank_{tp:02d}_
verl/utils/megatron_peft_utils.py:125
↓ 2 callersMethodload_checkpoint
(self, local_path, hdfs_path=None, del_local_after_load=False)
verl/workers/engine_workers.py:432
↓ 2 callersMethodload_dataset
Load test dataset from configured path.
sdgsystem/deepeval/evaluator.py:83
↓ 2 callersMethodload_demo_examples
Load demo examples from JSONL file. Args: demo_examples_path: Path to the JSONL file containing demo examples (optional,
sdgsystem/documents/load.py:71
↓ 2 callersFunctionload_dist_checkpointing
(sharded_state_dict, ckpt_dir)
verl/utils/megatron/dist_checkpointing.py:47
↓ 2 callersFunctionload_json
(path: str)
sdgsystem/utils.py:13
↓ 2 callersMethodlog
(self, func, *args, **kwargs)
verl/utils/profiler/performance.py:109
↓ 2 callersMethodlr_scheduler_step
Advance the learning rate scheduler by one step. Returns: current_lr (float or list[float]): Updated learning rate(s).
verl/workers/engine/base.py:87
↓ 2 callersMethodmake_minibatch_iterator
Make minibatch iterator for updating the actor Args: data (DataProto): a DataProto containing keys ``input_ids``
verl/workers/actor/megatron_actor.py:311
↓ 2 callersFunctionmark_end_range
End a mark range in the profiler. Args: range_id (str): The id of the mark range to end.
verl/utils/profiler/nvtx_profile.py:48
↓ 2 callersFunctionmark_start_range
Start a mark range in the profiler. Args: message (str, optional): The message to be displayed in the profiler. Defaults to N
verl/utils/profiler/nvtx_profile.py:27
↓ 2 callersFunctionmath_equal
Exact match of math if and only if: 1. numerical equal: both can convert to float and are equal 2. symbolic equal: both can convert to sy
verl/utils/reward_score/prime_math/grader.py:174
↓ 2 callersMethodmaybe_filter_out_long_prompts
(self, dataframe: datasets.Dataset = None)
verl/utils/dataset/rl_dataset.py:175
↓ 2 callersFunctionmaybe_patch_fsdp_module
(model)
verl/utils/fsdp_utils.py:489
↓ 2 callersFunctionmcp2openai
Convert a MCP Tool to an OpenAI ChatCompletionTool.
verl/tools/utils/mcp_clients/utils.py:45
↓ 2 callersFunctionmd5_encode
Generate an MD5 hash of a path string. This function is used to create unique identifiers for paths, typically for creating cache directories
verl/utils/fs.py:46
↓ 2 callersFunctionneed_critic
Given a config, do we need critic.
verl/trainer/ppo/utils.py:86
↓ 2 callersFunctionneed_reference_policy
Given a role worker mapping, do we need ref policy.
verl/trainer/ppo/utils.py:72
↓ 2 callersMethodnew
Function to create a new training engine instance based on the provided config. Args: key: A configuration object contain
verl/workers/engine/base.py:308
↓ 2 callersFunctionnormalize
(answer, pi)
verl/utils/reward_score/prime_math/grader.py:121
↓ 2 callersFunctionnormalize_model_name
Transform the model name in each model_chunk in each pp stage into the name in inference engine
verl/utils/model.py:326
↓ 2 callersMethodoffload
Offload.
verl/utils/activation_offload.py:173
↓ 2 callersMethodoffload_params_to_cpu
(self)
verl/workers/reward_model/megatron/reward_model.py:335
↓ 2 callersMethodon_batch_end
Generate data using the provided data generation strategy. Note: This method is intended to change the dataset after each training ba
verl/experimental/dynamic_dataset/dynamicgen_dataset.py:106
↓ 2 callersMethodon_group_commit_forward
On group commit forward.
verl/utils/activation_offload.py:161
↓ 2 callersFunctionpad_dataproto_to_divisor
Pad a DataProto to size divisible by size_divisor Args: size_divisor (int): size divisor Returns: data: (DataProto): the pad
verl/protocol.py:73
← previousnext →501–600 of 2,774, ranked by callers