MCPcopy Create free account

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

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

↓ 2 callersMethod_build_prompt
Build prompt from sample input and instructions. Args: sample_input: The input/question from sample Returns:
sdgsystem/evaluation/evaluator.py:276
↓ 2 callersMethod_clear_buffer_dirs
Clear specific buffer subdirectories matching the patterns.
sdgsystem/app/services/sdg_service.py:207
↓ 2 callersMethod_compute_loss_and_backward
Compute loss with optional sequence parallelism and remove padding features
verl/trainer/fsdp_sft_trainer.py:365
↓ 2 callersFunction_compute_response_info
Computes information about prompts and responses from a batch. This is an internal helper function that extracts masks and lengths for promp
verl/trainer/ppo/metric_utils.py:50
↓ 2 callersFunction_concat_data_proto_or_future
(output: list)
verl/single_controller/base/decorator.py:142
↓ 2 callersMethod_context_switch
(self, device)
verl/workers/engine/base.py:229
↓ 2 callersMethod_convert_attention_param
(self, name: str, params: list[torch.Tensor])
verl/models/mcore/weight_converter.py:270
↓ 2 callersMethod_convert_mlp_param
(self, name: str, params: list[torch.Tensor])
verl/models/mcore/weight_converter.py:309
↓ 2 callersMethod_create_worker
(self, rank, pg_idx, pg, local_rank, resource_pool, ray_cls_with_init, worker_env, detached)
verl/single_controller/ray/base.py:525
↓ 2 callersFunction_deep_equal
Recursively performs a deep comparison between two Python objects. - Handles NaN values correctly (NaN == NaN evaluates to True). - Handl
verl/protocol.py:151
↓ 2 callersMethod_download
(self, use_origin_parquet=False)
verl/utils/dataset/rl_dataset.py:145
↓ 2 callersMethod_dump_generations
Dump rollout/validation samples as JSONL.
verl/trainer/ppo/ray_trainer.py:437
↓ 2 callersFunction_ensure_model_list
(model)
verl/models/mcore/bridge.py:31
↓ 2 callersMethod_evaluate_single
Evaluate a single prediction against ground truth. Args: sample_input: Original input/question ground_truth:
sdgsystem/evaluation/evaluator.py:297
↓ 2 callersMethod_extract_text_from_block
Extract text content from a block. Args: block: Block dict from pdf_info Returns: Extracted text or empty st
sdgsystem/tasks/image/local.py:206
↓ 2 callersFunction_fetch_tp_shard_tensor_qkv
fetch tensor in tp shards across mp_group
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:168
↓ 2 callersFunction_find_batchmeta
(*args, **kwargs)
verl/utils/transferqueue_utils.py:88
↓ 2 callersMethod_forward_micro_batch
(self, micro_batch)
verl/workers/critic/dp_critic.py:53
↓ 2 callersMethod_forward_micro_batch
Returns: entropy: # (bs, response_len) log_probs: # (bs, response_len)
verl/workers/actor/dp_actor.py:94
↓ 2 callersMethod_get_gen_batch
(self, batch: DataProto)
verl/trainer/ppo/ray_trainer.py:521
↓ 2 callersFunction_get_input_embeds
( model: "Qwen2VLForConditionalGeneration", input_ids: torch.LongTensor, attention_mask: Optional[
verl/models/transformers/qwen2_vl.py:335
↓ 2 callersMethod_get_master_addr_port
Get master addr and port for this worker group
verl/single_controller/ray/base.py:432
↓ 2 callersFunction_get_patching_model
(model: torch.nn.Module)
verl/models/mcore/model_forward_fused.py:39
↓ 2 callersMethod_get_position_ids
( processing_class: PreTrainedTokenizer | PreTrainedTokenizerFast | ProcessorMixin, input_ids:
verl/workers/rollout/schemas.py:261
↓ 2 callersFunction_get_rank_checkpoint_path
Get rank-specific checkpoint path following Megatron's convention. Returns path like: base_path/mp_rank_{tp:02d}_{pp:03d}_{ep:03d}/ Args:
verl/utils/megatron_peft_utils.py:22
↓ 2 callersMethod_get_session
Context manager for safe session access with proper connection pooling. Yields: aiohttp.ClientSession: Session instance for makin
verl/workers/rollout/sglang_rollout/http_server_engine.py:631
↓ 2 callersFunction_is_frac
(expr: str)
verl/utils/reward_score/prime_math/__init__.py:86
↓ 2 callersFunction_load_hf_model
Helper function containing the loading hf model logic
verl/utils/model.py:402
↓ 2 callersMethod_log_generations_to_wandb
Log samples to wandb as a table
verl/utils/tracking.py:369
↓ 2 callersFunction_materialize_futures
(*args, **kwargs)
verl/single_controller/base/decorator.py:403
↓ 2 callersFunction_normalize
Normalize answer expressions.
verl/utils/reward_score/prime_math/__init__.py:126
↓ 2 callersFunction_one_call
(dev_kw=None)
verl/utils/memory_utils.py:185
↓ 2 callersFunction_pad_tensor
(x: Tensor, dim: int, padding_size: int)
verl/utils/ulysses.py:104
↓ 2 callersMethod_pad_to_length
(self, input_ids, attention_mask)
verl/utils/dataset/rm_dataset.py:120
↓ 2 callersFunction_padding_and_split_data
(obj, chunks)
verl/single_controller/base/decorator.py:101
↓ 2 callersFunction_parse
(s)
verl/utils/reward_score/prime_math/grader.py:325
↓ 2 callersMethod_parse_single_response
Parse LLM response to extract single {'input': ..., 'output': ...}. Args: response: Raw LLM response string Ret
sdgsystem/distillation/base.py:102
↓ 2 callersMethod_post_request
(self, payload: dict, endpoint: str)
verl/experimental/reward/reward_manager.py:99
↓ 2 callersMethod_postprocess
Process the padded outputs from _run_agent_loop and combine them into a batch.
verl/experimental/agent_loop/agent_loop.py:599
↓ 2 callersMethod_postprocess_output
Args: output: a dictionary containing loss, model_outputs and metrics Returns:
verl/workers/engine_workers.py:126
↓ 2 callersMethod_read_files_and_tokenize
(self)
verl/utils/dataset/rl_dataset.py:152
↓ 2 callersFunction_read_response
(response: requests.Response)
verl/workers/rollout/sglang_rollout/http_server_engine.py:77
↓ 2 callersFunction_record_directory_structure
(folder_path)
verl/utils/fs.py:164
↓ 2 callersMethod_remove_generation_prompt_ids_if_present
Remove generation prompt IDs from input tensors if they are present at the end.
verl/workers/rollout/schemas.py:541
↓ 2 callersFunction_resolve_device
Resolve device according to policy described in the module docstring. Priority: 1) explicit argument 2) VERL_FORCE_DEVICE env
verl/utils/groupwise.py:54
↓ 2 callersFunction_run_async_in_temp_loop
(async_func: Callable[..., Any], *args, **kwargs)
verl/utils/transferqueue_utils.py:61
↓ 2 callersMethod_save_metric_results
Save metric evaluation results to JSON file.
sdgsystem/deepeval/evaluator.py:292
↓ 2 callersFunction_save_upload_file
Save an uploaded file to the target path.
sdgsystem/app/api/train.py:41
↓ 2 callersMethod_set_cos_sin_cache
(self, seq_len, device, dtype)
verl/models/qwen2/megatron/layers/parallel_attention.py:58
↓ 2 callersMethod_should_profile_this_rank
(self)
verl/utils/profiler/profile.py:337
↓ 2 callersFunction_split_args_kwargs_data_proto
(chunks, *args, **kwargs)
verl/single_controller/base/decorator.py:75
↓ 2 callersFunction_strip_properly_formatted_commas
(expr: str)
verl/utils/reward_score/prime_math/__init__.py:115
↓ 2 callersFunction_unpad_tensor
(x: Tensor, dim: int, padding_size: int)
verl/utils/ulysses.py:111
↓ 2 callersMethod_validate
(self)
verl/trainer/ppo/ray_trainer.py:538
↓ 2 callersMethod_validate_bbox
Validate the bounding box dimensions and aspect ratio.
verl/tools/image_zoom_in_tool.py:181
↓ 2 callersFunction_validate_jsonl_file
Validate a JSONL file contains required keys. Args: file_path: Path to the JSONL file prompt_key: Required key for prompts
sdgsystem/app/api/train.py:50
↓ 2 callersMethodacquire
Acquire tokens from the bucket, waiting if necessary. This method will block (using asyncio.sleep) until sufficient tokens are availa
verl/experimental/reward/reward_loop/limited.py:89
↓ 2 callersFunctionadd_token2text
(self, result)
verl/utils/rollout_trace.py:196
↓ 2 callersFunctionall_to_all_tensor
( local_input: Tensor, scatter_dim: int, gather_dim: int, group: Optional[dist.ProcessGroup] =
verl/utils/ulysses.py:133
↓ 2 callersFunctionapply_rotary_pos_emb_absolute
Reroute to the appropriate apply_rotary_pos_emb function depending on bshd (conventional) / thd (packed seq) format In Qwen2-VL, the sha
verl/models/mcore/qwen2_5_vl/rope_utils.py:239
↓ 2 callersFunctionapply_vllm_fp8_patches
()
verl/utils/vllm/vllm_fp8_utils.py:456
↓ 2 callersMethodasync_calls_finalize_fn_exec
(self, blocking=False)
verl/workers/megatron_workers.py:917
↓ 2 callersFunctionbootstrap_metric
Performs bootstrap resampling to estimate statistics of metrics. This function uses bootstrap resampling to estimate the mean and standard d
verl/trainer/ppo/metric_utils.py:305
↓ 2 callersMethodbuild_command
Build the torchrun command for SFT training. Args: config: SFT configuration train_parquet: Path to training
sdgsystem/trainer/methods/sft.py:47
↓ 2 callersFunctionbuild_memory_buffer
Build the memory buffer given weight_buffer_meta Args: weight_buffer_meta: contains mapping from name to a dictionary containing shape an
verl/utils/memory_buffer.py:72
↓ 2 callersMethodbuild_packed_seq_params
( self, grid_thw: Optional[torch.Tensor], cu_seqlens: Optional[torch.Tensor] = None,
verl/models/mcore/qwen2_5_vl/vision_model.py:289
↓ 2 callersMethodbulk_offload_group
Bulk offload group.
verl/utils/activation_offload.py:298
↓ 2 callersFunctioncalculate_workload
Calculate the workload for a dense transformer block based on sequence length. FLOPs = 12 * hidden_size^2 * seqlen + 2 * hidden_size * seqlen
verl/utils/seqlen_balancing.py:27
↓ 2 callersFunctioncall_sandbox_api
Calls the remote sandbox API to execute code with retry logic for Gateway Timeout, using increasing delay between retries. Logs internal call
verl/utils/reward_score/sandbox_fusion/utils.py:67
↓ 2 callersFunctioncall_search_api
Calls the remote search API to perform retrieval with retry logic for various errors, using increasing delay between retries. Logs internal c
verl/tools/utils/search_r1_like_utils.py:34
↓ 2 callersMethodcancel_job
Cancel current job.
sdgsystem/app/core/job_manager.py:59
↓ 2 callersMethodcategorize_by_score
Categorize samples into three datasets based on evaluation scores. Args: scores: List of scores (0.0 to 1.0) correspondi
sdgsystem/dataset/dataset.py:105
↓ 2 callersFunctioncheck_dir
(path: str)
sdgsystem/utils.py:9
↓ 2 callersFunctioncheck_exclude_modules
A helper method to check if the passed module's key name matches any of the exclude modules in the adapter_config. Adapted from https://githu
verl/utils/model.py:252
↓ 2 callersFunctioncheck_target_modules
A helper method to check if the passed module's key name matches any of the target modules in the adapter_config. Adapted from https://github
verl/utils/model.py:275
↓ 2 callersMethodclear_global_indices
Clears the recorded and target topk indices in all instances.
verl/utils/megatron/router_replay_patch.py:75
↓ 2 callersMethodclear_global_router_replay_action
Clears the router replay action for all router instances.
verl/utils/megatron/router_replay_patch.py:122
↓ 2 callersMethodcomplete_phase
Mark current phase as complete.
sdgsystem/app/core/progress.py:167
↓ 2 callersMethodcompute_log_prob
(self, data: DataProto)
verl/workers/fsdp_workers.py:961
↓ 2 callersMethodcompute_log_prob
Compute logits given a batch of data. Args: data (DataProto): a batch of data represented by DataProto. It must contain key ```in
verl/workers/actor/base.py:39
↓ 2 callersFunctioncompute_offpolicy_metrics
Compute off-policy diagnostic metrics (helper function). This helper function operates on raw tensors and is used internally by: - compute_ro
verl/trainer/ppo/rollout_corr_helper.py:707
↓ 2 callersMethodcompute_ref_log_prob
(self, data: DataProto)
verl/workers/fsdp_workers.py:1002
↓ 2 callersFunctioncompute_response_mask
Compute the attention mask for the response part of the sequence. This function extracts the portion of the attention mask that corresponds to th
verl/trainer/ppo/ray_trainer.py:168
↓ 2 callersMethodcompute_rm_score
(self, data: DataProto)
verl/workers/fsdp_workers.py:1878
↓ 2 callersFunctioncompute_rollout_corr_metrics_from_logprobs
Compute rollout correction metrics from log probabilities during training. This function is used in the actor to compute metrics using the CURREN
verl/trainer/ppo/rollout_corr_helper.py:877
↓ 2 callersFunctioncompute_rollout_correction_and_rejection_mask
Unified interface for computing IS weights and rejection masks. This function combines IS weight calculation (truncated) and rejection sampling (
verl/trainer/ppo/rollout_corr_helper.py:553
↓ 2 callersFunctionconcat_tensordict
Concatenates tensordicts into a single tensordict on dim zero. Support nested tensor
verl/utils/tensordict_utils.py:121
↓ 2 callersFunctionconnectSSE
(config: SSEConnectionConfig)
sdgsystem/webui/src/pages/generate-task-page/index.tsx:61
↓ 2 callersMethodconvert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl/models/mcore/weight_converter.py:30
↓ 2 callersFunctioncopy_local_path_from_hdfs
Deprecated. Please use copy_to_local instead.
verl/utils/fs.py:232
↓ 2 callersFunctioncreate_and_sync_state
(param_name, state, is_param)
verl/utils/fsdp_utils.py:338
↓ 2 callersMethodcreate_job
Create a new job.
sdgsystem/app/core/job_manager.py:29
↓ 2 callersMethodcreate_resource_pool
Create Ray resource pools for distributed training. Initializes resource pools based on the resource pool specification, with each po
verl/trainer/ppo/ray_trainer.py:79
↓ 2 callersFunctioncreate_rl_sampler
Create a sampler for the dataset. Arguments: data_config: The data config. dataset (Dataset): The dataset. Returns:
verl/trainer/main_ppo.py:421
↓ 2 callersFunctioncreate_sft_dataset
Create a dataset.
verl/trainer/sft_trainer_ray.py:330
↓ 2 callersFunctioncreate_sft_dataset
Create a dataset.
verl/trainer/sft_trainer.py:379
↓ 2 callersFunctioncreate_sft_dataset
Create a dataset.
verl/trainer/fsdp_sft_trainer.py:841
↓ 2 callersFunctioncreate_transferqueue_client
( client_id: str, config, )
verl/utils/transferqueue_utils.py:44
↓ 2 callersFunctiondefault_tp_concat_fn
name: name of the parameter train_params: training parameters infer_params (Iterable[torch.Tensor]): a iterator towards list of parameter
verl/utils/megatron_utils.py:815
↓ 2 callersMethoddelete
(url: string, config?: CustomAxiosRequestConfig)
sdgsystem/webui/src/utils/request.ts:96
← previousnext →401–500 of 2,774, ranked by callers