Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DataArcTech/DataArc-SynData-Toolkit
/ functions
Functions
2,774 in github.com/DataArcTech/DataArc-SynData-Toolkit
⨍
Functions
2,774
◇
Types & classes
564
↳
Endpoints
80
↓ 1 callers
Method
_load_state_dicts
_summary_ Use Megatron dist_checkpointing to load the model state dicts from the checkpoint directory. Args: model_ckpt_p
verl/model_merger/megatron_model_merger.py:220
↓ 1 callers
Method
_log_rollout_data
Log rollout data to disk. Args: batch (DataProto): The batch containing rollout data reward_extra_infos_dict (dict): A
verl/trainer/ppo/ray_trainer.py:465
↓ 1 callers
Method
_loop_forever
(self)
verl/workers/rollout/vllm_rollout/vllm_rollout.py:165
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for bi-directional self-attention.
verl/utils/torch_functional.py:634
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for bi-directional self-attention.
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:48
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for bi-directional self-attention.
verl/models/llama/megatron/modeling_llama_megatron.py:47
↓ 1 callers
Method
_maybe_log_val_generations
Log a table of validation samples to the configured logger (wandb or swanlab)
verl/trainer/ppo/ray_trainer.py:497
↓ 1 callers
Method
_maybe_resize_bbox
Clamp, validate, and potentially resize a bounding box. This function ensures the final bounding box is within image bounds and meet
verl/tools/image_zoom_in_tool.py:205
↓ 1 callers
Function
_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mapping f
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:23
↓ 1 callers
Function
_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mapping f
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:23
↓ 1 callers
Function
_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mapping f
verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:42
↓ 1 callers
Function
_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mapping f
verl/models/mcore/saver.py:53
↓ 1 callers
Function
_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mapping f
verl/models/mcore/loader.py:26
↓ 1 callers
Function
_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mapping f
verl/models/llama/megatron/checkpoint_utils/llama_saver.py:42
↓ 1 callers
Function
_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mapping f
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:23
↓ 1 callers
Function
_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mapping f
verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:23
↓ 1 callers
Method
_merge_by_placement
Merges a list of tensors based on their DTensor placement
verl/model_merger/fsdp_model_merger.py:132
↓ 1 callers
Method
_merge_state_dicts
(self, model_state_dict_list: list[dict[str, Any]])
verl/model_merger/megatron_model_merger.py:358
↓ 1 callers
Function
_mkdir
hdfs mkdir
verl/utils/hdfs_io.py:75
↓ 1 callers
Function
_monkey_patch_compute_logits
(model, vocab_size: int)
verl/workers/rollout/vllm_rollout/vllm_rollout.py:96
↓ 1 callers
Method
_normalize_config_bsz
(self)
verl/trainer/fsdp_sft_trainer.py:137
↓ 1 callers
Method
_optimizer_step
(self)
verl/workers/critic/dp_critic.py:134
↓ 1 callers
Method
_optimizer_step
(self)
verl/workers/actor/dp_actor.py:309
↓ 1 callers
Method
_organize_images
Copy images to output_dir/images/ with sequential naming. Args: source_images: List of source image paths source_cont
sdgsystem/tasks/image/local.py:57
↓ 1 callers
Method
_pack_kwargs
(self, *args, **kwargs)
verl/utils/activation_offload.py:437
↓ 1 callers
Method
_parse_json_array
Parse VLM response containing JSON array of samples.
sdgsystem/generation/generator.py:657
↓ 1 callers
Method
_parse_keyword_list
Parse LLM response to extract list of keywords. Args: response: LLM response text Returns: List of
sdgsystem/tasks/keyword_extractor.py:61
↓ 1 callers
Function
_parse_latex
Attempts to parse latex to an expression sympy can read.
verl/utils/reward_score/prime_math/__init__.py:53
↓ 1 callers
Method
_parse_pairwise_results
Parse pairwise evaluation results to determine winners. Args: evaluation_result: Result from evaluate() call Re
sdgsystem/deepeval/evaluator.py:262
↓ 1 callers
Method
_parse_tool_result
(self, content: list)
verl/tools/mcp_base_tool.py:120
↓ 1 callers
Function
_passages2string
Convert retrieval results to formatted string.
verl/tools/utils/search_r1_like_utils.py:130
↓ 1 callers
Function
_patched_topk_routing_with_score_function
Patched version of topk_routing_with_score_function that supports router replay.
verl/utils/megatron/router_replay_patch.py:128
↓ 1 callers
Method
_performance_metrics
(self, metrics: list[list[dict[str, str]]], output: DataProto)
verl/experimental/agent_loop/agent_loop.py:850
↓ 1 callers
Method
_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds)
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:102
↓ 1 callers
Method
_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds)
verl/models/llama/megatron/modeling_llama_megatron.py:101
↓ 1 callers
Method
_preprocess_reward_inputs
(self, data: DataProto)
verl/experimental/reward/reward_manager.py:113
↓ 1 callers
Method
_process_dataset_by_evaluations
transform samples in dataset to the samples which rewriting demands, according to the evaluations
sdgsystem/generation/rewriter.py:72
↓ 1 callers
Function
_process_single_case
Helper function to process a single test case.
verl/utils/reward_score/sandbox_fusion/utils.py:174
↓ 1 callers
Method
_process_single_message
Process a single message and return its tokenized representation. Args: index: turn index in the conversation
verl/utils/dataset/multiturn_sft_dataset.py:166
↓ 1 callers
Method
_query_collect_info
Query the collect info for a given mesh name. Args: mesh_name (str): Name of the mesh to query collect info for.
verl/single_controller/base/worker.py:119
↓ 1 callers
Method
_query_dispatch_info
Query the dispatch info for a given mesh name. Args: mesh_name (str): Name of the mesh to query dispatch info for
verl/single_controller/base/worker.py:103
↓ 1 callers
Function
_qwen2_5_vl_dedup_image_tokens
Deduplicate consecutive image tokens in prompt_ids for Qwen2.5-VL, since vLLM will replicate the <|image_pad|> token by image_data. For examp
verl/workers/rollout/vllm_rollout/vllm_async_server.py:754
↓ 1 callers
Function
_read_async_response
(resp: aiohttp.ClientResponse)
verl/experimental/reward/router/naive_router.py:34
↓ 1 callers
Method
_read_files_and_process
(self)
verl/utils/dataset/multiturn_sft_dataset.py:117
↓ 1 callers
Method
_read_files_and_tokenize
(self)
verl/utils/dataset/rm_dataset.py:92
↓ 1 callers
Method
_read_files_and_tokenize
(self)
verl/utils/dataset/sft_dataset.py:80
↓ 1 callers
Method
_register_with_router
Register worker with router with error handling. This method attempts to register the current worker with a router service. If regist
verl/workers/rollout/sglang_rollout/http_server_engine.py:270
↓ 1 callers
Method
_release_worker
Mark worker as free after request completes.
verl/experimental/reward/router/naive_router.py:181
↓ 1 callers
Function
_remove_right_units
(string)
verl/utils/reward_score/prime_math/math_normalize.py:105
↓ 1 callers
Method
_replace_name
(self, megatron_name: str, name_mapping: dict[str, str])
verl/model_merger/megatron_model_merger.py:533
↓ 1 callers
Method
_run_agent_loop
( self, sampling_params: dict[str, Any], trajectory: dict[str, Any], *,
verl/experimental/agent_loop/agent_loop.py:399
↓ 1 callers
Method
_save_checkpoint
(self)
verl/trainer/ppo/ray_trainer.py:802
↓ 1 callers
Method
_save_pairwise_results
Save pairwise evaluation results to JSON file.
sdgsystem/deepeval/evaluator.py:331
↓ 1 callers
Method
_search
(self, documents: List[str], keywords: List[str] )
sdgsystem/documents/retrieve.py:121
↓ 1 callers
Method
_select_worker
Select the least-loaded worker (simple round-robin by request count).
verl/experimental/reward/router/naive_router.py:175
↓ 1 callers
Method
_setup_env_cuda_visible_devices
(self)
verl/single_controller/base/worker.py:237
↓ 1 callers
Function
_split_args_kwargs_data_proto_with_auto_padding
(chunks, *args, **kwargs)
verl/single_controller/base/decorator.py:95
↓ 1 callers
Method
_split_recursive
Recursively split text using separator hierarchy. Args: text: Text to split separators: List of separators t
sdgsystem/documents/chunk.py:101
↓ 1 callers
Method
_split_tensors
Splits a tensor into multiple tensors based on the name. This is used to handle qkv and gate_up tensors.
verl/model_merger/megatron_model_merger.py:313
↓ 1 callers
Method
_start_profiling
Start profiling for all worker groups if profiling is enabled.
verl/trainer/ppo/ray_trainer.py:928
↓ 1 callers
Method
_stop_profiling
Stop profiling for all worker groups if profiling is enabled.
verl/trainer/ppo/ray_trainer.py:939
↓ 1 callers
Function
_str_to_int
(x: str)
verl/utils/reward_score/prime_math/__init__.py:99
↓ 1 callers
Function
_strip_string
(string)
verl/utils/reward_score/prime_math/math_normalize.py:130
↓ 1 callers
Method
_switch_chat_template
(self, data: DataProto)
verl/workers/fsdp_workers.py:1811
↓ 1 callers
Function
_sympy_parse
Parses an expression with sympy.
verl/utils/reward_score/prime_math/__init__.py:44
↓ 1 callers
Function
_to_1d_numpy_object_array
Best-effort: convert arbitrary input into a 1-D numpy array; fallback to object dtype.
verl/utils/groupwise.py:77
↓ 1 callers
Function
_transform_params_to_json_serializable
(x, convert_list_to_dict: bool)
verl/utils/tracking.py:310
↓ 1 callers
Method
_translate_sample
Translate a single sample. Translates the 'input' and 'output' fields of the sample.
sdgsystem/translation/translator.py:57
↓ 1 callers
Method
_unpack_kwargs
(self, flat_args, kwarg_keys)
verl/utils/activation_offload.py:446
↓ 1 callers
Method
_update_actor
(self, batch: DataProto)
verl/trainer/ppo/ray_trainer.py:1033
↓ 1 callers
Function
_update_batchmeta_with_output
(output: DataProto, batchmeta: "BatchMeta")
verl/utils/transferqueue_utils.py:127
↓ 1 callers
Method
_update_multi_modal_inputs
Update the multi_modal_inputs of the request in additive manner.
verl/workers/rollout/schemas.py:336
↓ 1 callers
Method
_validate
(self)
verl/utils/profiler/profile.py:77
↓ 1 callers
Method
_validate_config
Validate config options not implemented for Megatron backend
verl/workers/critic/megatron_critic.py:81
↓ 1 callers
Method
_validate_config
Validate config options not implemented for Megatron backend
verl/workers/actor/megatron_actor.py:170
↓ 1 callers
Method
_validate_passages_dir
Validate that passages_dir exists and contains JSONL files. Args: passages_dir: Directory containing JSONL passage files
sdgsystem/documents/retrieve.py:33
↓ 1 callers
Method
_validate_samples
Validate and improve samples using majority voting (always enabled). Processes samples in batches for efficiency. Args:
sdgsystem/generation/base.py:251
↓ 1 callers
Method
_validate_state_dict
Compares the merged Megatron state_dict against a reference safetensors model. Applies necessary name mappings from Megatron to Huggi
verl/model_merger/megatron_model_merger.py:511
↓ 1 callers
Method
_validate_state_dict
(self, state_dict: dict[str, torch.Tensor])
verl/model_merger/fsdp_model_merger.py:229
↓ 1 callers
Function
acc_reward
(predict_str: str, ground_truth: str, use_boxed: bool = True)
verl/utils/reward_score/geo3k.py:25
↓ 1 callers
Method
acquire
(self)
verl/tools/utils/mcp_clients/utils.py:31
↓ 1 callers
Method
add_actor_rollout_worker
Add actor rollout worker based on the actor strategy.
verl/trainer/main_ppo.py:120
↓ 1 callers
Method
add_critic_worker
Add critic worker to role mapping.
verl/trainer/main_ppo.py:176
↓ 1 callers
Function
add_generation_prompt_for_gpt_oss
Add generation prompt for gpt-oss model. Args: message_content: Message content string Returns: Message content string with g
verl/experimental/agent_loop/utils.py:89
↓ 1 callers
Method
add_ref_policy_worker
Add reference policy worker if KL loss or KL reward is used.
verl/trainer/main_ppo.py:248
↓ 1 callers
Method
add_reward_model_worker
Add reward model worker if enabled.
verl/trainer/main_ppo.py:222
↓ 1 callers
Method
add_sample
(self, sample: Dict)
sdgsystem/dataset/dataset.py:60
↓ 1 callers
Function
all_gather_data_proto
(data: DataProto, process_group)
verl/protocol.py:1242
↓ 1 callers
Function
all_gather_tensor
(local_tensor: Tensor, group: Optional[dist.ProcessGroup] = None, async_op: bool = False)
verl/utils/ulysses.py:155
↓ 1 callers
Function
allgather_dict_into_dict
allgather a dict into a dict of list Args: data: a dict group: the process group to allgather Returns: dict containing a lis
verl/utils/torch_functional.py:300
↓ 1 callers
Function
allgather_dict_tensors
TODO: optimize this. - We can use async ops - We can use only one allgather Args: tensors: size: group:
verl/utils/torch_functional.py:266
↓ 1 callers
Method
annotate
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/nvtx_profile.py:152
↓ 1 callers
Method
annotate
( cls, message: Optional[str] = None, color: Optional[str] = None, domain: Opt
verl/utils/profiler/profile.py:231
↓ 1 callers
Method
append_dataframe
(self, new_dataframe: datasets.Dataset)
verl/experimental/dynamic_dataset/dynamicgen_dataset.py:100
↓ 1 callers
Function
apply_kl_penalty
Apply KL penalty to the token-level rewards. This function computes the KL divergence between the reference policy and current policy, then a
verl/trainer/ppo/ray_trainer.py:126
↓ 1 callers
Function
apply_patch
()
verl/models/mcore/patch_v012.py:20
↓ 1 callers
Function
apply_rollout_correction
BYPASS MODE: Use rollout_log_probs as old_log_probs Skips expensive actor forward pass for old_log_prob computation Two sub-modes (contr
verl/trainer/ppo/rollout_corr_helper.py:916
↓ 1 callers
Function
apply_rotary_pos_emb
(q, k, cos, sin, position_ids)
verl/models/qwen2/megatron/layers/parallel_attention.py:131
↓ 1 callers
Function
apply_rotary_pos_emb
(q, k, cos, sin, position_ids)
verl/models/llama/megatron/layers/parallel_attention.py:159
↓ 1 callers
Function
apply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
verl/models/qwen2/megatron/layers/parallel_attention.py:311
← previous
next →
901–1,000 of 2,774, ranked by callers