MCPcopy Create free account

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

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

Method_init_executor
(self)
verl/workers/rollout/vllm_rollout/vllm_async_server.py:81
Method_init_head
(self, config)
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:387
Method_init_head
(self, config)
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:709
Method_init_head
(self, config)
verl/models/llama/megatron/modeling_llama_megatron.py:386
Method_init_head
(self, config)
verl/models/llama/megatron/modeling_llama_megatron.py:660
Method_is_worker_alive
Check if a worker actor is still alive. Args: worker: Ray actor handle to check Returns: bool: True if the w
verl/single_controller/ray/base.py:411
Method_load_model
Load the translation model (lazy loading).
sdgsystem/translation/translator.py:19
Function_load_sglang
()
verl/workers/rollout/replica.py:247
Function_load_vllm
()
verl/workers/rollout/replica.py:241
Method_make_async_request
Proxy single request to a worker URL.
verl/experimental/reward/router/naive_router.py:135
Function_mp_target_wrapper
Internal wrapper function executed in the child process. Calls the original target function and puts the result or exception into the queue.
verl/utils/py_functional.py:31
Method_on_shutdown
Gracefully close aiohttp client
verl/experimental/reward/router/naive_router.py:128
Method_on_startup
Initialize aiohttp client safely inside the event loop
verl/experimental/reward/router/naive_router.py:115
Method_parse_tool_result
(self, content: list)
verl/tools/mcp_search_tool.py:32
Function_postprocess
patched from https://github.com/NVIDIA/Megatron-LM/blob/core_r0.14.0/megatron/core/models/gpt/gpt_model.py#L412
verl/models/mcore/model_forward_1f1b_overlap.py:62
Method_process_dataset_by_evaluations
transform samples in dataset to the samples which rewriting demands, according to the evaluations
sdgsystem/generation/rewriter.py:253
Method_rebind_actor_methods
(worker_group, actor_name)
verl/single_controller/ray/base.py:630
Method_rewrite_batch
Rewrite a batch of samples (text modality). Args: batch_start_end: Tuple of (start_index, end_index) for the batch
sdgsystem/generation/rewriter.py:30
Method_rewrite_batch
Rewrite a batch of samples. Learnable samples pass through unchanged, solved/unsolved samples are rewritten via LLM. Args:
sdgsystem/generation/rewriter.py:271
Method_rewrite_batch_with_images
Rewrite a batch of samples with images (image modality). Args: batch_start_end: Tuple of (start_index, end_index) for th
sdgsystem/generation/rewriter.py:51
Method_rewrite_batch_with_images
Rewrite a batch of samples with images using VLM. Learnable samples pass through unchanged, solved/unsolved samples are rewritten via
sdgsystem/generation/rewriter.py:343
Method_run_all
(self, tasks: list[asyncio.Task])
verl/experimental/reward/reward_manager.py:243
Method_search
Search documents using BM25 algorithm. Args: documents: List of document texts keywords: List of keywords fo
sdgsystem/documents/retrieve.py:155
Method_set_cos_sin_cache
(self, seq_len, device, dtype)
verl/models/qwen2/megatron/layers/parallel_attention.py:86
Method_set_cos_sin_cache
(self, seq_len, device, dtype)
verl/models/qwen2/megatron/layers/parallel_attention.py:105
Method_set_cos_sin_cache
(self, seq_len, device, dtype)
verl/models/llama/megatron/layers/parallel_attention.py:81
Method_set_cos_sin_cache
(self, seq_len, device, dtype)
verl/models/llama/megatron/layers/parallel_attention.py:100
Function_set_envs_and_config
(server_args: ServerArgs)
verl/workers/rollout/sglang_rollout/sglang_rollout.py:47
Method_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
verl/models/qwen2/megatron/layers/parallel_attention.py:231
Method_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
verl/models/llama/megatron/layers/parallel_attention.py:285
Function_sync_all_patch
(self)
verl/__init__.py:92
Function_temp_run
(sample, generation, debug, result, metadata_list, timeout)
verl/utils/reward_score/prime_code/utils.py:26
Function_ulysses_flash_attention_forward
Insert all-to-all before and after flash attention. DeepSpeed-Ulysses: https://arxiv.org/pdf/2309.14509 For transformers>=4.55, the flash att
verl/models/transformers/monkey_patch.py:49
Function_ulysses_flash_attn_forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.LongTensor] = None, positi
verl/models/transformers/kimi_vl.py:91
Method_validate_batch
Validate and improve samples using majority voting (always enabled). Args: batch_samples: a batch of samples
sdgsystem/generation/base.py:122
Method_validate_batch
Validate samples using VLM with image context and majority voting.
sdgsystem/generation/generator.py:608
Method_validate_batch_with_images
Validate and improve samples with images using VLM and majority voting. Args: batch_samples: a batch of samples (each co
sdgsystem/generation/base.py:180
Methodabort_all_requests
Abort all ongoing generation requests. Returns: dict[str, Any]: Dictionary containing: - aborted_count: Number of
verl/workers/rollout/vllm_rollout/vllm_async_server.py:525
Methodabort_all_requests
Abort all ongoing generation requests across all servers. Returns: dict[str, Any]: Combined abort results from all servers.
verl/workers/rollout/vllm_rollout/vllm_async_server.py:716
Methodabort_request
Abort a request. Args: rid (str): The ID of the request to abort abort_all (bool, optional): Whether to abort all req
verl/workers/rollout/sglang_rollout/http_server_engine.py:559
Methodabort_request
Abort a request asynchronously. Args: rid (str): The ID of the request to abort abort_all (bool, optional): Whether t
verl/workers/rollout/sglang_rollout/http_server_engine.py:944
Methodabort_request
Abort a specific generation request. Args: request_id: The ID of the request to abort. Returns: dict[str, An
verl/workers/rollout/vllm_rollout/vllm_async_server.py:562
Methodabort_request
Abort a specific request. Tries all servers since we don't know which one has it. Args: request_id: The ID of the request to abor
verl/workers/rollout/vllm_rollout/vllm_async_server.py:735
Methodacquire
Acquire a token from the bucket.
verl/tools/image_zoom_in_tool.py:56
Methodacquire
(self)
verl/tools/sandbox_fusion_tools.py:51
Methodacquire
Acquire a token from the bucket.
verl/tools/search_tool.py:58
Methodadd_assistant_message
( self, processing_class: PreTrainedTokenizer | PreTrainedTokenizerFast | ProcessorMixin,
verl/workers/rollout/schemas.py:395
Methodadd_log
Add a log line.
sdgsystem/app/core/progress.py:240
Methodadd_node
(self, process_count)
verl/single_controller/base/worker_group.py:48
Methodadd_tool_response_messages
( self, processing_class: PreTrainedTokenizer | PreTrainedTokenizerFast | ProcessorMixin,
verl/workers/rollout/schemas.py:414
Methodadd_user_message
( self, processing_class: PreTrainedTokenizer | PreTrainedTokenizerFast | ProcessorMixin,
verl/workers/rollout/schemas.py:379
Methodall_special_ids
`List[int]`: List the ids of the special tokens(`'<unk>'`, `'<cls>'`, etc.) mapped to class attributes.
verl/workers/rollout/tokenizer.py:56
Methodall_special_tokens
`List[str]`: A list of the unique special tokens (`'<unk>'`, `'<cls>'`, ..., etc.). Convert tokens of `tokenizers.AddedToken` type t
verl/workers/rollout/tokenizer.py:64
Functionanimate
(_timestamp: number)
sdgsystem/webui/src/hooks/use-smooth-progress.ts:44
Methodannotate
Decorate a Worker member function to profile the current rank in the current training step. Requires the target function to be a member funct
verl/utils/profiler/mstx_profile.py:217
Functionapertus_attn_forward
Adapted from transformers 4.49.0 to support Ulysses sequence parallelism for transformers >= 4.48.0. Key differences from Llama attention:
verl/models/transformers/apertus.py:41
Functionapply_rotary_pos_emb_npu
NPU optimized implementation for RoPE.
verl/models/transformers/npu_patch.py:47
Functionapply_rotary_pos_emb_rmpad
(q, k, cos, sin, position_ids, indices, sequence_length)
verl/models/qwen2/megatron/layers/parallel_attention.py:293
Functionapply_rotary_pos_emb_rmpad
(q, k, cos, sin, position_ids, indices, sequence_length)
verl/models/llama/megatron/layers/parallel_attention.py:352
Functionassert_tensordict_eq
(tensordict1: TensorDict, tensordict2: TensorDict)
verl/utils/tensordict_utils.py:319
Functionassign_non_tensor
Assign non-tensor data to a TensorDict. Automatically detects if the value is a list with nested structures and uses the appropriate assignme
verl/utils/tensordict_utils.py:56
Methodasync_generate
Async generate method that mirrors AsyncEngine.async_generate interface. This method provides compatibility with AsyncEngine's async_generate
verl/workers/rollout/sglang_rollout/http_server_engine.py:849
Functionasync_inner
(*args, **kwargs)
verl/utils/transferqueue_utils.py:169
Functionasync_inner
(*args, **kwargs)
verl/single_controller/base/decorator.py:454
Methodasync_reward_score
( self, prompt: Optional[str] = None, input_ids: Optional[list[int]] = None, i
verl/workers/rollout/sglang_rollout/http_server_engine.py:930
Functionasync_wrapper
(self, *args, **kwargs)
verl/utils/rollout_trace.py:181
Methodauto_padding
(cls)
verl/protocol.py:56
Methodbackward
(ctx, grad_output)
verl/utils/npu_flash_attn_utils.py:36
Methodbackward
(ctx, grad_output)
verl/utils/npu_flash_attn_utils.py:69
Methodbackward
(ctx, grad_output)
verl/utils/activation_offload.py:127
Methodbackward
(ctx: Any, *grad_output: Tensor)
verl/utils/ulysses.py:182
Methodbackward
(ctx, grad_output: torch.Tensor)
verl/utils/megatron/tensor_parallel.py:130
Methodbackward
(ctx, dlogprobs: torch.Tensor, dentropy: torch.Tensor)
verl/utils/kernel/linear_cross_entropy.py:90
Methodbackward
(ctx, dlog_probs: Optional[torch.FloatTensor], dentropy: Optional[torch.FloatTensor])
verl/utils/experimental/torch_functional.py:132
Methodbackward
(ctx, grad_output)
verl/models/transformers/npu_patch.py:80
Functionbroadcast_pyobj
from https://github.com/sgl-project/sglang/blob/844e2f227ab0cce6ef818a719170ce37b9eb1e1b/python/sglang/srt/utils.py#L905 Broadcast inputs from sr
verl/workers/rollout/sglang_rollout/utils.py:26
Methodbuild_command
Build the python command for GRPO training. GRPO uses verl.trainer.main_ppo directly (not torchrun). Args: conf
sdgsystem/trainer/methods/grpo.py:64
Methodbuild_memory_reference
(self)
verl/utils/memory_buffer.py:203
Functioncalc_maj_val
Calculate a value based on majority voting. This function identifies the most common value for a specified vote key in the data, then re
verl/trainer/ppo/metric_utils.py:346
Methodcalc_reward
(self, instance_id: str, **kwargs)
verl/tools/mcp_base_tool.py:113
Methodcalc_reward
Calculate the reward of the tool. Args: instance_id: The instance id of the tool. Returns: The reward of the
verl/tools/base_tool.py:76
Methodcalc_reward
(self, instance_id: str, **kwargs)
verl/tools/sandbox_fusion_tools.py:191
Methodcalc_reward
(self, instance_id: str, **kwargs)
verl/tools/search_tool.py:274
Methodcalculate_score
Calculates a score for the interaction, potentially considering aspects like partial exposure & in-context task switching. sh
verl/interactions/base.py:56
Functioncalculate_token_list_diff
(tensor1: torch.Tensor, tensor2: torch.Tensor, mask: torch.Tensor)
verl/utils/debug/metrics.py:23
Functioncan_generate
(self)
verl/utils/model.py:610
Methodcancel
Mark job as cancelled.
sdgsystem/app/core/progress.py:260
Methodcancel
Cancel the running training process.
sdgsystem/app/services/training_service.py:52
Methodcancel
Cancel the running training process. Returns: True if process was terminated, False if no process running.
sdgsystem/trainer/launcher.py:29
Functioncancel_job
Cancel a running job.
sdgsystem/app/api/sdg.py:254
Methodcancel_job
Cancel current training job and terminate the subprocess.
sdgsystem/app/core/job_manager.py:138
Functioncancel_training
Cancel a running training job. Terminates the training subprocess if running.
sdgsystem/app/api/train.py:300
Methodchat_completion
(self, json_request)
verl/workers/megatron_workers.py:968
Methodchat_completion
(self, json_request)
verl/workers/fsdp_workers.py:1955
Methodchat_completion
(self, json_request)
verl/workers/engine_workers.py:657
Functioncheck_correctness
Check correctness of code generation with a global timeout. The global timeout is to catch some extreme/rare cases not handled by the timeouts
verl/utils/reward_score/prime_code/utils.py:41
Functioncheck_device_is_available
Some modules must be imported after CUDA is initialized. Such as sglang's sharding manager. This context manager checks if CUDA is available
verl/utils/torch_functional.py:729
Methodcheck_health
(self)
verl/workers/rollout/vllm_rollout/vllm_async_server.py:158
Functioncheck_workers_alive
Continuously monitors worker processes and raises SIGABRT if any worker dies. Args: workers (List): List of worker objects to
verl/single_controller/base/worker_group.py:102
Methodcheckpath
(local_path: str, hdfs_path: str)
verl/utils/checkpoint/checkpoint_manager.py:130
← previousnext →1,801–1,900 of 2,774, ranked by callers